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 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: {}
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user