Update Interval extremely Long #99
Replies: 12 comments 12 replies
-
|
tl;dr: No bug, just a misunderstanding what is displayed there. If it would update every 3 hours only, you wouldn't see the spikes between 8:00 and 10:00. Your cpu temperature is at 73°C since 3 hours now. This is a common misunderstanding in HA, and has been discussed a number of times with the developers (see e.g. here): The updates in this specific integration are as follows:
That is how it's programmed - for ALL sensors. How to test: If you start monitoring something that changes rather quickly (let's say /tom |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for your fast response. I could not see those rapid changes on the mentioned sensors either. They also had a strain line for several hours. I realized now that it works as long as I have the UGREEN app on iOS open. As soon as I close it, the graphs do not update so frequently. You can see it at the straight line in between the frequent updates. That's where I closed the app. |
Beta Was this translation helpful? Give feedback.
-
|
Thats weird - anything in the logs that gives a hint? /tom |
Beta Was this translation helpful? Give feedback.
-
|
I found the following in the logs containing UGREEN at then end: Logger: homeassistant Error doing job: Task exception was never retrieved (None) The above exception was the direct cause of the following exception: Traceback (most recent call last): |
Beta Was this translation helpful? Give feedback.
-
|
Another one: Logger: homeassistant.components.sensor Error adding entity sensor.ugreen_nas_cpu_fan_speed for domain sensor with platform ugreen The above exception was the direct cause of the following exception: Traceback (most recent call last): |
Beta Was this translation helpful? Give feedback.
-
|
I believe these two effects are not related to each other. First the more obvious one:The error To track down what happens, please do the following:
Example call for my NAS: Now regarding the slow updates:I just have been able to verify this, but not yet sure what it means: This graph 1:1 reflects the times when my PC was switched on in the last 24hrs. This PC is holding my second 'HA Develop' instance, accessing the NAS independently from my 'HA Production' VM, which is running 24/7 on the NAS itself. So it seems when a second system (another HA, or the mobile APP, or a browser logged in to UGOS - in this particular case my developer HA) is reaching out to the NAS, the production system is getting updates every 5s. Otherwise they are delayed; sometimes delayed a lot. I need to further investigate, not yet sure what this means. Thanks for the good find, appreciated! :) /tom |
Beta Was this translation helpful? Give feedback.
-
|
As a quick fix for the DXP2800 until it is fixed in the next release: Edit the file
The error should be gone now, and you can delete the cpu_fan sensor in /tom |
Beta Was this translation helpful? Give feedback.
-
|
I have the exact same problem, dxp2800 but this time with the android app. settings will only be refreshed when the app is open. as soon as a close it there is no refresh. i allready uncommented the cpu fan sensor ( line 410 to 420) |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Quick update on this:
@dobby5 Any thoughts on this from your end? /tom |
Beta Was this translation helpful? Give feedback.
-
|
Quick update @rexprojects: It seems I found a 'minimal invasive' way through the Docker container to keep the API updated. Code is not 'nice' yet, but seems functional - all three sensors are updated every 5s since 1 hour now - without having an active Web Dashboard or Mobile App:
Will monitor this for at least 1..2 days while making the code rollout-ready. It will be necessary to re-deploy the container on the NAS with the latest build once finished (no automatic updating through HACS possible). Will keep you posted - did your CPU fan already arrive? /tom |
Beta Was this translation helpful? Give feedback.
-
|
I have just released a new container that should fix this issue. /tom |
Beta Was this translation helpful? Give feedback.












Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I followed the steps by step install with docker and everything worked as far as I can see.
but I realized that the update Interval is extremely long. The CPU temp for example updates only once every few hours.
I have a DXP2800
I appreciate any help, thanks!
Beta Was this translation helpful? Give feedback.
All reactions