Skip to content

Instantly share code, notes, and snippets.

@adocampo
Created November 6, 2019 08:41
Show Gist options
  • Save adocampo/1397f947b21aafcd785a4112c834e6b6 to your computer and use it in GitHub Desktop.
Save adocampo/1397f947b21aafcd785a4112c834e6b6 to your computer and use it in GitHub Desktop.
HA push photo to telegram
camara_salon_snapshot:
alias: 'Capturar imagen recibidor'
sequence:
- service: camera.snapshot
data:
entity_id: camera.salon_camera
filename: '/config/www/snapshot/salon.jpg'
- delay: '00:00:06'
- service: notify.pushnotify
data_template:
title: 'Notificacion PUSH'
message: 'Alguien entra en casa'
data:
image: >-
https://IPoDUCKDNS:8123/local/snapshot/salon.jpg
- delay: '00:00:06'
- service: notify.telegram
data:
title: Test
message: "Alguien entra en casa"
data:
photo:
- file: '/config/www/snapshot/salon.jpg'
caption: Alguien entra en Casa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment