slydiman / ha_custom_onvif

11 stars 2 forks source link

no events #10

Open camelcamro opened 10 months ago

camelcamro commented 10 months ago

Hello wanted to ask, if the custom_onvif implementation should be supporting binary sensors like - speically for "motion alarms". cameras are xmeye compatible like: sv3c cameras and similar. they are all working very well, on xmeye (eg: pc software as i have also a NVR recorder which is xmeye compatible on default port used: 34567. anyhow ... the cameras as ONVIF compatible - inclusive all the alarms triggers are coming into xmeye.

so, the cameras area lready sending that ... but don't know more about ...

any ideas what is blocking it ? also the "debug" on custom_onvif integration doesn'T show me more as ... like that: 2023-11-02 09:58:48.204 DEBUG (MainThread) [custom_components.onvif] Camera 172_20_1_181 capabilities = Capabilities(snapshot=True, events=False, ptz=True) 2023-11-02 09:58:49.071 DEBUG (MainThread) [custom_components.onvif] Camera 172_20_1_196 capabilities = Capabilities(snapshot=True, events=False, ptz=True) 2023-11-02 09:58:49.077 DEBUG (MainThread) [custom_components.onvif] Camera 172_20_1_180 capabilities = Capabilities(snapshot=True, events=False, ptz=True) 2023-11-02 09:58:49.122 DEBUG (MainThread) [custom_components.onvif] Camera 172_20_1_184 capabilities = Capabilities(snapshot=True, events=False, ptz=True) 44:01:FFFFFFBB:FFFFFF9D:FFFFFFA3:FFFFFFC6') which would means, that "events" not supported ? or maybe i need to activate that seperate in any py scripts ?

slydiman commented 10 months ago

44:01:FFFFFFBB:FFFFFF9D:FFFFFFA3:FFFFFFC6 seems a bad MAC address, must be 44:01:BB:9D:A3:C6. Some XM cameras have a bad ONVIF implementation. There are few different modes to get/subscribe events. Home Assistant developers refactored the ONVIF integration few times and finally breaks it. ha_custom_onvif is a modified copy of an old ONVIF integration which worked with most XM cameras. But I don't support it anymore. I recommend to use https://github.com/dbuezas/icsee-ptz for motion alarms from XM cameras.

camelcamro commented 10 months ago

thx for the hints ... https://github.com/dbuezas/icsee-ptz already treid, but isn't working ... can't add the clients .. anyhow ... thx. i will see if there is any other method, which is using eg: the server xmeye (XM Protocol on 34567) and will look around - thx a lot cu

slydiman commented 10 months ago

It seems your NVR is XM/Sofia/DVRIP (34567) compatible, but not the camera! Probably the native app for this camera is CamHi or CamHiPro.

You can try to connect icsee-ptz to NVR instead of the camera.

Otherwise you can only try the ONVIF integration with this camera. You can open an issue for the ONVIF integration in the Home Assistant repository.