Giter Club home page Giter Club logo

Comments (5)

Ramias1 avatar Ramias1 commented on June 15, 2024

I just noticed this today too. Restarted all of my containers on one host yesterday, including HA and MQTT. Now the electricity meter still shows in MQTT but not the gas meter. Rtlamr2mqtt ran on a separate host; it was restarted due to rebooting that host, but earlier in the day. Restarting RTLmr2qtt this morning now shows the gas meter in MQTT.

from rtlamr2mqtt.

allangood avatar allangood commented on June 15, 2024

The HA autodiscovery paylod is sent using MQTT retain=True. This means it will survive and persists after been read by HA.

This behavior is expected only if your MQTT broker loses its database when recreated/restarted.
How your MQTT broker is configured? It has a persistent data/volume for the database?

from rtlamr2mqtt.

Ramias1 avatar Ramias1 commented on June 15, 2024

My broker is not persistent. I had to delete my stacks in Portainer and when it redeployed it probably got a new volume. This makes sense. Thanks

from rtlamr2mqtt.

mkmer avatar mkmer commented on June 15, 2024

Mine is set to persist and MQTT explorer indicates it is "retained". Not sure how it disappeared. Could be more robust if it checked and published if missing.

On further research, the missing discovery data may not be the only issue causing unavailability. There are times where the rtlamr/status = "offline". This may be part of the problem. Checking the container logs, the app is running, and the log indicate successful publishing of data to the MQTT server. What sets that tag true?

from rtlamr2mqtt.

allangood avatar allangood commented on June 15, 2024

Having to check for a message will require more resources to keep checking it. The way this project works is to send an autodiscovery message every time a reading happens.

The status payload is set by the LWT configuration, i.e. by your MQTT broker.
Double check your MQTT broker and the communication between rtlamr2mqtt and your broker.

from rtlamr2mqtt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.