thejeffreystone / hassio_addons

Apache License 2.0
45 stars 26 forks source link

MQTT Availability topic goes offline randomly. #20

Open Yersi88 opened 2 years ago

Yersi88 commented 2 years ago

image

Availability topic goes offline even though other entities still work fine and update regularly. This makes the default auto-discovered mqtt sensors go unavailable even though they are still being updated.

Solution is to restart addon, it will work again for couple of days or hours. Alternative solution is to create mqtt sensors in configuration.yaml without availability topic included.

thejeffreystone commented 2 years ago

I'm not sure on this one yet. Trying to track down what could be making it go offline.

doozers-do commented 2 years ago

I'm not seeing an availability_template that actually makes the resulting entities register as offline either. I may be missing how this is supposed to work.

If I get a chance I will test out https://www.home-assistant.io/integrations/binary_sensor.mqtt/#expire_after and see if that works and PR if it does.

Yersi88 commented 2 years ago

Auto discovered MQTT entities go offline. I made a workaround and created them manually, which are fine!