1
0

Add second hallway motion sensor

This commit is contained in:
Przemek Grondek 2022-06-07 13:03:41 +02:00
parent 4c10d10621
commit 6ff4bdc2ec
3 changed files with 21 additions and 0 deletions

View File

@ -11,6 +11,9 @@
- platform: state - platform: state
entity_id: binary_sensor.hallway_motion_sensor entity_id: binary_sensor.hallway_motion_sensor
to: 'on' to: 'on'
- platform: state
entity_id: binary_sensor.hallway_sensor_2_home_security_motion_detection
to: 'on'
- platform: state - platform: state
entity_id: binary_sensor.kitchen_motion_sensor entity_id: binary_sensor.kitchen_motion_sensor
to: 'on' to: 'on'

View File

@ -30,6 +30,10 @@
entity_id: binary_sensor.hallway_motion_sensor entity_id: binary_sensor.hallway_motion_sensor
from: 'off' from: 'off'
to: 'on' to: 'on'
- platform: state
entity_id: binary_sensor.hallway_sensor_2_home_security_motion_detection
from: 'off'
to: 'on'
action: action:
- service: notify.mobile_app_iphone_pg - service: notify.mobile_app_iphone_pg
data: data:

View File

@ -7,6 +7,11 @@
for: 00:00:05 for: 00:00:05
from: 'off' from: 'off'
to: 'on' to: 'on'
- platform: state
entity_id: binary_sensor.hallway_sensor_2_home_security_motion_detection
for: 00:00:05
from: 'off'
to: 'on'
action: action:
# - service: python_script.set_state # - service: python_script.set_state
# data_template: # data_template:
@ -53,6 +58,10 @@
entity_id: binary_sensor.hallway_motion_sensor entity_id: binary_sensor.hallway_motion_sensor
from: 'off' from: 'off'
to: 'on' to: 'on'
- platform: state
entity_id: binary_sensor.hallway_sensor_2_home_security_motion_detection
from: 'off'
to: 'on'
condition: condition:
- condition: numeric_state - condition: numeric_state
entity_id: sensor.office_illuminance entity_id: sensor.office_illuminance
@ -69,6 +78,11 @@
from: 'on' from: 'on'
to: 'off' to: 'off'
for: 00:00:05 for: 00:00:05
- platform: state
entity_id: binary_sensor.hallway_sensor_2_home_security_motion_detection
from: 'on'
to: 'off'
for: 00:00:05
action: action:
- service: script.hallway_lights_off - service: script.hallway_lights_off