Closed posixx closed 4 years ago
is auto refresh enabled?
Yes and the time is on 23:00
From: Jeroen ter Heerdt notifications@github.com Sent: Thursday, May 28, 2020 11:46:57 PM To: jeroenterheerdt/HAsmartirrigation HAsmartirrigation@noreply.github.com Cc: Frans Rampen Frans.Rampen@yoda-ict.nl; Author author@noreply.github.com Subject: Re: [jeroenterheerdt/HAsmartirrigation] daily sensors not updated? (#25)
is auto refresh enabled?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/jeroenterheerdt/HAsmartirrigation/issues/25#issuecomment-635625759, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AARMXUGHPD4IC6QWKPAJR6TRT3LVDANCNFSM4NNOLH7Q.
found the bug, will release v0.0.21 soon. please test that and confirm/close.
Nope doesn't work.
2020-05-29 23:00:00 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/config/custom_components/smart_irrigation/init.py", line 327, in _async_update_last_of_day self._update_last_of_day() File "/config/custom_components/smart_irrigation/init.py", line 316, in _update_last_of_day self.bucket = self.bucket + bucket_delta TypeError: can only concatenate str (not "float") to str 2020-05-29 23:00:00 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/config/custom_components/smart_irrigation/init.py", line 327, in _async_update_last_of_day self._update_last_of_day() File "/config/custom_components/smart_irrigation/init.py", line 316, in _update_last_of_day self.bucket = self.bucket + bucket_delta TypeError: can only concatenate str (not "float") to str
can you provide the bucket value before this error happens?
It is and was 0:
ok, one more screenshot: can you share the value of netto precipitation as well?
daily sensors:
base sensors:
not sure what is going on here, I will be providing you a new version that has more logging. You should see an INFO
entry in the log saying: "Updating bucket [value] with netto_precipitation: [value]". Can you provide me with that once you've seen it?
no problem, can i trigger manually? Of do i have to wait about 24hr
you can trigger it manually.
please test using v0.0.22
Ok,, as the sensor names are changed, should i remove integrations, reboot and re-add? It;s 1 AM here now so will do this tomorrow.
I would remove, readd. that should take care of it. oh and go to sleep :)
Ok implemented new version. Now when calling smart_irrigation.voortuin_calculate_daily_adjusted_run_time it works:
Calling smart_irrigation.voortuin_reset_bucket resets the daily values. So this looks good!
From the core log:
2020-05-30 12:54:00 INFO (MainThread) [custom_components.smart_irrigation] Calculate Daily Adjusted Run Time service called, calculating now. 2020-05-30 12:54:00 INFO (MainThread) [custom_components.smart_irrigation] Updating bucket: 0.0 with netto_precipitation: -8.770122066475068 2020-05-30 12:54:22 INFO (MainThread) [custom_components.smart_irrigation] Updating Smart Irrigation Data 2020-05-30 12:54:22 INFO (MainThread) [custom_components.smart_irrigation] Updating Smart Irrigation Data 2020-05-30 12:54:22 INFO (MainThread) [custom_components.smart_irrigation.sensor] rain: 0.0, snow: 0.0 2020-05-30 12:54:22 INFO (MainThread) [custom_components.smart_irrigation.sensor] rain: 0.0, snow: 0.0 2020-05-30 12:54:22 INFO (MainThread) [custom_components.smart_irrigation.sensor] rain: 0.0, snow: 0.0 2020-05-30 12:54:22 INFO (MainThread) [custom_components.smart_irrigation.sensor] rain: 0.0, snow: 0.0 2020-05-30 12:55:02 INFO (SyncWorker_18) [custom_components.smart_irrigation] Reset bucket service called, resetting bucket to 0.
Let's see if it also works tonight at 23:00
Also on 23h it worked last night. So solved!
Thanks!
Ok i have re-added the integrations after v0.0.20. This was around 22 hours i think. At 23h the daily sensor should update right?
But they stay at 0. Do i need to wait a day for these to get updated? Or is this a bug/issue..