Hi there, I tried to set up a automation but it won’t work but I don’t understand why, maybe someone can help me. My home assistant is running on a Raspberry Pi 4 in a Docker container (version 2023.9.2).
When trying to add a automation via the Ui I always get “Response Error: 500”.
Before I tried adding a automation in the automations.yaml file. I also added the “automation: !include automations.yaml” command in the config file.
This is my automation:
automation:
- alias: "Ventil 1 einschalten"
trigger:
- platform: state
entity_id: switch.ventil_1
to: "on"
action:
- service: mqtt.publish
data:
topic: "Cmnd/Garten/Bewaesserung/Ventil1"
payload: "ON"
In the protocol is the followimg error:
Logger: homeassistant.components.automation
Source: components/automation/config.py:242
Integration: Automatisierung (documentation, issues)
First occurred: 03:59:20 (1 occurrences)
Last logged: 03:59:20
Unnamed automation could not be validated and has been disabled: extra keys not allowed @ data['automation']. Got [{'alias': 'Ventil 1 einschalten', 'trigger': [{'platform': 'state', 'entity_id': 'switch.ventil_1', 'to': 'on'}], 'action': [{'service': 'mqtt.publish', 'data': {'topic': 'Cmnd/Garten/Bewaesserung/Ventil1', 'payload': 'ON'}}]}, {'alias': 'Bestaetigung Ventil 1 an', 'trigger': [{'platform': 'mqtt', 'topic': 'stat/Garten/Bewaesserung/Ventil1', 'payload': 'ON'}], 'action': [{'service': 'switch.turn_on', 'entity_id': 'switch.ventil_1'}]}, {'alias': 'Ventil 1 ausschalten', 'trigger': [{'platform'... required key not provided @ data['action']. Got None required key not provided @ data['trigger']. Got None
Nothing regarding the automations seems to work for me. I really would appreciate it if someone could help me out.