Comments (5)
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.
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.
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.
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.
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)
- NameError: name 'usb_port' is not defined HOT 6
- Integrating American Meter Co. model AC-250 in HA with this Add-on HOT 2
- Latest update doesnt allow add on to start HOT 15
- 900i sleep recommendation [FYI] Documentation HOT 3
- Allow Meter ID to be stored in secrets.yaml HOT 3
- Not sure what to call this issue HOT 1
- Listen Only Mode Only Works For 6 Mins HOT 7
- Trouble getting the data in to Home Assistant
- Is there a way to know what level of accuracy/format a consumption number is in? HOT 1
- Option for verbosity < info HOT 1
- MQTT LWT (last will and testament) doesn't work HOT 7
- decimal in the wrong place. HOT 1
- Current status of the project HOT 3
- is there a way to run in listen mode and output it to mqtt? HOT 1
- Reset of USB devices when waking up after sleep, causing other add-on to terminate HOT 2
- rtlarm2mqtt container seems not to start rtl_tcp HOT 1
- Duplicate Entities
- LISTEN_ONLY mode does not work as documented HOT 1
- Allowing for tariffs on meter
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rtlamr2mqtt.