Replies: 1 comment
-
Update, all sorted! During my trouble shooting, I was deleting the device in HA. Each time the device was re-discovered, it would create a new ID and my dashboard was looking at the old ID. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Newbie here.
What an awesome library It's made my Arduino HA project so much cleaner than other MQTT/HA integrations easier. Thanks!
I've configured an analog sensor (tank level) on an Arduino and MQTT the level info to HA via a Victron MQTT broker that exists on my network.
The HA auto discovery for the level sensor and level reading work fine.
Problem is that when the power is pulled from the Arduino, HA still reports the last level. Looking at the MQTT messages, the level messages have a QoS with retain true. I've tried adding both device.enableLastWill(); & device.enableSharedAvailability(); to my sketch with no improvement. I see the occasional message with Retain: false, bit not all of them. All the Victron MQTT messages have Retain: false on them.
Even by rebooting the MQTT broker (assuming that deletes the retained messages) and deleting the device in HA, the issue is still there.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions