esp32cam и вебкамера. Делаем запись видео в home assistant с помощью motioneye. Детектор движения.
- устройство ESP32-CAM из обзора
sudo apt-get install ffmpeg
ffmpeg -i -an -f null -
sudo apt-get install v4l-utils
v4l2-ctl --list-devices
ffmpeg -i -t 5 -c:v libx264 -y -c:a copy /usr/share/hassio/media/
В :
shell_command:
record_video: ffmpeg -i -t 5 -c:v libx264 -c:a copy -y /media/
В
- alias: Делаем видео
description: ’’
trigger:
- platform: event
event_type: telegram_command
event_data:
command: /start
context: {}
- platform: webhook
webhook_id: motioneye-camera1-started
condition: []
action:
- service:
- delay:
hours: 0
minutes: 0
seconds: 8
milliseconds: 0
- service:
data:
file: /media/
keyboard: /start, /send
caption: Кто-то шарится возле двери.
mode: single
- alias: Отправить видео
description: ’’
trigger:
- platform: event
event_type: telegram_command
event_data:
command: /send
condition: []
action:
- service:
data:
file: /media/
keyboard: /start, /send
inline_keyboard: /start, /send
mode: single