Created
March 27, 2022 15:59
-
-
Save Matt-PMCT/f962a3db9c40f9f286febc87421056d1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias: Doorbell to Phone Notification | |
description: '' | |
trigger: | |
- platform: state | |
entity_id: sensor.first_floor_doorbell_siren_3_property | |
to: '1' | |
condition: [] | |
action: | |
- service: input_text.set_value | |
target: | |
entity_id: input_text.filenamehelper | |
data_template: | |
value: >- | |
{{ now().year }}-{{ now().month }}-{{ now().day }} {{ now().hour }}{{ | |
now().minute }} | |
- service: camera.snapshot | |
target: | |
entity_id: camera.frontdoorzoom | |
data_template: | |
filename: >- | |
/config/www/doorbellSnapshot/{{ states("input_text.filenamehelper") }} | |
FrontDoorZoom.jpg | |
- service: notify.matt_phone | |
data: | |
message: Kurt St Doorbell | |
data: | |
ttl: 0 | |
priority: high | |
channel: Doorbell | |
clickAction: >- | |
https://xxx.ui.nabu.casa/local/doorbellSnapshot/{{ | |
states('input_text.filenamehelper') }} FrontDoorZoom.jpg | |
image: >- | |
https://xxx.ui.nabu.casa/local/doorbellSnapshot/{{ | |
states('input_text.filenamehelper') }} FrontDoorZoom.jpg | |
mode: single |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment