Ignorer motion-notifikationer når støvsugeren kører
Tilføj condition til AI overvågning og 'der er nogen i indkørslen': skip notifikation hvis vacuum.roborock_s8_pro_ultra er cleaning/returning
This commit is contained in:
@@ -9,6 +9,13 @@
|
|||||||
{% set last = state_attr('automation.ai_overvagning', 'last_triggered') %}
|
{% set last = state_attr('automation.ai_overvagning', 'last_triggered') %}
|
||||||
{% set someone_home = is_state('binary_sensor.family_presence', 'on') %}
|
{% set someone_home = is_state('binary_sensor.family_presence', 'on') %}
|
||||||
{{ not someone_home or last is none or (now() - last).total_seconds() > 900 }}
|
{{ 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:
|
actions:
|
||||||
- action: script.overvaagning
|
- action: script.overvaagning
|
||||||
metadata: {}
|
metadata: {}
|
||||||
|
|||||||
@@ -2,7 +2,15 @@
|
|||||||
trigger:
|
trigger:
|
||||||
platform: state
|
platform: state
|
||||||
entity_id: binary_sensor.indkorsel_sensor_motion
|
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:
|
action:
|
||||||
- service: notify.mobile_app_claus_iphone_15pro
|
- service: notify.mobile_app_claus_iphone_15pro
|
||||||
data:
|
data:
|
||||||
|
|||||||
Reference in New Issue
Block a user