service: switch.turn_on
data: {}
entity_id: switch.sonoff_10002e4fc4
mode: single
and this is the error HA gives me
extra keys not allowed @ data[‘automation’]
and for what i can see in this error i have extra characters in the configuration.yaml, but when i check everything is okay, i even got compared with other configuration file and it´s the same amount of spaces and characters, the configuraton.yaml is this :
I think you now see how important it is to post formatted YAML. The indentation error was instantly recognizable.
After you make the correction, save the file and restart Home Assistant.
If you add an automation and it no longer disappears, the problem is solved. In that case, please mark Burningstone’s post with the Solution tag. It will automatically place a check-mark next to the topic’s title which signals to other users that this topic has an accepted solution. This helps other users find answers to similar questions.
100% agree with @Burningstone here, this is likely the issue.
Also, be aware that creating an automation in YAML requires reloading automations in Configuration - Server Controls, while creating them in the UI doesn’t.
Sounds like you’ve maybe created one here and one there, overwriting each other because you didn’t reload, which could cause your first problem