I am trying to incorporate in automation to turn off a switch in my “actions” of another automation with its own trigger and conditions already set.
Trigger: turn off a plug
Conditions: certain time of the day and others
Actions: turn on switch, turn off a couple other switches/plugs, delay, turn off another plug, and then I want to turn off the first switch turned on in the “actions” but only if it was turned on by the automation or has been on for less than x seconds…
I’ve tried a ton of different things with no luck so far…
Thanks in advance!
If I understand what you’re asking (and I very likely don’t), set a variable to the current state of the switch as the first action of your automation. Then at the end, use that variable (and whatever time condition you need in an “OR” statement) as a condition to turn it off