Dear members,
Since a few days I am trying to get to grips with Hassio. Got MQTT working. But while running the Raspi 3B+ server my ESP8266-01 controlled light just starts when it feels like it. Until now I have not noticed it switching off, just on.
I can still control it from the web page.
See that blue bar on top? can you use it to format your code?
also where is value_template: “{{ value_json.POWER1 }}” coming from? it’s not a valid option for mqtt lights, you probably want to remove it first.
(Once you’re on 0.89.x it will warn you about it anyway)
Thanks for asking.
After a few days of absence and having switched off the server, this morning I started the server again to answer your question.
The light came on unexpectedly and the lightning sign - which I had not seen before - showed the light as off. In HA I switched it on and off again. Now it is off and shows itself as off.
So yes, it now shows in the logs. Meanwhile I am updating to version 0.9.
Furthermore, seeing the log for a week, there are several mentions ’ Lamp1 Serre changed to unavailable’. These might have been the irregular switching to ON.
So, the question seems to be, where and how can I ‘trim’ the behaviour when a lamp signals its status as unavailable?
If the light came on unexpectedly, maybe you’ve set the retain flag to true and that overrides the light’s status? worth trying with retain=false or 0…