Heating control with Motion Sensor and Window Sensor

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
  • 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
  • alias: “Night Time Heating Control”
    trigger:
    platform: time
    at: ‘00:00:00’
    action:
    • service: climate.set_temperature
      entity_id: climate.heating
      temperature: 17
1 Like

You’ve posted three different automations. which gives the error ? Its also usual to use the preformatted text option when posting yaml, so the people in the thread can read it better like this:-

alias: Daily Boolean reset
description: ""
trigger:
  - platform: time
    at: "00:00:00"
condition: []
action:
  - service: input_boolean.turn_off
    data: {}
    target:
      entity_id: input_boolean.bins_are_out
mode: single