Would anyone know how do I disable automation?

Hi! Good afternoon to all of you!

Would anyone know how do I disable automation?

I created several automations, but I want that if a certain action is executed, X automation is disabled …

Example:

Sunset started

disable X automation. How do I?

automation.state == off ?

In the action section of your automation you can include:

action:
  - service: automation.turn_off
    entity_id: automation.name_of_automation

You can get the name of your automation in the dev states <>.

Thank you!
I’ll try when you get home!

Thank you! Thanks for your tip!

You’re welcome! :slight_smile:

1 Like