Just to make sure, you added the dash in front of ‘platform’ in the trigger section. This code copied 1:1 doesn’t work?
- id: '52'
alias: 'Flurlicht durch Schalter einschalten für 2 Minuten tagsüber'
trigger:
- platform: event
event_type: xiaomi_aqara.click
event_data:
entity_id: binary_sensor.wall_switch_158d000183ca15
click_type: single
- platform: event
event_type: xiaomi_aqara.click
event_data:
entity_id: binary_sensor.wall_switch_158d000183ca72
click_type: single
condition:
condition: time
after: '05:31'
before: '17:59'
action:
- service: yeelight.set_mode
data:
entity_id:
- light.flur_1
- light.flur_2
- light.flur_3
mode: 'normal'
- service: homeassistant.turn_on
data:
entity_id:
- light.flur_1
- light.flur_2
- light.flur_3
- delay: 00:00:05
- service: homeassistant.turn_off
data:
entity_id:
- light.flur_1
- light.flur_2
- light.flur_3