diff --git a/automations.yaml b/automations.yaml index ad76c97..e490031 100644 --- a/automations.yaml +++ b/automations.yaml @@ -1740,10 +1740,16 @@ entity_id: de7a9e40d544ab51409925618ef14deb domain: binary_sensor trigger: device - for: - hours: 0 - minutes: 0 - seconds: 2 + - type: occupied + device_id: 66e998859b89cf23b000cc63e1ea9032 + entity_id: 584e49486e9e6257cf0fdc764cce39c6 + domain: binary_sensor + trigger: device + - type: occupied + device_id: 18f9c114ab3e4b421899bbd6c84a3ba6 + entity_id: 5f7a6976e73109acbce02cc2de11259e + domain: binary_sensor + trigger: device conditions: - condition: state entity_id: input_boolean.on_leave @@ -1772,6 +1778,50 @@ domain: light flash: long brightness_pct: 5 + - action: counter.reset + metadata: {} + target: + entity_id: counter.counter_for_lights_kuchnia_to_turn_off + data: {} + - repeat: + while: + - type: is_occupied + condition: device + device_id: 5243fe178006af9adee15bacfc9bcadc + entity_id: de7a9e40d544ab51409925618ef14deb + domain: binary_sensor + - type: is_occupied + condition: device + device_id: 66e998859b89cf23b000cc63e1ea9032 + entity_id: 584e49486e9e6257cf0fdc764cce39c6 + domain: binary_sensor + - type: is_occupied + condition: device + device_id: 18f9c114ab3e4b421899bbd6c84a3ba6 + entity_id: 5f7a6976e73109acbce02cc2de11259e + domain: binary_sensor + - condition: numeric_state + entity_id: counter.counter_for_lights_kuchnia_to_turn_off + below: 30 + sequence: + - delay: + hours: 0 + minutes: 0 + seconds: 5 + milliseconds: 0 + - action: counter.increment + metadata: {} + target: + entity_id: counter.counter_for_lights_kuchnia_to_turn_off + data: {} + - type: turn_off + device_id: 1563a131149b8e2cecc7bf3cc21732d6 + entity_id: 8c3f3da35672a02b677c789969bbea0a + domain: light + - type: turn_off + device_id: f5ccc59a8b469ac7dbdf23f714d93c05 + entity_id: f2de93d902b313ed6b1a5b3f848d41fb + domain: light mode: single - id: '1753193288169' alias: Send balkon temp to mm