-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ONVIF Motion Events / Binary sensor not appearing on recent firmwares #312
Comments
Motion sensor stopped working recently after camera update?When adding a new comment that it is also not working for you, please:
FYI @silfax @Taomyn @Agimgrue created this issue to track the issue in one place. |
This comment was marked as outdated.
This comment was marked as outdated.
It works with 5.1.0! |
What camera model? I have 2 x C200, FW 1.3.4 & 1.3.5 and the motion sensor is still 'unavailable' after updating the integration. Will take a look at the logs later today, on the phone right now. Thanks! |
C225. Make sure HA is updated to the latest version. After updating the integration, restart both the container/computer and the camera. |
Sill not working here with 4x C200, the motion sensor continue with unavailable status even after lots of reboots... Home Assistant 2023.4.5 |
Please follow steps above. |
This comment was marked as off-topic.
This comment was marked as off-topic.
Hello. I have 2 different cameras: For some time, the motion sensor from C200 is not working. Usually when I had this issue, it was fixed after a restart of HA or reboot of the camera. I have enabled the debug on the two entities and got the attached log. |
Thank you for your report and logs @mitzu2250 . The important part of the logs is below:
This shows us the difference in behaviour in C200 on 1.3.5 and C210 1.3.0, where C210 allows to be subscribed into (the second "setupEvents - entry" followed up by "Events started.") and C200 does not (no "Events started."). This integration is using onvif from HA, so it will need to be fixed upstream (if there is anything to fix). It is also possible that there is a bug in the new firmware that bricked the onvif. At this point I would recommend:
|
Any advice/link on how the downgrade can be done? Couldn't find anything really useful. Thanks! |
nervous-inhuman/tplink-tapo-c200-re#4 (comment) |
Just checked with the main ONVIF integration. I can confirm that for my C200 camera, the "Camera Living Cell Motion Detection" entity doesn't pop up when motion is happening but it works good on C210. I'll open a issue on ONVIF side to see if this can be solved there or it's a TP-Link issue. |
With the latest updates (Alpha Channel), the motion sensor starts working with my C320WS (latest Firmware: 1.0.4 Build 221031 Rel.40874n). The error messages i get are:
The second error is:
I don't have any error messages before the last updates. Home Assistant 2023.5.0.dev20230424 |
New version for testing is available at https://github.com/JurajNyiri/HomeAssistant-Tapo-Control/releases/tag/5.1.3. Only usable with DEV version of HA or 2023.05.0 and higher if you are reading this from the future. |
@thomasramm just released new version, could you please test? |
Tested Version 5.1.3: no error messages! I Forget to write, that the binary sensor "TapoCamera Motion" is shown in the system, but did not work (a message says it is not available and i should remove it). But the Onvif "Cell Motion detection" is working, so this is not a problem. Yesterday i get 500 motion detections, it works stable at my installation. I'm very happy :-) Tested with this configuration: |
It should be working just from this integration. It is possible it is not working for you because you are hitting it twice at the same time. Try removing onvif and using just Tapo, it should expose motion sensor. |
2023.4 here. Do I have to wait until I will update to 2023.5? Thanks. |
New version is usable with DEV version of HA or 2023.5.0 and higher if you are reading this from the future. Edit: Also of significant note, issue is now marked on HA as device issue, so you might need to wait for tplink to release new firmware. New HA onvif release fixes just some issues, not all. |
you are right, i remove the onvif integration, after some reboots or after a longer time (doesn't know which was the reason) the Tapo Motion Sensor starts working. Thomas |
@thomasramm Hi! Could you help me please?
but HACS doesn't install
|
Follow manual installation steps. |
@Agimgrue thank you for the report, but please use the latest version when reporting issues. |
Sorry, I don't see that there was an update. Updated to 5.1.8 version and binary sensor becomes unavailable. Home Assistant 2023.5.1 Tapo: Cameras Control Tapo C200 I'll try to downgrade to Tapo: Cameras Control 5.1.7 |
Make sure to always restart camera between HA restarts. |
I had this issue once today where multiple sensors where shown but none where available. |
Issue has now been fixed in 5.2.0. |
Strange, I had it working again on 5.1.8 (C200 3.0 1.3.4 & C210 2.0 1.3.1) and just updated to 5.2.0 and motion sensor is not showing up anymore. HA is updated to 2023.5.2
|
@MunkeyBalls are you running HA with certificate on HTTPS? |
I load the HA webui through a https proxy, should I try re-add the integration without HTTPS? |
What is your internal HA url? Does your HA instance work on |
I should be able to connect directly. I have a local DNS record and connect via that for ease of use (https://home.lan) |
Does your HA instance work on |
Yes, I can connect via http://ip:8123 |
Make sure you have correct IP set for Home Assistant. Turn on Advanced Mode under /profile. Go to /config/network and under Network Adapter verify correct IP is shown for the device. If it is not correct, under Home Assistant URL uncheck Automatic next to Local Network and set it to |
Could having the camera on a separate VLAN which cannot reach HA nor the internet have anything to do with it? |
Yes, in order for webhooks to work camera needs to reach HA and you need to have correct (non-https) internal reachable URL set. |
Mystery solved then :P I guess I'm going to have to set some firewall rules for the camera to be able to reach HA. |
5.1.8 should be avoided, it uses really old onvif integration and bundles both onvif-zeep and old onvif integration. I am working on a better solution. |
I'll do some tweaking on the internal network tomorrow and give 5.2.0 another spin. Thanks for resolving this issue so quickly, amazing how quickly you and bdraco pushed out those new versions. |
@MunkeyBalls you can try with 5.2.1, if it detects usage of https it disables webhooks. If you can reach HA through http:IP:8123 and you have a http internal URL (read FAQ), and fix vlan so that camera can reach it, you should be able to use webhooks to the fullest potential. If it detects you are actually using https, it automatically disables webhook, which is not an issue on all cameras except 1.3.6 which has broken pullpoint. |
Thanks! I'll give it a try tomorrow. Nothing good is going to come from me messing around with my network this late in the night 😄 |
I am going to copy&paste part of readme/faq here for awareness;
|
Working fine for me, only the entity name changed. From ...._motion to ..._motion_alarm |
@JurajNyiri
I understand 'alarm' one, but what is 'cell motion detection'? |
That works as expected, both are reported by camera. "Cell motion detection" is the one we always had. I do not know the purppse of motion alarm, it is something tapo added recently. |
Home Assistant 2023.5.2 Supervisor 2023.04.1 Operating System 10.1 Frontend 20230503.3 - latest Motion Sensor still not exists |
I noticed the sensor not being available directly after installing the integration. |
tryed to do. |
Please keep the discussion in here strictly related to the "Binary sensor not appearing" - if the binary sensor appears and gets stuck, create a separate issue.
Tests
✅ - Works as expted
❗ - Inconsistent / getting stuck
❌ - Binary sensor does not appear at all
Description
Reproduction Steps
Expected behavior
Motion sensor working.
Next steps
Issue will need to be fixed either upstream, or via firmware update to camera.
The text was updated successfully, but these errors were encountered: