openhab / openhab-addons

Add-ons for openHAB
https://www.openhab.org/
Eclipse Public License 2.0
1.88k stars 3.59k forks source link

[IpCamera] Tapo C310 is not supported #14738

Closed rotulet closed 1 year ago

rotulet commented 1 year ago

This is following of the discussion on openhab community.

@Skinah here is the wireshark dump between the openhab host (192.168.0.40) and the camera (192.168.0.249) and the openhab log matching this periode. After the openhab initialization, I moved in front of the camera and received motion notifications on my cell phone. But I received nothing on openhab.

tapo_c310.zip

openhab-bot commented 1 year ago

This issue has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/onvif-camera-sends-motion-detection-to-phone-but-not-openhab-trigger/120611/25

Skinah commented 1 year ago

Your cell phone app probably will not be using ONVIF and be using some other protocol. It is important to test and capture the traffic for ONVIF DEVICE MANAGER and compare it to see what is different to how the binding does it. If you cannot get ODM to see the events occurring, then you would need to find a ONVIF capable program that does work and capture how it is being done to use as an example.

The openhab.log looks normal, just the following is important and may be the reason it is not working:

Your ONVIF port is 2020 eventsXAddr:http://192.168.0.249:2020/onvif/service subscriptionXAddr=http://192.168.0.249:1024/event-1024_1024

Note that the port 2020 changes and is port 1024 for the subscriptionXAddr.

I just checked and source code in OnvifConnection.java (Line 562 currently) does not support using a different port and is sending the correctly built request to port 2020. This should be a simple change to make, do you have openhab 4.0 running and can test a jar on it?