diff options
author | root <root@smartpi.suren.me> | 2023-01-10 07:45:02 +0400 |
---|---|---|
committer | root <root@smartpi.suren.me> | 2023-01-10 07:45:02 +0400 |
commit | 2c0c331eb7b7a03152309bbbd4e0fee157e8d86c (patch) | |
tree | 03391160212b39c4597ecc26010f2ba1235a65e3 /blueprints/script/camera/send_photo.yaml | |
download | hass-2c0c331eb7b7a03152309bbbd4e0fee157e8d86c.tar.gz hass-2c0c331eb7b7a03152309bbbd4e0fee157e8d86c.tar.bz2 hass-2c0c331eb7b7a03152309bbbd4e0fee157e8d86c.tar.xz hass-2c0c331eb7b7a03152309bbbd4e0fee157e8d86c.zip |
Initial configuration
Diffstat (limited to 'blueprints/script/camera/send_photo.yaml')
-rw-r--r-- | blueprints/script/camera/send_photo.yaml | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/blueprints/script/camera/send_photo.yaml b/blueprints/script/camera/send_photo.yaml new file mode 100644 index 0000000..2b14639 --- /dev/null +++ b/blueprints/script/camera/send_photo.yaml @@ -0,0 +1,37 @@ +blueprint: + name: Send Photo + description: Send a single photo from the camera + domain: script + input: + camera: + name: Camera + description: Camera + default: camera.192_168_50_51 + selector: + entity: + domain: camera + host: + name: Host + description: Host running camera server + default: http://127.0.0.1:8123 + caption: + name: Caption + description: Caption to send in telegram message + default: '' + +variables: + camera: !input camera + smartpi: !input host + caption: !input caption +# caption: AubergineView +# delay: 5 +# fast_shots: 15 +# fast_delay: 1000 + +mode: single +sequence: + - service: telegram_bot.send_photo + data: + disable_notification: false + caption: '{{ caption }} at {{ states("sensor.date_time_iso") }}' + url: '{{ smartpi + state_attr(camera, "entity_picture") }}' |