Compare commits
3 commits
322d536967
...
cb20c222d3
Author | SHA1 | Date | |
---|---|---|---|
cb20c222d3 | |||
c545987e12 | |||
1c63d609bf |
3 changed files with 69 additions and 16 deletions
|
@ -37,10 +37,27 @@
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: sensor.octoprint_job_percentage
|
entity_id: sensor.octoprint_job_percentage
|
||||||
to: '100.0'
|
to: '100.0'
|
||||||
|
- platform: state
|
||||||
|
entity_id:
|
||||||
|
- sensor.octoprint_target_bed_temp
|
||||||
|
to: "0"
|
||||||
action:
|
action:
|
||||||
- service: notify.mobile_app_iphone
|
- service: notify.mobile_app_iphone
|
||||||
data:
|
data:
|
||||||
message: 3D printer has finished
|
message: 3D printer has finished
|
||||||
|
entity_id: camera.3d_printer
|
||||||
|
- service: camera.snapshot
|
||||||
|
data:
|
||||||
|
filename: /config/www/cctv/3d_printer.jpg
|
||||||
|
target:
|
||||||
|
entity_id: camera.hallway
|
||||||
|
- service: notify.home_assistant
|
||||||
|
data:
|
||||||
|
message: "3D Printer has finished"
|
||||||
|
target: [ "1070521797688180796" ]
|
||||||
|
data:
|
||||||
|
images:
|
||||||
|
- "/config/www/cctv/3d_printer.jpg"
|
||||||
|
|
||||||
- id: 3dprinter-button
|
- id: 3dprinter-button
|
||||||
alias: '[3D Printer] button'
|
alias: '[3D Printer] button'
|
||||||
|
|
|
@ -23,14 +23,7 @@
|
||||||
action:
|
action:
|
||||||
- service: alarm_control_panel.alarm_trigger
|
- service: alarm_control_panel.alarm_trigger
|
||||||
entity_id: alarm_control_panel.home_alarm
|
entity_id: alarm_control_panel.home_alarm
|
||||||
- service: notify.mobile_app_iphone
|
- service: script.cctv_notify_hallway
|
||||||
data:
|
|
||||||
title: "ALARM! Pending for disarm"
|
|
||||||
message: >
|
|
||||||
{{ state_attr(trigger.entity_id, 'friendly_name') }}
|
|
||||||
data:
|
|
||||||
entity_id: camera.hallway
|
|
||||||
url: "/lovelace-tablet/security"
|
|
||||||
|
|
||||||
- id: alarm-away-living-roomn
|
- id: alarm-away-living-roomn
|
||||||
alias: '[Alarm] Trigger alarm when not at home (Living Room)'
|
alias: '[Alarm] Trigger alarm when not at home (Living Room)'
|
||||||
|
@ -71,14 +64,7 @@
|
||||||
action:
|
action:
|
||||||
- service: alarm_control_panel.alarm_trigger
|
- service: alarm_control_panel.alarm_trigger
|
||||||
entity_id: alarm_control_panel.home_alarm
|
entity_id: alarm_control_panel.home_alarm
|
||||||
- service: notify.mobile_app_iphone
|
- service: script.cctv_notify_hallway
|
||||||
data:
|
|
||||||
title: "ALARM! Pending for disarm"
|
|
||||||
message: >
|
|
||||||
{{ state_attr(trigger.entity_id, 'friendly_name') }}
|
|
||||||
data:
|
|
||||||
entity_id: camera.living_room
|
|
||||||
url: "/lovelace-tablet/security"
|
|
||||||
|
|
||||||
- id: alarm-away-remaining
|
- id: alarm-away-remaining
|
||||||
alias: '[Alarm] Trigger alarm when not at home'
|
alias: '[Alarm] Trigger alarm when not at home'
|
||||||
|
|
|
@ -31,3 +31,53 @@ cctv_off:
|
||||||
- switch.hallway_recordings
|
- switch.hallway_recordings
|
||||||
- switch.hallway_snapshots
|
- switch.hallway_snapshots
|
||||||
- switch.hallway_detect
|
- switch.hallway_detect
|
||||||
|
|
||||||
|
cctv_notify_hallway:
|
||||||
|
alias: CCTV notify hallway
|
||||||
|
sequence:
|
||||||
|
- service: notify.mobile_app_iphone
|
||||||
|
data:
|
||||||
|
title: "ALARM! Pending for disarm"
|
||||||
|
message: >
|
||||||
|
{{ state_attr(trigger.entity_id, 'friendly_name') }}
|
||||||
|
data:
|
||||||
|
entity_id: camera.hallway
|
||||||
|
url: "/lovelace-tablet/security"
|
||||||
|
- service: camera.snapshot
|
||||||
|
data:
|
||||||
|
filename: /config/www/cctv/hallway.jpg
|
||||||
|
target:
|
||||||
|
entity_id: camera.hallway
|
||||||
|
- service: notify.home_assistant
|
||||||
|
data:
|
||||||
|
title: "ALARM. Pending to disarm"
|
||||||
|
message: "Motion in hallway"
|
||||||
|
target: [ "1070507369164984372" ]
|
||||||
|
data:
|
||||||
|
images:
|
||||||
|
- "/config/www/cctv/hallway.jpg"
|
||||||
|
|
||||||
|
cctv_notify_living_room:
|
||||||
|
alias: CCTV notify living room
|
||||||
|
sequence:
|
||||||
|
- service: notify.mobile_app_iphone
|
||||||
|
data:
|
||||||
|
title: "ALARM! Pending for disarm"
|
||||||
|
message: >
|
||||||
|
{{ state_attr(trigger.entity_id, 'friendly_name') }}
|
||||||
|
data:
|
||||||
|
entity_id: camera.living_room
|
||||||
|
url: "/lovelace-tablet/security"
|
||||||
|
- service: camera.snapshot
|
||||||
|
data:
|
||||||
|
filename: /config/www/cctv/living_room.jpg
|
||||||
|
target:
|
||||||
|
entity_id: camera.hallway
|
||||||
|
- service: notify.home_assistant
|
||||||
|
data:
|
||||||
|
title: "ALARM. Pending to disarm"
|
||||||
|
message: "Motion in living room"
|
||||||
|
target: [ "1070507369164984372" ]
|
||||||
|
data:
|
||||||
|
images:
|
||||||
|
- "/config/www/cctv/living_room.jpg"
|
||||||
|
|
Loading…
Add table
Reference in a new issue