I have a hue light in my son’s room (via z2m) which he switches off with the normal wall switch (I still need to put something behind it like a sonoff) But in the meantime I would like Home assistant to show the light as off when it’s unavailable. Is this possible?
I hate the fact that it shows unavailable because it’s cut from power and it would be a nicer view if it just states as off.
Getting that as a feature request and making that change in HA, it will never happen.
The state is unknown because it is unknown. If you want to map that to something else then feel free to do so, but it will not happen as a standard feature.
Final question if I may ask.
All lights are sliders which you can turn on and off. I know that its not possible to turn it on and off in the template but is it possible to view it as a slider instead of the words on and off?
I think… if you use the template above as the value_template then it should behave as a light when the mains is connected, and else just not work.
I have never tried it but I think if you add all the other parameters then you essentially get a new light entity that can replace the other on the dashboard.