home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
72.71k stars 30.45k forks source link

ONVIF integration - RTSP snapshot URI "not appreciated" by integration. #66554

Closed alexslaets closed 2 years ago

alexslaets commented 2 years ago

The problem

I am using the ONVIF integration with cheap CN XIAOMI OEM XM530 IP Camera's.

I get the following error in the HA log:

Logger: homeassistant.components.onvif Fetch snapshot image failed from NVT, falling back to FFmpeg; Unknown error: Request URL has an unsupported protocol 'rtsp://'.

The error is not on the side of the ONVIF integration, I believe because using ONVIF device test tool the camera indeed reports the following xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:ter="http://www.onvif.org/ver10/error">

rtsp://192.168.1.81:554/user=admin_password=redacted_channel=0_stream=0.sdp?real_stream false false PT60S This URI can be opened in VLC and it is in fact the stream. ONVIF test tool also complains, I assume a snapshot URI must provide a downloadable JPG or something ? The camera has such URI, in fact: http://192.168.1.81/webcapture.jpg?command=snap&channel=1 which I found on the internet. Does the ONVIF integration provide a way to override the snapshot URL sent by the ONVIF software of the camera or any other suggestion. ### What version of Home Assistant Core has the issue? 2022.2.6 ### What was the last working version of Home Assistant Core? _No response_ ### What type of installation are you running? Home Assistant Container ### Integration causing the issue ONVIF ### Link to integration documentation on our website https://www.home-assistant.io/integrations/onvif ### Diagnostics information No diagnostics found for onvif ### Example YAML snippet _No response_ ### Anything in the logs that might be useful for us? ```txt See above ``` ### Additional information _No response_
probot-home-assistant[bot] commented 2 years ago

onvif documentation onvif source (message by IssueLinks)

probot-home-assistant[bot] commented 2 years ago

Hey there @hunterjm, mind taking a look at this issue as it has been labeled with an integration (onvif) you are listed as a code owner for? Thanks! (message by CodeOwnersMention)