Sennevds / system_sensors

Logging of system sensor specific for the RPI and sending them to a MQTT broker
MIT License
361 stars 112 forks source link

Seeing all sensors toggling unavaailable #135

Closed sweichbr closed 2 years ago

sweichbr commented 2 years ago

For some reason recently - I believe it was an update to HA, but not sure which version - All of my sensors are toggling between their values and unavailable.

monitoring the mqtt logs, I get the following:

system-sensors/sensor/omv/availability offline
system-sensors/sensor/octo/availability online
system-sensors/sensor/octo/availability offline
system-sensors/sensor/omv/availability online

These are coming in about once a second.

Not sure what changed or how to fix it.

sweichbr commented 2 years ago

Found the problem - client_id was not unique between instances, causing MQTT to drop the connection each time a new connection came in.