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
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'

View File

@ -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:

View File

@ -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