I have an automation that triggers a Shelly S20 socket everyday @ 8AM to power up a coffee machine and get me a fresh cup of coffee but sometimes I have to trigger it manually earlier and when it happens I need to remember to turn it off after 8AM because the automation will trigger anyway. What I wanted is to find a way for the automation to detect if the power socket has been turned on earlier and do nothing. I’ve tried a condition before but it didn’t worked as expected…also, I thought about creating a dummy boolean sensor to determine if the power socket has been turned on or off but it seems a bit of an overkill…
I think the state condition as it’s mentioned in the documentation isn’t possible to configure in Lovelace, right, due to the “for” that doesn’t appear. The closest one is as shown in the printscreen,.