Open
Description
This component supports Xiaomi cameras, but if you need to be able to play video streams in HA, the device needs to meet the following conditions:
- Service
camera-stream-for-google-home
needs to be defined in camera device miot-spec (find your camera spec here) - The stream address can be obtained after the device is integrated (
stream_address
attribute in entity state) - The stream address can be accessed normally within the validity period (
stream_http_status
andstream_http_reason
attributes in entity state) - The stream address can be transcoded normally by ffmpeg, test via shell command:
ffmpeg -v warning -y -protocol_whitelist file,http,https,rtp,udp,tcp,tls,crypto -i 'https://cn.livestreaming.io.mi.com/hlstranscoder/XXXXXX_H265transH264/playlist.m3u8' -an -c:v mjpeg -f mpjpeg xiaomi_camera_video
What information do you need to show me when report a bug for camera ?
- Camera device model (Like:
brand.camera.abc
)Required
- Masked
stream_address
stream_http_status
andstream_http_reason
attributes in entity state- ffmpeg test results
本组件支持小米摄像机,但是如果需要能在HA中播放视频流,需要设备满足以下条件:
- 相机设备miot-spec中需定义流服务 (在这里找到你的相机规格)
- 集成设备后能够获取到流地址 (实体状态的属性
stream_address
) - 流地址在有效期内能够正常访问 (实体状态的属性
stream_http_status
和stream_http_reason
) - 流地址能被ffmpeg能够正常转码,通过shell命令测试:
ffmpeg -v warning -y -protocol_whitelist file,http,https,rtp,udp,tcp,tls,crypto -i 'https://cn.livestreaming.io.mi.com/hlstranscoder/XXXXXX_H265transH264/playlist.m3u8' -an -c:v mjpeg -f mpjpeg xiaomi_camera_video
报告Bug时需要向我展示哪些信息?
- 相机设备型号 (如:
brand.camera.abc
)必填
- 掩码的流地址
- 实体状态的属性
stream_http_status
和stream_http_reason
- ffmpeg测试结果