Improve indoor motion alert automation
This commit is contained in:
@@ -1,42 +1,39 @@
|
|||||||
- alias: 'Der er nogen i huset'
|
- alias: "Der er nogen i huset"
|
||||||
trigger:
|
mode: single
|
||||||
- platform: state
|
trigger:
|
||||||
entity_id: binary_sensor.hue_motion_sensor_2_motion_2
|
- platform: state
|
||||||
to: 'on'
|
entity_id: binary_sensor.hue_motion_sensor_2_motion_2
|
||||||
- platform: state
|
to: "on"
|
||||||
entity_id: binary_sensor.hue_motion_sensor_2_motion
|
- platform: state
|
||||||
to: 'on'
|
entity_id: binary_sensor.hue_motion_sensor_2_motion
|
||||||
- platform: state
|
to: "on"
|
||||||
entity_id: binary_sensor.hue_motion_sensor_1_motion_2
|
- platform: state
|
||||||
to: 'on'
|
entity_id: binary_sensor.hue_motion_sensor_1_motion_2
|
||||||
- platform: state
|
to: "on"
|
||||||
entity_id: binary_sensor.bad_motion_sensor_motion
|
- platform: state
|
||||||
to: 'on'
|
entity_id: binary_sensor.bad_motion_sensor_motion
|
||||||
- platform: state
|
to: "on"
|
||||||
entity_id: binary_sensor.gang_sensor_motion
|
- platform: state
|
||||||
to: 'on'
|
entity_id: binary_sensor.gang_sensor_motion
|
||||||
- platform: state
|
to: "on"
|
||||||
entity_id: binary_sensor.forgang_sensor_motion
|
- platform: state
|
||||||
to: 'on'
|
entity_id: binary_sensor.forgang_sensor_motion
|
||||||
condition:
|
to: "on"
|
||||||
- condition: state
|
condition:
|
||||||
entity_id: group.nogen_hjemme
|
- condition: state
|
||||||
state: 'Away'
|
entity_id: binary_sensor.family_presence
|
||||||
action:
|
state: "off"
|
||||||
- service: notify.mobile_app_clausiphone
|
action:
|
||||||
|
- service: notify.mobile_app_clausiphone15
|
||||||
data:
|
data:
|
||||||
message: "Der er nogen i huset"
|
message: >-
|
||||||
# - service: script.sonos_say
|
Der er nogen i huset.
|
||||||
# data:
|
Bevægelse registreret af {{ trigger.to_state.name or trigger.entity_id }}.
|
||||||
# sonos_entity: media_player.alrum
|
|
||||||
# volume: 0.4
|
|
||||||
# delay: '00:00:05'
|
|
||||||
# message: 'Der er nogen i indkørslen'
|
|
||||||
- service: scene.create
|
- service: scene.create
|
||||||
data:
|
data:
|
||||||
scene_id: before
|
scene_id: before
|
||||||
snapshot_entities:
|
snapshot_entities:
|
||||||
- light.pendle1
|
- light.pendle1
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
data:
|
data:
|
||||||
entity_id: light.pendle1
|
entity_id: light.pendle1
|
||||||
@@ -45,7 +42,8 @@
|
|||||||
flash: long
|
flash: long
|
||||||
- delay: 2
|
- delay: 2
|
||||||
- service: scene.turn_on
|
- service: scene.turn_on
|
||||||
entity_id: scene.before
|
target:
|
||||||
|
entity_id: scene.before
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user