Hi,
Following on from otterstedt’s solution in Test if Tradfri light is available/reachable? - #20 by otterstedt, I’ve had a go at creating my first Blueprint for it. This blueprint pings Ikea light bulbs that are on and attempts to set their brightness - if the bulb has been switched off at the wall, this will reset the status of the entity to indicate that the light is no longer on.
The blueprint can be found at Home Assistant Ikea TRÅDFRI Light Deactivation Checker · GitHub.
It’s specific to ZHA controlled entities, as that’s what I’m using, but should be simple enough to change or remove that selector setting.
Please let me know if this doesn’t work out properly, or if there’s a better way to do it.