Hi all, I have the following yaml code here, I always get the message “Message malformed: extra keys not allowed @ data[‘automation’]”. Can someone help me with this ?
Target is,
if no movement was detected within 1h hour, regulate temeprature to 17 degrees.
If movement was detected and fendter is closed regulate temepratur to 21 degrees.
At night the heating should be regulated down to 17degrees.
automation:
- alias: “Presence Detection and Heating Control”
trigger:
platform: state
entity_id: binary_sensor.bewegungsmelder_gruppe
to: ‘on’
condition:- condition: state
entity_id: binary_sensor.lumi_lumi_sensor_magnet_aq2_opening_4
state: ‘off’ - condition: time
after: ‘06:00:00’
before: ‘00:00:00’
action: - service: climate.set_temperature
entity_id: climate.hmip_ankleidezimmer
temperature: 21
- condition: state
- alias: “No Presence and Heating Control”
trigger:
platform: state
entity_id: binary_sensor.bewegungsmelder_gruppe
to: ‘off’
condition:- condition: time
after: ‘06:00:00’
before: ‘00:00:00’
action: - service: climate.set_temperature
entity_id: climate.hmip_ankleidezimmer
temperature: 17
- condition: time
- alias: “Night Time Heating Control”
trigger:
platform: time
at: ‘00:00:00’
action:- service: climate.set_temperature
entity_id: climate.heating
temperature: 17
- service: climate.set_temperature