Hi,Is there a way I can check the current state of a device?The issue I
have is I'm trying to create an automation that turns my light on 30min
before sunset but only if my TV is switched on. It only works if I
remove the condition so must be some is...