Add second hallway motion sensor
This commit is contained in:
parent
4c10d10621
commit
6ff4bdc2ec
@ -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'
|
||||||
|
@ -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:
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user