VO
Size: a a a
VO
A
T
V
AS
AS
- alias: telegram_all_cameras_notify
initial_state: true
trigger:
platform: event
event_type: telegram_command
event_data:
command: '/cameras'
V
AS
AS
action:
- service: camera.snapshot
data:
entity_id: camera.id
filename: "/config/www/cam_captures/filename.jpg"
- delay: 00:00:03
- service: notify.telegram
data:
title: 'Запрос фото с камер'
message: "Camera1 в {{ states('sensor.time') }}"
- service: notify.telegram
data:
message: ""
data:
photo:
- file: /config/www/cam_captures/filename.jpg
V
action:
- service: camera.snapshot
data:
entity_id: camera.id
filename: "/config/www/cam_captures/filename.jpg"
- delay: 00:00:03
- service: notify.telegram
data:
title: 'Запрос фото с камер'
message: "Camera1 в {{ states('sensor.time') }}"
- service: notify.telegram
data:
message: ""
data:
photo:
- file: /config/www/cam_captures/filename.jpg
AS
V
AS
AS
camera.snapshot
AS
AS
AS
- service: camera.snapshot
data:
entity_id: camera.tambour
filename: "/config/www/cam_captures/tambour.jpg"
AS
AS
trigger:
platform: event
event_type: telegram_command
event_data:
command: '/my_command'
<— это твоя команда