Compare commits
2 Commits
438eedd660
...
d292e56110
Author | SHA1 | Date | |
---|---|---|---|
d292e56110 | |||
e6426a4f3b |
@ -11,9 +11,6 @@
|
|||||||
- 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'
|
||||||
|
@ -1,39 +1,51 @@
|
|||||||
- id: camera_kitchen_notification
|
- id: camera_livingroom_notification
|
||||||
alias: '[Camera] Kitchen notification'
|
alias: '[Camera] Living room notification'
|
||||||
condition:
|
|
||||||
- condition: state
|
|
||||||
entity_id: alarm_control_panel.home_alarm
|
|
||||||
state: armed_away
|
|
||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: binary_sensor.kitchen_motion_sensor
|
entity_id: binary_sensor.kitchen_motion_sensor
|
||||||
from: 'off'
|
from: 'off'
|
||||||
to: 'on'
|
to: 'on'
|
||||||
|
# Use open/close sensors
|
||||||
|
- platform: state
|
||||||
|
entity_id: binary_sensor.dining_window_1_open_close
|
||||||
|
to: 'on'
|
||||||
|
- platform: state
|
||||||
|
entity_id: binary_sensor.dining_window_2_open_close
|
||||||
|
to: 'on'
|
||||||
|
- platform: state
|
||||||
|
entity_id: binary_sensor.office_window_open_close
|
||||||
|
to: 'on'
|
||||||
|
condition:
|
||||||
|
- condition: state
|
||||||
|
entity_id: alarm_control_panel.home_alarm
|
||||||
|
state: armed_away
|
||||||
action:
|
action:
|
||||||
- service: notify.mobile_app_iphone
|
- service: notify.mobile_app_iphone
|
||||||
data:
|
data:
|
||||||
message: Motion Detected in Kitchen!
|
message: Motion Detected in Living Room!
|
||||||
data:
|
data:
|
||||||
entity_id: camera.kitchen
|
entity_id: camera.living_room
|
||||||
url:
|
url:
|
||||||
_: "/lovelace-tablet/cctv"
|
_: "/lovelace-tablet/cctv"
|
||||||
mode: single
|
mode: single
|
||||||
|
|
||||||
- id: camera_hallway_notification
|
- id: camera_hallway_notification
|
||||||
alias: '[Camera] Hallway notification'
|
alias: '[Camera] Hallway notification'
|
||||||
condition:
|
|
||||||
- condition: state
|
|
||||||
entity_id: alarm_control_panel.home_alarm
|
|
||||||
state: armed_away
|
|
||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: binary_sensor.hallway_motion_sensor
|
entity_id: binary_sensor.hallway_motion_sensor
|
||||||
from: 'off'
|
from: 'off'
|
||||||
to: 'on'
|
to: 'on'
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: binary_sensor.hallway_sensor_2_home_security_motion_detection
|
entity_id: binary_sensor.front_door_open_close
|
||||||
from: 'off'
|
|
||||||
to: 'on'
|
to: 'on'
|
||||||
|
- platform: state
|
||||||
|
entity_id: lock.front_door_lock_doorlock
|
||||||
|
to: 'unlocked'
|
||||||
|
condition:
|
||||||
|
- condition: state
|
||||||
|
entity_id: alarm_control_panel.home_alarm
|
||||||
|
state: armed_away
|
||||||
action:
|
action:
|
||||||
- service: notify.mobile_app_iphone
|
- service: notify.mobile_app_iphone
|
||||||
data:
|
data:
|
||||||
|
@ -7,16 +7,7 @@
|
|||||||
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
|
|
||||||
# data_template:
|
|
||||||
# entity_id: binary_sensor.hallway_motion_sensor
|
|
||||||
# state: 'off'
|
|
||||||
- service: zha.set_zigbee_cluster_attribute
|
- service: zha.set_zigbee_cluster_attribute
|
||||||
data:
|
data:
|
||||||
ieee: 00:15:8d:00:07:75:31:c0
|
ieee: 00:15:8d:00:07:75:31:c0
|
||||||
@ -58,14 +49,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
|
||||||
below: '100'
|
below: '150'
|
||||||
action:
|
action:
|
||||||
- service: script.hallway_lights_on
|
- service: script.hallway_lights_on
|
||||||
|
|
||||||
@ -78,11 +65,6 @@
|
|||||||
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
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
good_night:
|
good_night:
|
||||||
alias: Good Night
|
alias: Good Night
|
||||||
sequence:
|
sequence:
|
||||||
|
- service: script.cctv_on
|
||||||
- service: alarm_control_panel.alarm_arm_home
|
- service: alarm_control_panel.alarm_arm_home
|
||||||
entity_id: alarm_control_panel.home_alarm
|
entity_id: alarm_control_panel.home_alarm
|
||||||
- service: input_select.select_option
|
- service: input_select.select_option
|
||||||
@ -87,6 +88,7 @@ good_night:
|
|||||||
good_morning:
|
good_morning:
|
||||||
alias: Good Morning
|
alias: Good Morning
|
||||||
sequence:
|
sequence:
|
||||||
|
- service: script.cctv_off
|
||||||
- service: cover.open_cover
|
- service: cover.open_cover
|
||||||
entity_id:
|
entity_id:
|
||||||
- cover.bedroom_blinds
|
- cover.bedroom_blinds
|
||||||
@ -126,6 +128,7 @@ good_morning:
|
|||||||
leave_home:
|
leave_home:
|
||||||
alias: Leave Home
|
alias: Leave Home
|
||||||
sequence:
|
sequence:
|
||||||
|
- service: script.cctv_on
|
||||||
- service: alarm_control_panel.alarm_arm_away
|
- service: alarm_control_panel.alarm_arm_away
|
||||||
entity_id: alarm_control_panel.home_alarm
|
entity_id: alarm_control_panel.home_alarm
|
||||||
- service: input_select.select_option
|
- service: input_select.select_option
|
||||||
@ -208,6 +211,7 @@ leave_home:
|
|||||||
arrive_home:
|
arrive_home:
|
||||||
alias: Arrive Home
|
alias: Arrive Home
|
||||||
sequence:
|
sequence:
|
||||||
|
- service: script.cctv_off
|
||||||
- service: alarm_control_panel.alarm_disarm
|
- service: alarm_control_panel.alarm_disarm
|
||||||
entity_id: alarm_control_panel.home_alarm
|
entity_id: alarm_control_panel.home_alarm
|
||||||
- service: input_select.select_option
|
- service: input_select.select_option
|
||||||
|
25
scripts/11.cctv.yaml
Normal file
25
scripts/11.cctv.yaml
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
cctv_on:
|
||||||
|
alias: CCTV on
|
||||||
|
sequence:
|
||||||
|
- service: switch.turn_on
|
||||||
|
target:
|
||||||
|
entity_id:
|
||||||
|
- switch.living_room_recordings
|
||||||
|
- switch.living_room_snapshots
|
||||||
|
- switch.living_room_detect
|
||||||
|
- switch.hallway_recordings
|
||||||
|
- switch.hallway_snapshots
|
||||||
|
- switch.hallway_detect
|
||||||
|
|
||||||
|
cctv_off:
|
||||||
|
alias: CCTV off
|
||||||
|
sequence:
|
||||||
|
- service: switch.turn_off
|
||||||
|
target:
|
||||||
|
entity_id:
|
||||||
|
- switch.living_room_recordings
|
||||||
|
- switch.living_room_snapshots
|
||||||
|
- switch.living_room_detect
|
||||||
|
- switch.hallway_recordings
|
||||||
|
- switch.hallway_snapshots
|
||||||
|
- switch.hallway_detect
|
Loading…
Reference in New Issue
Block a user