Hi all,
I have to following automation to turn off lights when a motion sensor is not triggert for 20 minutes:
- alias: 'Licht im Esszimmer aus'
trigger:
- platform: state
entity_id: sensor.motion_wohnzimmer_sensor
to: 'off'
for:
minutes: 20
condition:
- condition: time
after: '05:00:00'
before: '08:00:00'
action:
service: homeassistant.turn_off
entity_id: group.lichter_decke_esszimmer
Is it possible to set another “for” with another condition inside this automation? I want to turn off the lights during another timeslot in 2 minutes instead of 20. What can I do to archive this? I’m glad for any help. Thank you in advance.