参考这里的脚本,修改了下,添加 iptv 启动脚本。
iptv 客户端是在 g store 里下载。atv 是 sheild tv
start_iptv:
alias: IPTV
sequence:
- service: media_player.select_source
target:
entity_id: media_player.nvida_shiled_atv
data:
source: IPTV
stop_iptv:
alias: IPTV
sequence:
- service: media_player.select_source
target:
entity_id: media_player.nvida_shiled_atv
data:
source: '!IPTV'
# start cctv 13
start_cctv13:
alias: CCTV News
sequence:
- service: script.stop_iptv
- service: script.start_iptv
- service: script.atv_down
- service: script.atv_center
down 是因为 iptv 列表里第一项是 cctv 13
reply #1
camera:
- platform: ffmpeg
input: -rtsp_transport tcp -i rtsp://admin:摄像头下面的验证码@192.168.1.26:554/h264/ch1/main/av_stream
name: ezviz
extra_arguments: -pred 1 -q:v 2 -s 1280x720
1
cheny95 2022-02-22 17:45:13 +08:00
你好,请问萤石的摄像头怎么接入 HA 的,我用 rtmp://rtmp01open.ys7.com:1935/v3/openlive.......... 的地址也不行,ffmpeg 是用 NAS 第三方商店安装的,HA 是 NAS 跑的 Docker 。
|