How do you set the on/off state of another automation as a condition?
Thanks.
How do you set the on/off state of another automation as a condition?
Thanks.
Are you trying to turn the other automation off, get the current state of the thing triggered by the other automation, or run an automation from an automation. Those are different things with different solutions.
I’m trying to run an automation with the on/off state of a different automation as a condition.
So if automation 2 is on (not triggered but just on), then automation 1 will run.
Add a State Condition to automation1 that checks if the state of automation2 is on
.
condition:
- condition: state
entity_id: automation.automation2
state: 'on'
Thanks a lot. Sometimes the visual editor doesn’t translate as well and makes it a little confusing. I best take some YAML lessons!