Skip to content

Instantly share code, notes, and snippets.

@Matt-PMCT
Created March 27, 2022 15:59
Show Gist options
  • Save Matt-PMCT/f962a3db9c40f9f286febc87421056d1 to your computer and use it in GitHub Desktop.
Save Matt-PMCT/f962a3db9c40f9f286febc87421056d1 to your computer and use it in GitHub Desktop.
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