Created
May 6, 2026 13:40
-
-
Save kai-zer-ru/ab9077ce696b69e7cb1bc18efc48db20 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: Фото с камеры (балкон) | |
| description: >- | |
| Делает снимок с камеры на балконе и отправляет в Max, удаляя промежуточное | |
| сообщение | |
| mode: single | |
| sequence: | |
| - alias: "1. Отправляем: фото формируется" | |
| action: max_notify.send_message | |
| data: | |
| entity_id: | |
| - notify.maxnotify_webhook_chat_73199518591043 | |
| message: Фото с камеры (балкон) формируется | |
| send_keyboard: false | |
| - alias: 2. Ждём обновления сенсора с ID сообщения | |
| wait_for_trigger: | |
| - entity_id: >- | |
| sensor.maxnotify_webhook_identifikator_poslednego_iskhodiashchego_soobshcheniia_chat_73199518591043 | |
| for: | |
| seconds: 1 | |
| trigger: state | |
| timeout: "00:00:10" | |
| continue_on_timeout: false | |
| - alias: 3. Сохраняем ID сообщения (как строку) | |
| variables: | |
| message_id_to_delete: "{{ wait.trigger.to_state.state }}" | |
| - alias: 4. Делаем снимок с камеры NVT | |
| action: camera.snapshot | |
| target: | |
| entity_id: camera.nvt_mainstream | |
| data: | |
| filename: /config/www/cam_captures/imaje_balkon.jpg | |
| - alias: 5. Отправляем фото с кнопками | |
| action: max_notify.send_photo | |
| data: | |
| entity_id: | |
| - notify.maxnotify_webhook_chat_73199518591043 | |
| file: /config/www/cam_captures/imaje_balkon.jpg | |
| send_keyboard: true | |
| count_requests: 10 | |
| buttons: | |
| - - text: Фото (балкон) | |
| payload: photo_cam | |
| - text: Видео (балкон) | |
| payload: video_cam | |
| - - text: Фото (зал) | |
| payload: photo_cam_zal | |
| - text: Видео (зал) | |
| payload: video_cam_zal | |
| - - text: Фото (кабинет) | |
| payload: photo_cam_kab | |
| - text: Видео (кабинет) | |
| payload: video_cam_kab | |
| - - text: Фото со всех камер | |
| payload: photo_cam_all | |
| - text: Видео со всех камер | |
| payload: video_cam_all | |
| - - text: Удалить | |
| payload: delete | |
| - alias: 6. Удаляем первое сообщение | |
| action: max_notify.delete_message | |
| data: | |
| entity_id: | |
| - notify.maxnotify_webhook_chat_73199518591043 | |
| message_id: "{{ message_id_to_delete }}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment