Is it possible to have the gateway report that the bulb is unavailable to Home Assistant?
This happens if the mains power/switch is turned off for a Trådfri bulb.
The IKEA app can report that a bulb is offline and the time it was last seen.
But the state is ‘on’ in Home Assistant. It should be ‘off’ or ‘unavailable’/‘offline’.
@ggravlingen Is this a bug or a feature?
I think it is the same for LIFX-bulbs: They may list as ‘on’ when unavailable.
Haven’t looked into this that much. Have you tried poking around with the gateway and your bulb using pytradfri? It gives you direct access to all the underlying commands that Home Assistant uses.