#Best way for two state automation?

1 messages · Page 1 of 1 (latest)

finite inlet
#

I have a door sensor and want to trigger a light depending on that.
What is the best way to do so. Can I do that in one automation?
The light has also a manual switch that is used from time to time.

rough umbra
#

Use trigger ids in the automation
If trigger = door, set state, else toggle or something

finite inlet
#

This needs yml, right?

rough umbra
#

No. If you click on the 3 dots next to the trigger in the ui you can edit id