After hours of research, I am at the point of giving up. Hope you guys can help me.
I have a dumb RF outlet. This outlet is connected to hassio via a sonoff RF bridge.
This outlet is connected to my living room light
I have a script to turn on my light and an other script to turn it off.
The toggle button works fine, but my problem: this light turns also on and off based on automation (for example when the sun sets).
When the light switches on based on this automation, I do not see it toggle on in the UI (like a normal lamp does). Hope anyone can help me.
That’s to be expected because the light’s configuration has no value_template.
It’s purpose is to represent the current state of the controlled device. When you turn it on, it should report its new status via value_template.
If the device is incapable of reporting its status, you can use a “proxy” (a stand-in for the actual device). For example, your two scripts that are used to turn the device on and off can also set an input_boolean to on or off. The value_template can be set to monitor this input_boolean’s state.