From 6ff4bdc2ec96f60b3d981202014217e32532f17a Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Tue, 7 Jun 2022 13:03:41 +0200 Subject: [PATCH] Add second hallway motion sensor --- configuration/automations/alarm.yaml | 3 +++ configuration/automations/camera.yaml | 4 ++++ configuration/automations/hallway.yaml | 14 ++++++++++++++ 3 files changed, 21 insertions(+) diff --git a/configuration/automations/alarm.yaml b/configuration/automations/alarm.yaml index 236576b..bdb5a1a 100644 --- a/configuration/automations/alarm.yaml +++ b/configuration/automations/alarm.yaml @@ -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' diff --git a/configuration/automations/camera.yaml b/configuration/automations/camera.yaml index bfdbe59..3c03b2c 100644 --- a/configuration/automations/camera.yaml +++ b/configuration/automations/camera.yaml @@ -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: diff --git a/configuration/automations/hallway.yaml b/configuration/automations/hallway.yaml index 7242682..dded2c4 100644 --- a/configuration/automations/hallway.yaml +++ b/configuration/automations/hallway.yaml @@ -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