V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
vtoex0000000002
V2EX  ›  HomeKit

使用 siri + homekit + hass 实现 自动打开 iptv 央视新闻台

  •  
  •   vtoex0000000002 · Feb 18, 2022 · 4052 views
    This topic created in 1540 days ago, the information mentioned may be changed or developed.

    参考这里的脚本,修改了下,添加 iptv 启动脚本。

    iptv 客户端是在 g store 里下载。atv 是 sheild tv

    捕获.PNG

    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

    微信图片_20220218444455566.jpg

    Supplement 1  ·  Feb 22, 2022

    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
    
    
    cheny95
        1
    cheny95  
       Feb 22, 2022
    你好,请问萤石的摄像头怎么接入 HA 的,我用 rtmp://rtmp01open.ys7.com:1935/v3/openlive.......... 的地址也不行,ffmpeg 是用 NAS 第三方商店安装的,HA 是 NAS 跑的 Docker 。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3055 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 299ms · UTC 14:09 · PVG 22:09 · LAX 07:09 · JFK 10:09
    ♥ Do have faith in what you're doing.