Compare commits
3 commits
86dbdfe054
...
18543c268c
Author | SHA1 | Date | |
---|---|---|---|
18543c268c | |||
53b410cf80 | |||
d4c424c3df |
5 changed files with 142 additions and 6 deletions
|
@ -113,7 +113,7 @@
|
|||
data:
|
||||
filename: /config/www/cctv/living_room.jpg
|
||||
target:
|
||||
entity_id: camera.hallway
|
||||
entity_id: camera.living_room
|
||||
- service: notify.home_assistant
|
||||
data:
|
||||
message: >
|
||||
|
@ -161,9 +161,9 @@
|
|||
entity_id: alarm_control_panel.home_alarm
|
||||
- service: camera.snapshot
|
||||
data:
|
||||
filename: /config/www/cctv/living_room.jpg
|
||||
filename: /config/www/cctv/bedroom.jpg
|
||||
target:
|
||||
entity_id: camera.hallway
|
||||
entity_id: camera.bedroom
|
||||
- service: notify.home_assistant
|
||||
data:
|
||||
message: >
|
||||
|
@ -181,6 +181,14 @@
|
|||
filename: /config/www/cctv/bedroom.mp4
|
||||
target:
|
||||
entity_id: camera.bedroom
|
||||
- service: notify.home_assistant
|
||||
data:
|
||||
message: >
|
||||
Motion recording
|
||||
target: [ "1070507369164984372" ]
|
||||
data:
|
||||
images:
|
||||
- "/config/www/cctv/bedroom.mp4"
|
||||
|
||||
- id: alarm-away-remaining
|
||||
alias: '[Alarm] Trigger alarm when not at home'
|
||||
|
|
|
@ -5,6 +5,9 @@
|
|||
- platform: state
|
||||
entity_id: binary_sensor.coffee_machine_leak_sensor
|
||||
to: 'on'
|
||||
- platform: state
|
||||
entity_id: binary_sensor.dining_plants_leak_sensor
|
||||
to: 'on'
|
||||
- platform: state
|
||||
entity_id: binary_sensor.fridge_leak_sensor
|
||||
to: 'on'
|
||||
|
@ -20,7 +23,7 @@
|
|||
action:
|
||||
- service: notify.mobile_app_iphone
|
||||
data:
|
||||
title: "Leak detection"
|
||||
title: "Leak detection ⚠️"
|
||||
message: >
|
||||
Leak detected: {{ state_attr(trigger.entity_id, 'friendly_name') }}
|
||||
data:
|
||||
|
@ -29,6 +32,49 @@
|
|||
name: "default"
|
||||
critical: 1
|
||||
volume: 1.0
|
||||
- service: notify.home_assistant
|
||||
data:
|
||||
message: >
|
||||
Leak detected! ⚠️
|
||||
{{ state_attr(trigger.entity_id, 'friendly_name') }}
|
||||
@everyone
|
||||
target: [ "1071801716070154240" ]
|
||||
- service: script.cctv_snapshot_all
|
||||
|
||||
- id: info-leak-cleared-notice
|
||||
alias: '[INFO] Leak cleared notice'
|
||||
mode: single
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.coffee_machine_leak_sensor
|
||||
to: 'off'
|
||||
- platform: state
|
||||
entity_id: binary_sensor.dining_plants_leak_sensor
|
||||
to: 'off'
|
||||
- platform: state
|
||||
entity_id: binary_sensor.fridge_leak_sensor
|
||||
to: 'off'
|
||||
- platform: state
|
||||
entity_id: binary_sensor.humidifier_leak_sensor
|
||||
to: 'off'
|
||||
- platform: state
|
||||
entity_id: binary_sensor.kitchen_sink_leak_sensor
|
||||
to: 'off'
|
||||
- platform: state
|
||||
entity_id: binary_sensor.washing_machine_water_leak_sensor
|
||||
to: 'off'
|
||||
action:
|
||||
- service: notify.mobile_app_iphone
|
||||
data:
|
||||
title: "Leak cleared ✅"
|
||||
message: >
|
||||
Leak cleared: {{ state_attr(trigger.entity_id, 'friendly_name') }}
|
||||
- service: notify.home_assistant
|
||||
data:
|
||||
message: >
|
||||
Leak cleared! ✅
|
||||
{{ state_attr(trigger.entity_id, 'friendly_name') }}
|
||||
target: [ "1071801716070154240" ]
|
||||
|
||||
- id: info-smoke-notice
|
||||
alias: '[INFO] Smoke notice'
|
||||
|
@ -43,7 +89,7 @@
|
|||
action:
|
||||
- service: notify.mobile_app_iphone
|
||||
data:
|
||||
title: "Smoke detection"
|
||||
title: "Smoke detection ⚠️"
|
||||
message: >
|
||||
Smoke detected: {{ state_attr(trigger.entity_id, 'friendly_name') }}
|
||||
data:
|
||||
|
@ -52,3 +98,35 @@
|
|||
name: "default"
|
||||
critical: 1
|
||||
volume: 1.0
|
||||
- service: notify.home_assistant
|
||||
data:
|
||||
message: >
|
||||
Smoke detected! ⚠️
|
||||
{{ state_attr(trigger.entity_id, 'friendly_name') }}
|
||||
@everyone
|
||||
target: [ "1071801716070154240" ]
|
||||
- service: script.cctv_snapshot_all
|
||||
|
||||
- id: info-smoke-cleared-notice
|
||||
alias: '[INFO] Smoke notice'
|
||||
mode: single
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.3d_printer_smoke_sensor_smoke_alarm_smoke_detected
|
||||
to: 'off'
|
||||
- platform: state
|
||||
entity_id: binary_sensor.rack_smoke_sensor
|
||||
to: 'off'
|
||||
action:
|
||||
- service: notify.mobile_app_iphone
|
||||
data:
|
||||
title: "Smoke cleared ✅"
|
||||
message: >
|
||||
Smoke cleared: {{ state_attr(trigger.entity_id, 'friendly_name') }}
|
||||
- service: notify.home_assistant
|
||||
data:
|
||||
message: >
|
||||
Smoke cleared! ✅
|
||||
{{ state_attr(trigger.entity_id, 'friendly_name') }}
|
||||
target: [ "1071801716070154240" ]
|
||||
- service: script.cctv_snapshot_all
|
||||
|
|
|
@ -249,6 +249,12 @@
|
|||
platform: device
|
||||
type: device_offline
|
||||
subtype: device_offline
|
||||
# Dining leak sensor
|
||||
- device_id: bb826c002afcea1c005151042ea6a3ca
|
||||
domain: zha
|
||||
platform: device
|
||||
type: device_offline
|
||||
subtype: device_offline
|
||||
# Dining illuminance sensor
|
||||
- device_id: 9c0cfd20fd5b926615e816400912ebd5
|
||||
domain: zha
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
- service: notify.home_assistant
|
||||
data:
|
||||
message: >
|
||||
UPS Alert ✅
|
||||
UPS Alert ✅
|
||||
UPS is charging
|
||||
@everyone
|
||||
target: [ "1071801716070154240" ]
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
cctv_on:
|
||||
alias: CCTV on
|
||||
icon: mdi:cctv
|
||||
sequence:
|
||||
- service: switch.turn_on
|
||||
target:
|
||||
|
@ -21,6 +22,7 @@ cctv_on:
|
|||
|
||||
cctv_off:
|
||||
alias: CCTV off
|
||||
icon: mdi:cctv-off
|
||||
sequence:
|
||||
- service: switch.turn_off
|
||||
target:
|
||||
|
@ -35,3 +37,45 @@ cctv_off:
|
|||
- switch.hallway_recordings
|
||||
- switch.hallway_snapshots
|
||||
- switch.hallway_detect
|
||||
|
||||
cctv_snapshot_all:
|
||||
alias: CCTV snapshot all
|
||||
icon: mdi:cctv
|
||||
sequence:
|
||||
- service: camera.snapshot
|
||||
data:
|
||||
filename: /config/www/cctv/hallway.jpg
|
||||
target:
|
||||
entity_id: camera.hallway
|
||||
- service: camera.snapshot
|
||||
data:
|
||||
filename: /config/www/cctv/living_room.jpg
|
||||
target:
|
||||
entity_id: camera.living_room
|
||||
- service: camera.snapshot
|
||||
data:
|
||||
filename: /config/www/cctv/bedroom.jpg
|
||||
target:
|
||||
entity_id: camera.bedroom
|
||||
- service: camera.snapshot
|
||||
data:
|
||||
filename: /config/www/cctv/3d_printer.jpg
|
||||
target:
|
||||
entity_id: camera.3d_printer
|
||||
- service: camera.snapshot
|
||||
data:
|
||||
filename: /config/www/cctv/balcony.jpg
|
||||
target:
|
||||
entity_id: camera.balcony
|
||||
- service: notify.home_assistant
|
||||
data:
|
||||
message: >
|
||||
All camera snapshot
|
||||
target: [ "1070507369164984372" ]
|
||||
data:
|
||||
images:
|
||||
- "/config/www/cctv/hallway.jpg"
|
||||
- "/config/www/cctv/living_room.jpg"
|
||||
- "/config/www/cctv/bedroom.jpg"
|
||||
- "/config/www/cctv/3d_printer.jpg"
|
||||
- "/config/www/cctv/balcony.jpg"
|
||||
|
|
Loading…
Reference in a new issue