Add second hallway motion sensor
This commit is contained in:
parent
4c10d10621
commit
6ff4bdc2ec
@ -11,6 +11,9 @@
|
||||
- platform: state
|
||||
entity_id: binary_sensor.hallway_motion_sensor
|
||||
to: 'on'
|
||||
- platform: state
|
||||
entity_id: binary_sensor.hallway_sensor_2_home_security_motion_detection
|
||||
to: 'on'
|
||||
- platform: state
|
||||
entity_id: binary_sensor.kitchen_motion_sensor
|
||||
to: 'on'
|
||||
|
@ -30,6 +30,10 @@
|
||||
entity_id: binary_sensor.hallway_motion_sensor
|
||||
from: 'off'
|
||||
to: 'on'
|
||||
- platform: state
|
||||
entity_id: binary_sensor.hallway_sensor_2_home_security_motion_detection
|
||||
from: 'off'
|
||||
to: 'on'
|
||||
action:
|
||||
- service: notify.mobile_app_iphone_pg
|
||||
data:
|
||||
|
@ -7,6 +7,11 @@
|
||||
for: 00:00:05
|
||||
from: 'off'
|
||||
to: 'on'
|
||||
- platform: state
|
||||
entity_id: binary_sensor.hallway_sensor_2_home_security_motion_detection
|
||||
for: 00:00:05
|
||||
from: 'off'
|
||||
to: 'on'
|
||||
action:
|
||||
# - service: python_script.set_state
|
||||
# data_template:
|
||||
@ -53,6 +58,10 @@
|
||||
entity_id: binary_sensor.hallway_motion_sensor
|
||||
from: 'off'
|
||||
to: 'on'
|
||||
- platform: state
|
||||
entity_id: binary_sensor.hallway_sensor_2_home_security_motion_detection
|
||||
from: 'off'
|
||||
to: 'on'
|
||||
condition:
|
||||
- condition: numeric_state
|
||||
entity_id: sensor.office_illuminance
|
||||
@ -69,6 +78,11 @@
|
||||
from: 'on'
|
||||
to: 'off'
|
||||
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:
|
||||
- service: script.hallway_lights_off
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user