Hi everyone,
I have a bathroom light which is connected to a fan which unfortunately means I can’t just leave the power to the lightbulb on but turn it off at the lightbulb level like the rest of my lights. I’m also renting so I can’t modify that.
Unfortunately this means that Home Assistant is saving the state as on after I turn the switch off as it never gets the off payload even though it gets the offline message. So what this results in is Home Assistant either registering the light as on, or its registering it as unavailable.
This creates problems for lighting scripts and counters of how many lights are on. So when I fire a flashing light script for example and I ask the lights to return to the state they were, even if all the rest of them were off, they will stay on as Home Assistant is registering the state of the bathroom light as on (This even happens when Home Assistant registers the device itself as unavailable)
Is there any workaround here other than removing it from my ceiling lights group since by nature it does belong in that group? Maybe a way to set any offline = off payloads somewhere.