Is there a way to copy an automation and edit switch from on to off?

I’m blind and use a screen reader so this could be operator error. I’ll make a super simple example below.

When I make an automation using the visual editor that turns a switch on, and then copy that automation (in hopes of just renaming it and turning the switch off), I’m unable to find a way to edit/change the “turns on” to “turns off”. The only way is to delete the action and then create a new “turns off” action OR use the “edit in yaml” function to edit the code. I would think this to be a simple thing to do as many automations are polar opposite copies (on vs off). Am I missing something, or is this not allowed?

For super simple automations it’s not a big deal, but for automations where multiple operations need to be edited it’s a bit more taunting. Well, for me using a screen reader as it’s easy to get lost in yaml (although I have to give much credit and thanks to the crew for making all aspects accessible to screen readers! The lack of accessibility with another platform is why I have dipped into home assistant.).

Thanks!

This might help
The action is called xxx.on
Example
Switch.turn_on or switch.turn_off
Light.turn_on or light.turn_off

So you can change just the turn_on to turn_off or visa-versa

1 Like

What you’re seeing might be related to the collapsed details the HA automation editor is using since a couple of releases ago.

What I suspect is happening is that you are immediately clicking the 3 dots menu next to the “turn on”, without clicking on anything else.

What you need to be doing is clicking on that “turns on” text so it will show all the details on the right. You should then be able to simply edit the action from on to off. You don’t need to click the 3 dots at all to edit.

I tried to make it as descriptive as I could, but if you don’t manage, let me know and I’ll try to walk you through it.

1 Like