-
Notifications
You must be signed in to change notification settings - Fork 79
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
Bug: C310 Motion sensor stops working or becomes unavailable #84
Comments
Hello @dankocrnkovic I have pushed a version with debug logs into main branch. Please download that manually (not available on HACS) and configure logger to log debug for this component.
On a first successful motion detection you should see a message "Found event which doesn't have entity yet, adding binary sensor!". When it happens the next time, please restart the camera without restarting home assistant and post all the logs here (ideally from the time when it was still working). |
Hell @JurajNyiri Is this change included in new release: 3.3.1w ? danko |
Hello yes it is. |
@JurajNyiri But, I'm confused now as you stated with latest update that new firmware version is 1.1.7, but my version from yesterday is 1.0.14 Build 210118 Rel.58915n(4555) |
My version on C200 is 1.1.7 Build 210406. Yours seems to be from January. Maybe they have different versions for C310 or are rolling it out in phases which is a common practice. That build seems to be pretty old though. For motion sensor onvif event manager from home assistant is used, which is keeping itself alive during camera restarts, connection loss etc, so most likely change will be needed on Home Assistant side. Before that we need to determine the cause though that's why I added the debugging. There might be a way how to work around it until it is fixed or it might be something I missed. Either way we will find out when it happens again. As for replicating, I tried many things to try and replicate it - reconnect camera, reboot, disconnect it for a while... it always recovered properly so its really hard to debug without it happening. |
home-assistant.zip Its a big log. Last recorded video on motion in on 14:54:42 d. |
I waited till now (5 hours) and nothing new happened. So I restarted HA. |
That confirms my belief that the Home Assistant event manager is not able to recover properly.
Lets add debug for it and observe how it behaves when it stops working. This is an example of successful recovery on camera reboot:
Lets see what does it do when it stops receiving events. Once we have that information we can move forward and create a bug report on Home Assistant and/on workaround it via integration somehow. |
Are you sure that log category is homeassistant.components.onvif? This is from my configuration.yaml: There is no log record after HA restart, camera reboot, tapo app motion detection, and now I noticed that sensor is not working again. No log. |
Hello yes I tested it before sending. Try to add it, make motion so that sensor shows up and reboot camera, you should get log from onvif. |
Hi |
Did you add log also for onvif? I can't see anything from it in the logs and there should be something there where it attempts to recover.
|
I made all steps as descrbed, the only mismatch is that I rebboted the cam from Tapo App |
Please verify that the log for onvif is working. Without it waiting for logs from tapo brings no new information. |
This is my config
|
|
Onvif log is working becouse when I restart the camera from service I got this
Now I'll wait the sensor stop working to post log |
I was able to replicate this, by disconnecting HOST from network. Home Assistant onvif event manager is no longer able to reconnect.
on repeat. Figuring out next steps... |
So after investigating, I have found out that it doesn't seem to be the same case.
P̶l̶e̶a̶s̶e̶ ̶d̶o̶w̶n̶l̶o̶a̶d̶ ̶a̶n̶d̶ ̶r̶e̶n̶a̶m̶e̶ ̶e̶v̶e̶n̶t̶.̶t̶x̶t̶ ̶i̶n̶t̶o̶ ̶e̶v̶e̶n̶t̶.̶p̶y̶ ̶a̶n̶d̶ ̶p̶l̶a̶c̶e̶ ̶i̶n̶t̶o̶ ̶y̶o̶u̶r̶ ̶p̶i̶p̶3̶ ̶l̶i̶b̶r̶a̶r̶i̶e̶s̶ ̶f̶o̶l̶d̶e̶r̶,̶ ̶i̶n̶t̶o̶ ̶ I̶t̶ ̶i̶s̶ ̶t̶h̶e̶ ̶s̶a̶m̶e̶ ̶e̶v̶e̶n̶t̶.̶p̶y̶ ̶a̶s̶ ̶p̶r̶o̶v̶i̶d̶e̶d̶ ̶b̶y̶ ̶H̶o̶m̶e̶ ̶A̶s̶s̶i̶s̶t̶a̶n̶t̶,̶ ̶b̶u̶t̶ ̶w̶i̶t̶h̶ ̶a̶ ̶t̶o̶n̶ ̶m̶o̶r̶e̶ ̶d̶e̶b̶u̶g̶ ̶m̶e̶s̶s̶a̶g̶e̶s̶ ̶I̶ ̶a̶d̶d̶e̶d̶.̶ Current debugging process:
If its still not recovered by that point, please post logs and times you noted down. @Akkor70 @dankocrnkovic |
I simply can not get onvif logs :( @Akkor70 did you manage to go forward with debugging? d. |
I'm waiting for motion sensor stop working |
As I cant get logs to work, Motion stop reporting today and I just restarted HA without rebooting camera. And it recovered after HA restart. So, its not in camera problem as it seams. d. |
@dankocrnkovic its a Home Assistant issue (99% probably not this integration), we just need to narrow it down and then workaround it and/or create an issue/fix for Home Assistant. |
Hey @Akkor70 any updates with the logs? |
No man |
Seems to be the same issue with my C200 with newest firmware and newest Tapo integration |
@monotonus we need logs i described above to proceed with this as i cannot replicate it |
Motion sensors with TAPO APP running in any device in the network (ie in an android device, where app runs in background), makes sensor detection fail times to times. Kill the app in your device (stop it) and sensors gonna show again. |
I'm haveing a C200 with HomeAssistant 2021.9.7 aswell as an instance with 2021.10.0. Installation of the integration works so far. The motion detection sensor is also working but after ~24hrs the sensor is in state unavailable. I checked everything according to the FAQ but it does not help. The FW of the cam is 1.1.11 |
Me too. I activated logger. I don't see any info of onvif component |
Same Problem here, but sometimes it will work several weeks. |
hi! after last firmware my c310 cameras (3 in total) are crashing every day twice a day. I dunno if this could help. `This error originated from a custom integration. Logger: custom_components.tapo_control Unexpected error fetching Tapo resource status data: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): |
Hello, user with a tapo c200. Sometimes this issue happens to me. It is always solved by a ha restart. |
Responding me too does not help resolving this issue. Please see detailed instructions on what information to provide in my last comments. |
Did my log help you? I'm not a le to handle python... I see that as much as I update HA, problem presents frequently, now 3 times a day with tapo c310 gen 1, 1 time with tapo v2. |
No, that log seems to be unrelated to this issue as this is not about camera being unresponsive, but about its motion sensor stopping changing state. |
I'm having the same issue with a Tapo C110. In my case restarting HA does not solve the issue. It actually shows up after restarting HA. Maybe it stops working earlier, but the sensor shows as "Clear" and after HA restart it shows as "Unavailable". Any further restarts of HA (Even full OS reboot) have no effect and do not fix the issue. Disabling "Enable motion sensor" and then enabling it again seems to make the motion sensor work again (No HA restart necessary). I'll try to play with the integration's Debug options and how OVNIF is working here (Smells to me like a subscription to the motion event expires and is never refreshed, but I haven't yet looked how the integration works). I'll report back. |
Having the same issue with both C200, C310 and C320:s becoming unavailable every now and then, have not been able to identify root cause. Video streams work flawlessly from the cameras to HA all the time, so only issue is with motion detection in HA via onvif. Motion detection with the Tapo app works without issues, it is the Onvif cell_motion_detection sensor that becomes unavailable. Sometimes a HA reboot solves the problem, but not always, very confusing behaviour. Happy to help with submitting logs, here is an example how it looks after HA startup. The three first cameras below have events = False as capability, they are also the cameras which are currently unavailable (but this differs between different times, so no static, i.e. sometimes it is other cameras becoming unavailable):
See camera availability corresponding to the HA log above. Again, it might be different cameras that become unavailable another time. |
This comment was marked as off-topic.
This comment was marked as off-topic.
I stopped getting this error a very long time ago. I think I understood what it was connected with in my case. The router periodically gave the IP address of the camera to another device, but it remains fixed in the smart home integration. Registered the address static. The problem has not occurred for several months. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
As long as i was testing, this issue uses to show up when network
latency increases too much.
In my setup (raspberry pi4+ with one C100 direct via integrated wireless
and one C100 and a C310 vía my wireless router), the ones via the
router, when lan gets loaded (making ping increases), uses to disable
the sensor service.
Maybe the original firmware has some kind of check and disables the
"sensor" channel due to this lack of good response times (this motion
sensor is a software one, comparing images only, and a high latency
makes it useless)
IMHO this issue comes from this situation. Try to improve network, to
help to check this theory? Tapo python libs do any kind of check of this
situation?
El 7/12/22 a las 15:13, Fabrizio Balliano escribió:
…
same to me, with my C110 I get an error that the entity is no longer
provided by integration tapo_control
—
Reply to this email directly, view it on GitHub
<#84 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AVICH2SZUNB4SPU3BWJKX4LWMDHT5ANCNFSM43KOO4RQ>.
You are receiving this because you commented.Message ID:
***@***.***>
|
This comment was marked as off-topic.
This comment was marked as off-topic.
First of all, test it on tapo original app if you think motion detection
is not working (but, FYI, motion detection is made by software, so, if
the cam works and show image, for sure motion is detected)
Adjust it (area, sens) within the app.
For sure you gonna get it woking.
El 4/1/23 a las 06:09, Fabrizio Balliano escribió:
…
The motion sensor never works, I'm thinking I have to switch to
another camera because here we have a problem.
—
Reply to this email directly, view it on GitHub
<#84 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AVICH2T75QRVJ4IZJX65ZOLWQU43ZANCNFSM43KOO4RQ>.
You are receiving this because you commented.Message ID:
***@***.***>
|
This comment was marked as off-topic.
This comment was marked as off-topic.
All these comments are not helping to find the solution. Most of the time the issue is with users network and stability. |
Let me share some of my experiences with this device.
Motion sensor uses to dissapear in some cases:
1 - bad network connection: high network latency ie. makes sensor to
dissapear in some cases. To solve, check the cam and AP location (if
wireless) and do a ping test.
2 - other app in use with the cam (like the tapo app). Kill the app in
your device to prevent it running in backgroud. This devices uses
software detections, and looks like creating multiple sockets
complicates the functionality.
3 - remove cam from integration and re-add it. So, device is re
consulted about their capacities and report correctly the motion
detection sensor. (in the first start, the sensor uses not to be
reported as active or valid, but at first motion detected, it uses to
appears normally.
Hope this tips helps.
El 4/1/23 a las 07:43, Fabrizio Balliano escribió:
…
it works in the TAPO app but not in HA, it tells "this device is no
longer provided by the tapo integration" (or something along these
lines) or anyway it become unavailable and stops working (in HA).
—
Reply to this email directly, view it on GitHub
<#84 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AVICH2XBU4QATINXWUN4TJ3WQVH47ANCNFSM43KOO4RQ>.
You are receiving this because you commented.Message ID:
***@***.***>
|
To try to debug this issue, I am currently running this HA-Tapo Control in parallel with the ONVIF component. In addition, it seems to me that restarting HA (and thus connection to the Tapo devices) helps, while restarting the devices doesn't seem to (curious, right?). In the picture above (of two cameras), the top 2 rows is the HA-TC (motion and motion2), while the bottom two are from ONVIF. For whatever reason, I rarely see the "motion" sensor available for TC, and it seems always 'off' for ONVIF. The interesting part is the difference in the detected activity on the first camera... But as evident, sometimes ONVIF catches, sometimes HA-TC, sometimes both. Also, in the picture @ 1:00 , HA was restarted. So I'll be watching it for the coming few days, in the meantime I'm using both motion2 sources as triggers I guess. |
Closing due to inactivity. |
Describe the bug
Motion sensor stops reporting state change after some time. (daily).
Stream still works.
Sometimes motion sensor in HA reports unavailabe and somtimes it just stays in off state.
Motion is still detected on camera and recordings work on Android Tapo app.
Reseting motion detection on camera or rebooting camera does not help. Only HA restart recovers motion detection state change.
I have explicitly opened ports on firewall 2020,554,443,1024 but result is the same.
Log
No log entries.
The text was updated successfully, but these errors were encountered: