Closed cklimowicz closed 2 months ago
I noticed that HA is not so standard with onvif. It doesn't understand spaces inside the xml. I need to change some code.
Does Onvif Device Manager works?
Onvif Manager works ok. I have connected 2 more cameras with 0.4.9 version
There was several problems, I think HA is not completely compliant with the standard specification. But no problem, I fixed it. I will send a new beta hack to test.
Here it is: y203c_0.5.0.tgz
Please try it and let me know if it's ok.
Thank you very much. I don't know if I can test it now because I only have remote access to the cameras. Unless I can upload via ssh. I'll let you know
I can send you just the differences... update_1.tar.gz
And finally reboot the cam. Pay attention to the permissions. Don't miss them.
Ok, I checked both variants. First, I uploaded the files (home../sys..) to the sd card via ssh and did a reboot. In HA through the onvif manager, the camera was not visible. Second, I replaced the Onvif directory and wsd_simple_server and rebooted. Unfortunately the same, the camera cannot be seen through Onvif.
Finally, I uploaded the files with version 0.4.9 and restarted. Onvif started working again.
I noticed that version 0.5.0 lacks Onvif port configuration. I don't know if that has anything to do with it.
With the last hack version, the old onvif_srvd daemon is deprecated and not used anymore. The new binary is onvif_simple_server and it's not a daemon but a cgi. So it shares the port 80 with httpd (no need to configure it).
wsdd is also deprecated, the new binary is wsd_simple_server (this is a daemon).
I'm in this issue too. Is the Xml formatting or the httpd port sharing that doesn't like to HA?
No, the problem is that the xml produced by HA uses explicit namespace. Something like:
<SOAP-ENV:Envelope>
...
<ns0:GetCapabilities xmlns:ns0="http://www.onvif.org/ver10/device/wsdl">
...
instead of:
<SOAP-ENV:Envelope xmlns:tds="http://www.onvif.org/ver10/device/wsdl">
...
<GetCapabilities>
...
Since there is no soap/xml engine behind onvif_simple_server, it didn't work. There is just a simple parse.
And another problem. If GetCapabilitiesResponse from the cam contains the Event section:
<tt:Events>
<tt:XAddr>%EVENTS_SERVICE_ADDRESS%</tt:XAddr>
<tt:WSSubscriptionPolicySupport>false</tt:WSSubscriptionPolicySupport>
<tt:WSPullPointSupport>false</tt:WSPullPointSupport>
<tt:WSPausableSubscriptionManagerInterfaceSupport>false</tt:WSPausableSubscriptionManagerInterfaceSupport>
</tt:Events>
HA asks for an event subscription although the support is false as in the example above.
I improved the parsing of the XML request and I removed the event section.
The previous release was tested with the official tools from ONVIF Project, so I'm pretty sure that was correct.
Same problem here. I have the y30 and h201c flavor.... No ONVIF access... I've only upgraded the y30 to this point..... I started to follow the same instructions posted earlier, but decided against it since that version may be different..... I was on version 0.4.9 before upgrading. I may revert back for now.. Thanks in advance.
The problem is already fixed. There are no difference between h201c and y203c about onvif daemons. You can try them if you want.
When new release will be available? Just to evaluate to downgrade all cameras or wait
I don't know at the moment. If you want, I can make a beta version.
If you can, I'll (we'll) appreciate it! 💚
Was this confirmed working ? I have [ Installed: 0.5.2 - Available: 0.5.2 ] and it does same thing. onvif doesn't work, stream via Rstp works ok. and also in the app it works. I was on 0.4.2 or something like that. Just decided to update..
Yes, onvif is working. If it doesn't work with you client, please take a network capture and share it with me.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hi, I have several Yi 1080 Home 6FUS (4.5.0) cameras connected to HA via Onvif. Everything was fine until update 0.5.0. Updated 2 cameras 0.4.9 to 0.5.0 and onvif stopped working, stream via Rstp works ok. Cameras with version 0.4.9 work properly via onvif.