As you can see in the image, the screen brightness can be adjusted as “Close, Bright, Brightness”. But the interface is in Turkish and I want to show these options in Turkish in the interface. For this, I created an input select and wrote it to configration.yaml.
The first line of your automation starts with this key word:
automation:
Is your automation located in the configuration.yaml file?
If it’s located in a separate file then it should not include the automation: key.
2. Action
Your automation uses a select.select_option action for an input_select. That’s incorrect. It should use input_select.select_option (EDIT my mistake; it is a select entity)
3. Syntax
Your automation uses deprecated syntax. Although it’s backwards compatible, you should use the latest syntax for defining new automations.
In my opinion, it was most likely a copy and past error. If you enter @123 code into a new Automation in YAML mode you do not get the Error is: Message malformed: extra keys not allowed @ data[‘0’] you experienced.
The missing description and mode will not produce the error you had…
The original example you posted is how an automation will appear in configuration.yaml but it is not how it appears in the YAML editing window of the Automation Editor.
If you use the Automation Editor to create an automation, you should never include the automation: key and you should never hyphenate any of its lines.
I strongly recommend you use the Automation Editor in Visual mode first, then switch it to YAML mode to see how it generates properly formatted YAML. This is the easiest way to learn correct YAML syntax.
Absolutely not. Those they have default values and don’t need to be explicitly included.
Your automation caused an error because of what I explained above (incorrect syntax; inclusion of automation: key and hyphenation).