slydiman / ha_custom_onvif

11 stars 2 forks source link

EYEPLUS_DEV from EYEPLUS sensors #6

Open Enjoy-Combi opened 2 years ago

Enjoy-Combi commented 2 years ago

Hi,

Got a new camera but I don't get the sensors in ha.

Got this from the log: b'<?xml version="1.0" encoding="UTF-8"?>\r\nEYEPLUS</tds:Manufacturer>\r\nEYEPLUS_DEV</tds:Model>\r\n5.6.1.1127</tds:FirmwareVersion>\r\n12345679890</tds:SerialNumber>\r\n88</tds:HardwareId>\r\n</tds:GetDeviceInformationResponse>\r\n</env:Body>\r\n</env:Envelope>\r\n'

2021-12-28 09:10:45 DEBUG (MainThread) [custom_components.onvif] Camera Garage info = DeviceInfo(manufacturer='EYEPLUS', model='EYEPLUS_DEV', fw_version='5.6.1.1127', serial_number='12345679890', mac='41a0bc:41a0bd:41a0be:41a0bf:41a0c0:41a0c1')

Is this usefull ?

slydiman commented 2 years ago

Hi.

It is hard to understand what is wrong. I don't see a error message.

I used the WireShark tool to record the full communication between HA and the camera to understand what is wrong.

For now I see only one serious problem in your message mac='41a0bc:41a0bd:41a0be:41a0bf:41a0c0:41a0c1'. MAC address must contain only 6 bytes separated by colon, something like mac='41:a0:bc:xx:xx:xx'. Please open the new issue in home-assistant/core and provide this information (replace custom_components.onvif with onvif). Probably something is wrong with the MAC parser in HA Core.

Enjoy-Combi commented 2 years ago

Regarding the Mac address there is something strange. When I use the app onvier on my mobile, I get this strange address.

Might it be an issue with the cam? Screenshot_20211228_184711_net biyee onvifer

slydiman commented 2 years ago

Might it be an issue with the cam?

Right, something is wrong with the cam. Try to update the cam's firmware using the original app.

Enjoy-Combi commented 2 years ago

And my router gives 04:39:26:42:bb:a3 Strange.

Will report the issue to ha.

Many thanks

Enjoy-Combi commented 2 years ago

The official app gives the right Mac address, nevertheless there is no firmware update available.

Enjoy-Combi commented 2 years ago

Hi,

FYI : https://github.com/home-assistant/core/issues/63399#issue-1093686255

And....happy new year :-) !