-
Notifications
You must be signed in to change notification settings - Fork 91
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
Preset configuration lost from time to time #484
Comments
I think, maybe, this is related to this issue: #443 |
Move to preset select entity is not available when the camera is in privacy mode. This was introduced in https://github.com/JurajNyiri/HomeAssistant-Tapo-Control/releases/tag/5.3.0 as a feature. As soon as camera moves away from privacy mode the entity is available for control again.
|
I thought the same and that's why my automation wait 2 minutes after disabling privacy mode to move my camera to a preset but often that doesn't work and the preset option is unavailable even after I turn the privacy mode off |
This is 2 minutes after turning privacy (privacidad) off, the preset list (apuntar a) remains disabled. This happens randomly on all my 4 C200. |
I'm not entire sure if it depends on how long privacy mode has been on or not |
@krue81 check logs. It might be unavailable because of different reason, probably the camera is unavailable due to network issues. |
This is the only error that appears on the log:
The camera has good network connection: I can toggle quickly between privacy and normal mode, and can watch the stream both via WebRTC card and the Tapo App. This behavior started to appear like 3 or 4 months ago... before that, the cameras switched seamlessly from and to privacy mode and without any issue with the presets list |
In the screenshot provided the entities are unavailable. That could be due to privacy mode turned on or the camera being unavailable (in which case there would be a log message). |
I see, that shouldn't be the case. Could you please enable debug logs for the integration and post them when this happens? |
This is the log for a couple of minutes... I see references to my other 3 cameras (that right now are working ok), but do not see any reference to the one that is showing this issue right now (it is called camera.escalas) |
Hello, I'm having the same problems. The select is there, the presets are there but the select does not let me choose any presets. Also seeing the same errors |
I think, at least in my case, that this could be related to #488 ... as yesterday I reinstalled the problematic camera (I've been having the same problems with all my 4 cameras, randomly), and adjusted my home and away automations, so they send the commands to the cameras sequentially (turn privacy off then turn led on then move to defined preset, etc...) as they were configured to send the commands in parallel for each the 4 cameras. I did some testing and for the past 24h they been working as expected, with no issues going to and from privacy mode and always showing the preset list (for now). Will be doing more testing to check if that indeed was the problem. |
Just a heads up... putting my automations with commands in parallel worked for a day and a half... today, I woke up with two of my four cameras missing the move-to-preset dropdown/select... So, the issue still remains and is not solved by sending single commands to the cameras (even with delay between them) to prevent the authentication error... |
To move this issue forwards we will need debug logs with the information of when the presets went unavailable as well as if there were any automations executed at that time. |
to me this issue is sourcing when the integration is reloaded and if this happens too quick the cameras aren't loaded correctly. |
I was looking at this again today trying to replicate, but I was not able to, I tried reloading, switching privacy mode, rebooting camera... it works in all the cases. If we find a way how to reliably replicate this I can probably fix it. |
last time i tried it was almost 100% at an HA reboot to loose at least one camera (i have three) |
Can you try to:
If you wait a few hours between step 2 and 3 when you turn privacy off the automation doesn't find the viewpoint 2 so the camera doesn't move (at least this is what happens to me) |
@viciovb trying this now, lets see how it goes, moved to one of the presets, turned on privacy mode... Trying with 2 cameras with very different fws. C200 C200 |
I was not able to replicate this, even with it running the whole day and being in privacy mode. |
i still get random:
and my automations have 30s delay between one step and another. do you think we have any flag to check about completion of changing states? |
It is returning presets when in privacy mode. |
i assumed not being visible in the web interface they were not returned.. |
That is the issue I am failing to replicate - if they get cleared, camera did not return them at some point. I need to find the way to replicate this to find the root cause or someone else needs to find the fix who is experiencing this. |
i just need to put some attention to this being at home, i've been fighting with this error for months.. i'll try to put some debugging here and there.. |
could you please try if you get the error:
I commonly get error at this stage. Not every time, not for every cam, but i commonly find my cams with privacy mode disabled, in the old preset position and with the error in the log file. I partially fixed with a delay in the middle, but i still get the error now and then so maybe this can replicate the issue.. i hope :) |
I don't know if this can be somehow related, if it's a bug or a feature, but when I restart HA while a camera is powered off all its preset positions are forgotten. I need to power on the camera, manually rediscover it from the integration and then it works again. |
@lv913 Yes that works as expected. If camera is offline, integration cannot load presets or any other data from it. |
@JurajNyiri Would it be possible to allow the integration to remember those settings across reboots? Otherwise it's always needed for me to perform a manual rescan of devices, when they come back online, before being able to use them. |
Manual rescan is not needed. Once the camera is online it should be picked up by ha automatically. |
for me it is enough to do a clean restart of ha (for example, after having updated a HACS integration) to lose presets of at least one of my tapos. So i need to manually reload the cam until it works. I understand i have to keep it this way, i'll see if i can schedule a reload somehow |
Description
I have 3 C200 camera and automation in HA that move them in 2 different presets I've created in each camera.
Very often the preset configuration disappear and if I look at my automation I can't see the two saved presets anymore. I have to reinstall the cameras each time.
I'm not sure if thia happens after I turn privacy mode on for a long time or it's random
Reproduction Steps
Create two presets in a camera
Create an automation in HA that move the camera to those presets
Turn on the camera privacy mode
Check if the automation shows the presets
Expected behavior
The presets should be visible and available even if the camera is in privacy mode
If applicable, add error logs.
No response
Device Firmware
1.3.9
Integration Version
5.4.12
Using stream component
Yes
Does camera work via official integrations?
Yes
Camera has all attributes filled out in developer tools
Yes
HASS Environment
HA OS on a Proxmox VM
Search for similar issues
Yes
Additional information
No response
The text was updated successfully, but these errors were encountered: