I have a Yeelight M2 BT Mesh bulb in a lamp that I sometimes like to switch off manually by the lamp’s physical switch. That obviously cuts off power to the smart bulb.
Problem: this makes HA think the bulb is “on” showing as such in Lovelace and potentially screwing up some automations.
Can I make HA presume the bulb is off when it’s unavailable?
Thanks! Please don’t offer tips on turning off the bulb with buttons or otherwise - that’s not what I’m asking.
Not that I’ve done it, but you should be able to trick HA into thinking the light is off by creating a template light and using that in place of the actual light entity.
Even with Template Light. You can’t ‘trick’ HA. It is either ‘on’, ‘off’, or ‘unavailable’.
It sounds like the problem may be in the way the automation is written. Because you can always check state (excluding a bug). And most people only include on or off.
My Sengled bulbs take a bit to notice they are unavailable also.
it’s just the nature of the beast since the bulb isn’t sending a status update anymore (because it has no power) the controller has to wait for a reasonable amount of time before it decides the device is dead instead of just asleep or it’s just not needing to send any messages. The last it knew the bulb was “on” and then eventually it decides it’s dead.
EDIT:
wait…
it doesn’t?
I thought you posted the post above as the solution?