Add camera snapshot
This commit is contained in:
parent
53b410cf80
commit
18543c268c
@ -113,7 +113,7 @@
|
|||||||
data:
|
data:
|
||||||
filename: /config/www/cctv/living_room.jpg
|
filename: /config/www/cctv/living_room.jpg
|
||||||
target:
|
target:
|
||||||
entity_id: camera.hallway
|
entity_id: camera.living_room
|
||||||
- service: notify.home_assistant
|
- service: notify.home_assistant
|
||||||
data:
|
data:
|
||||||
message: >
|
message: >
|
||||||
@ -161,9 +161,9 @@
|
|||||||
entity_id: alarm_control_panel.home_alarm
|
entity_id: alarm_control_panel.home_alarm
|
||||||
- service: camera.snapshot
|
- service: camera.snapshot
|
||||||
data:
|
data:
|
||||||
filename: /config/www/cctv/living_room.jpg
|
filename: /config/www/cctv/bedroom.jpg
|
||||||
target:
|
target:
|
||||||
entity_id: camera.hallway
|
entity_id: camera.bedroom
|
||||||
- service: notify.home_assistant
|
- service: notify.home_assistant
|
||||||
data:
|
data:
|
||||||
message: >
|
message: >
|
||||||
@ -181,6 +181,14 @@
|
|||||||
filename: /config/www/cctv/bedroom.mp4
|
filename: /config/www/cctv/bedroom.mp4
|
||||||
target:
|
target:
|
||||||
entity_id: camera.bedroom
|
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
|
- id: alarm-away-remaining
|
||||||
alias: '[Alarm] Trigger alarm when not at home'
|
alias: '[Alarm] Trigger alarm when not at home'
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
action:
|
action:
|
||||||
- service: notify.mobile_app_iphone
|
- service: notify.mobile_app_iphone
|
||||||
data:
|
data:
|
||||||
title: "Leak detection"
|
title: "Leak detection ⚠️"
|
||||||
message: >
|
message: >
|
||||||
Leak detected: {{ state_attr(trigger.entity_id, 'friendly_name') }}
|
Leak detected: {{ state_attr(trigger.entity_id, 'friendly_name') }}
|
||||||
data:
|
data:
|
||||||
@ -39,6 +39,7 @@
|
|||||||
{{ state_attr(trigger.entity_id, 'friendly_name') }}
|
{{ state_attr(trigger.entity_id, 'friendly_name') }}
|
||||||
@everyone
|
@everyone
|
||||||
target: [ "1071801716070154240" ]
|
target: [ "1071801716070154240" ]
|
||||||
|
- service: script.cctv_snapshot_all
|
||||||
|
|
||||||
- id: info-leak-cleared-notice
|
- id: info-leak-cleared-notice
|
||||||
alias: '[INFO] Leak cleared notice'
|
alias: '[INFO] Leak cleared notice'
|
||||||
@ -65,13 +66,13 @@
|
|||||||
action:
|
action:
|
||||||
- service: notify.mobile_app_iphone
|
- service: notify.mobile_app_iphone
|
||||||
data:
|
data:
|
||||||
title: "Leak cleared"
|
title: "Leak cleared ✅"
|
||||||
message: >
|
message: >
|
||||||
Leak cleared: {{ state_attr(trigger.entity_id, 'friendly_name') }}
|
Leak cleared: {{ state_attr(trigger.entity_id, 'friendly_name') }}
|
||||||
- service: notify.home_assistant
|
- service: notify.home_assistant
|
||||||
data:
|
data:
|
||||||
message: >
|
message: >
|
||||||
Leak cleared! ✅
|
Leak cleared! ✅
|
||||||
{{ state_attr(trigger.entity_id, 'friendly_name') }}
|
{{ state_attr(trigger.entity_id, 'friendly_name') }}
|
||||||
target: [ "1071801716070154240" ]
|
target: [ "1071801716070154240" ]
|
||||||
|
|
||||||
@ -88,7 +89,7 @@
|
|||||||
action:
|
action:
|
||||||
- service: notify.mobile_app_iphone
|
- service: notify.mobile_app_iphone
|
||||||
data:
|
data:
|
||||||
title: "Smoke detection"
|
title: "Smoke detection ⚠️"
|
||||||
message: >
|
message: >
|
||||||
Smoke detected: {{ state_attr(trigger.entity_id, 'friendly_name') }}
|
Smoke detected: {{ state_attr(trigger.entity_id, 'friendly_name') }}
|
||||||
data:
|
data:
|
||||||
@ -104,6 +105,7 @@
|
|||||||
{{ state_attr(trigger.entity_id, 'friendly_name') }}
|
{{ state_attr(trigger.entity_id, 'friendly_name') }}
|
||||||
@everyone
|
@everyone
|
||||||
target: [ "1071801716070154240" ]
|
target: [ "1071801716070154240" ]
|
||||||
|
- service: script.cctv_snapshot_all
|
||||||
|
|
||||||
- id: info-smoke-cleared-notice
|
- id: info-smoke-cleared-notice
|
||||||
alias: '[INFO] Smoke notice'
|
alias: '[INFO] Smoke notice'
|
||||||
@ -118,7 +120,7 @@
|
|||||||
action:
|
action:
|
||||||
- service: notify.mobile_app_iphone
|
- service: notify.mobile_app_iphone
|
||||||
data:
|
data:
|
||||||
title: "Smoke cleared"
|
title: "Smoke cleared ✅"
|
||||||
message: >
|
message: >
|
||||||
Smoke cleared: {{ state_attr(trigger.entity_id, 'friendly_name') }}
|
Smoke cleared: {{ state_attr(trigger.entity_id, 'friendly_name') }}
|
||||||
- service: notify.home_assistant
|
- service: notify.home_assistant
|
||||||
@ -127,3 +129,4 @@
|
|||||||
Smoke cleared! ✅
|
Smoke cleared! ✅
|
||||||
{{ state_attr(trigger.entity_id, 'friendly_name') }}
|
{{ state_attr(trigger.entity_id, 'friendly_name') }}
|
||||||
target: [ "1071801716070154240" ]
|
target: [ "1071801716070154240" ]
|
||||||
|
- service: script.cctv_snapshot_all
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
- service: notify.home_assistant
|
- service: notify.home_assistant
|
||||||
data:
|
data:
|
||||||
message: >
|
message: >
|
||||||
UPS Alert ✅
|
UPS Alert ✅
|
||||||
UPS is charging
|
UPS is charging
|
||||||
@everyone
|
@everyone
|
||||||
target: [ "1071801716070154240" ]
|
target: [ "1071801716070154240" ]
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
cctv_on:
|
cctv_on:
|
||||||
alias: CCTV on
|
alias: CCTV on
|
||||||
|
icon: mdi:cctv
|
||||||
sequence:
|
sequence:
|
||||||
- service: switch.turn_on
|
- service: switch.turn_on
|
||||||
target:
|
target:
|
||||||
@ -21,6 +22,7 @@ cctv_on:
|
|||||||
|
|
||||||
cctv_off:
|
cctv_off:
|
||||||
alias: CCTV off
|
alias: CCTV off
|
||||||
|
icon: mdi:cctv-off
|
||||||
sequence:
|
sequence:
|
||||||
- service: switch.turn_off
|
- service: switch.turn_off
|
||||||
target:
|
target:
|
||||||
@ -35,3 +37,45 @@ cctv_off:
|
|||||||
- switch.hallway_recordings
|
- switch.hallway_recordings
|
||||||
- switch.hallway_snapshots
|
- switch.hallway_snapshots
|
||||||
- switch.hallway_detect
|
- 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 New Issue
Block a user