diff --git a/include/automations/ai_indkorsel.yaml b/include/automations/ai_indkorsel.yaml index f57579c..3be4626 100644 --- a/include/automations/ai_indkorsel.yaml +++ b/include/automations/ai_indkorsel.yaml @@ -9,6 +9,13 @@ {% set last = state_attr('automation.ai_overvagning', 'last_triggered') %} {% set someone_home = is_state('binary_sensor.family_presence', 'on') %} {{ not someone_home or last is none or (now() - last).total_seconds() > 900 }} + - condition: not + conditions: + - condition: state + entity_id: vacuum.roborock_s8_pro_ultra + state: + - cleaning + - returning actions: - action: script.overvaagning metadata: {} diff --git a/include/automations/der_er_nogen_i_indkorslen.yaml b/include/automations/der_er_nogen_i_indkorslen.yaml index d165103..8ef6a41 100644 --- a/include/automations/der_er_nogen_i_indkorslen.yaml +++ b/include/automations/der_er_nogen_i_indkorslen.yaml @@ -2,7 +2,15 @@ trigger: platform: state entity_id: binary_sensor.indkorsel_sensor_motion - to: 'on' + to: 'on' + condition: + - condition: not + conditions: + - condition: state + entity_id: vacuum.roborock_s8_pro_ultra + state: + - cleaning + - returning action: - service: notify.mobile_app_claus_iphone_15pro data: