-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
Refreshing issue #351
Comments
281 is fixed in B5 Nothing more in the logfile than that? Not sure that is related to this |
One more:
|
Still doesn't look like anything related to this integration |
You should look for entries mentioning either pyworxcloud or landroid_cloud And do yourself (and me) the favour of looking directly in the logfile rather than in the log menu. The log from the menu sucks, if you ask me. |
I also have a similar problem. here are relevant log that i found in log file
|
That's not (I guess) the same as this issue. |
I did not found any bad logs related to this integration. After one day of not updating information about moving, it is now working quite fine (checked two days). I will close this issue and eventualy open in back. |
Hey, I only want to add that I habe the same impression that at any point the integration seems to stop updating. I was wondering why my newly created automations are not working. Mower was moving and had 41 percent battery. Same hours after returning home. To be honest I am not familiar to get the logs as file, but I checked in GUI and found also nothing. Only thing what I saw is that the last update time of the mower was days ago. I am talking from So I decided to restart. All went fine. Until this morning, no updates. When I thwn go to the Landroid app and refresh the start view, there is also an update in the integration. |
Yeah, especially after returning to base for charging it stop updating, but please confirm something for me - does your landroid phone app, do update charge percentage (without force refresh) ? My personal feeling is that landroid do not update its information to cloud so frequently as while moving, thus ain't landroid app nor this integration have updated values. @MTrab - Maybe there is some service in API to ask cloud to force refresh landroid status that we could run sequentially ? |
yesterday, when I saw integration didn't update the status for some time (at that time mower finished mowing and returned to base). I looked at the phone app and saw the same status (battery percentage) as the integration. then I refreshed the app and both the app and the integration were updated. |
The service is already there, but should not be used. And yes, when idle i the charger the device does not update as frequent as when mowing |
I believe that landroid is sending push notification to the cloud when something changes (battery is fully charged, robot was lifted, opened and while moving - every minute or so). And changing battery % while charging do not trigger such push. Nevertheless landroid app have it's way to refresh robot values - so I believe that we should have it also. My humble opinion is that this is quite good (efficient) push model that save lot of data usage - yet still quite responsible for an mobile app, but for home assistant - init algorithm can be like this (if we will be force refresh data like app can) Force refresh data when:
|
Another idea - if @MTrab do not see any need to force refresh, please consider providing home assistant service for such job, so we could write automation with algorithm like that i wrote. I believe that main problem here is that when users see that entity status did not refresh for so many hours - he do not know is something is wrong ..just psychological problem with that :-) |
This is a VERY bad ide, unless you want to be banned! Again, I do not see this issue on any of the robots I have access to, they all refresh as expected in both my developer install and in my regular production HA. So without any logs I cannot do much, sorry. |
Will try to provide them, need to check how. App Info I did not check to be honest. |
Would be a good idea to do a check in the app if that has more recent data also |
I have some light in the garden which should change based on the battery level. Does then taht mean that this would not be possible? App stats I will check with the next run. |
No - as the battery level is updated when the robot is sending updates I don't see why that should not be possible. |
Ok thanks! |
Cool! I am assuming that You created entity from landroid attribute ? My landroid entity was last updated 18 hours ago so no way to have chart like yours |
Correct - a template sensor looking at the battery attribute. So if it's 18 hours since the mower entered the charger and has been home ever since, then that is perfectly normal. |
Oh! |
It is really just basic templating, but you can find it in this small package: https://github.com/MTrab/HAConfig/blob/master/configurations/packages/horsensvej/landroid.yaml |
Also, remember as I have mentioned a few times, due to the huge amount of attributes, you cannot trust the UI when looking at attributes for the vacuum - you need to do a forced reload of the page (CTRL+F5) to be sure to see the latest attribute data. |
Sure, but if there will be an updste, automations will react. Thanks for sll the additional info. |
Yes, will be fixed in next release - also not related to this issue! |
Malene, I am sorry but with b6 I also have outdated information. Please provide email, I will send my credentials. |
So for me it‘s working since your last release… |
Any updates on this with the latest release? |
I tested with b6 and and no more issues with updating. Just installed your new release 3.0.0 and will continue testing this week. It looks good, awesome work! |
If you don't experience the pyworxcloud bug in b6 then you shouldn't in the latest release either. But if you still have refreshing issues, please share your account via landroid_cloud (at) trab.dk (And please mention issue 351 somewhere in the text so I can keep track of which issue that account is for) |
Ok, I will try. Thank you for the info. |
Same issue … |
I got the exact same traceback yesterday evening, running current release version 3.0.1. The last update I got yesterday was that it has docked after returning to base due to low battery, since then no updates anymore. This morning it appeared to be still at 9% battery. Reloading the integration fixed it (this time it reloaded fine, without needing HA restart) Additional info: I have a timer every 15 minutes to call the refresh service. My mover entered the dock at 20:18 and updated the entity state properly 11 hours later I reload the integration and it is updating again, so I assume i did not get rate-limit banned, also I found through experimentation that 4 times/h seems slow enough to not get banned. |
That traceback may be related, but doesn't tell what the error is, other than some MQTT error. Not much help unfortunately. |
It failed in getaddrinfo(), so probably some kind of temporary network error. But nonetheless, wouldn't it be possible to somehow catch ALL possible errors (or detect connection loss) and recover gracefully or just restart itself completely? For some reason the service call (from node red) to refresh that repeated all night long every 15 minutes did not produce any error message in the log, neither in homeassistant nor in node red, although it was in this disconnected broken state. So for some reason your code was not aware that the connection did not work anymore. |
As that error happens in Paho-MQTT there's not much I can do about that. And the code is aware of being disconnected. It doesnt try to send any data to the mower if disconnected, which I think I write as warnings in the log as well. Auto-reconnect from a disconnected state haven't been implemented yet. Might come later on, but in my tests it have given some strange errors when trying. |
If this checks out, then I might have made a for the next release. |
Oh yes 🙌🏻 Great! |
Seems like it works as intended. The 15 minutes MIGHT be adjusted (either lowered or extended) in the future, depending on experiences from next release. |
Before version bump I can test it from master. Is it ready to test ? |
No, need to test from the Issue-377 repo as the fix is included in that one. |
HACS shows only a master branch. Will wait :-P |
If you want to use other branches, you need to manually downloading the zip and copying files to your HA |
Great! Thank you for the update, I will try. @MTrab Do you still need my account? |
No - have already deleted the credential from my box |
Thanks! |
The battery update issue during docked/charging, seems fixed for me (WR147E.1 - landroid cloud v3.0.2) |
Upgraded Landroid firmware to v3.30. Battery refresh still OK. |
Describe the issue
I believe this is same as #281
Entity data is refreshing only at HA restart. Last update and last change can show for example "2 days ago" while landroid is working everyday.
What version of Home Assistant Core has the issue?
2023.4.6
What was the last working version of Home Assistant Core?
No response
What version of the Landroid Cloud integration do you have installed
beta5
What type of installation are you running?
Home Assistant Container
Which make and model is the mower used for this integration?
M700 Plus
Diagnostics information (NOT log entries!)
config_entry-landroid_cloud-c4bd914bb626e24a9c18fb752ec9a13b.json-2.txt
Relevant log entries
Additional information
No response
The text was updated successfully, but these errors were encountered: