摄像头实时显示

https://www.home-assistant.io/integrations/stream#streaming-in-lovelace

https://www.home-assistant.io/lovelace/picture-entity/#entity

https://community.home-assistant.io/t/stream-component-confirmed-cameras-and-configurations/106729

 

配置yaml

stream:

camera:
- platform: ffmpeg
name: camera_sala
input: -rtsp_transport tcp -i rtsp://user:password@10.0.0.10:554/h264/ch4/main/av_stream

# - platform: generic
# name: HikVision
# #channels/401表示第四个频道,101表示第一个频道
# # still_image_url: "http://10.0.0.10/ISAPI/Streaming/channels/401/picture"
# still_image_url: "http://10.0.0.10/ISAPI/Streaming/channels/501/picture"
# stream_source: "rtsp://user:password@10.0.0.10:554"
# username: "admin"
# password: "chen13905059389"
# authentication: digest
- platform: generic
name: test Camera
still_image_url: "http://user:password@10.0.0.10/ISAPI/Streaming/channels/401/picture"
stream_source: "rtsp://user:password@10.0.0.10:554/ISAPI/Streaming/channels/501/picture"

 

图片实体卡片配置

type: picture-entity
entity: camera.test_camera
camera_view: live

 

posted @ 2020-10-14 18:14  chenlife  阅读(44)  评论(0)    收藏  举报