Coder Social home page Coder Social logo

Comments (17)

posixx avatar posixx commented on July 23, 2024 1

Ok implemented new version. Now when calling smart_irrigation.voortuin_calculate_daily_adjusted_run_time it works:

image

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

from hasmartirrigation.

posixx avatar posixx commented on July 23, 2024 1

Also on 23h it worked last night. So solved!

from hasmartirrigation.

jeroenterheerdt avatar jeroenterheerdt commented on July 23, 2024

is auto refresh enabled?

from hasmartirrigation.

posixx avatar posixx commented on July 23, 2024

from hasmartirrigation.

jeroenterheerdt avatar jeroenterheerdt commented on July 23, 2024

found the bug, will release v0.0.21 soon. please test that and confirm/close.

from hasmartirrigation.

posixx avatar posixx commented on July 23, 2024

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

from hasmartirrigation.

jeroenterheerdt avatar jeroenterheerdt commented on July 23, 2024

can you provide the bucket value before this error happens?

from hasmartirrigation.

posixx avatar posixx commented on July 23, 2024

It is and was 0:

image

from hasmartirrigation.

jeroenterheerdt avatar jeroenterheerdt commented on July 23, 2024

ok, one more screenshot: can you share the value of netto precipitation as well?

from hasmartirrigation.

posixx avatar posixx commented on July 23, 2024

daily sensors:

image

base sensors:

image

from hasmartirrigation.

jeroenterheerdt avatar jeroenterheerdt commented on July 23, 2024

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?

from hasmartirrigation.

posixx avatar posixx commented on July 23, 2024

no problem, can i trigger manually? Of do i have to wait about 24hr

from hasmartirrigation.

jeroenterheerdt avatar jeroenterheerdt commented on July 23, 2024

you can trigger it manually.

from hasmartirrigation.

jeroenterheerdt avatar jeroenterheerdt commented on July 23, 2024

please test using v0.0.22

from hasmartirrigation.

posixx avatar posixx commented on July 23, 2024

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.

from hasmartirrigation.

jeroenterheerdt avatar jeroenterheerdt commented on July 23, 2024

I would remove, readd. that should take care of it. oh and go to sleep :)

from hasmartirrigation.

jeroenterheerdt avatar jeroenterheerdt commented on July 23, 2024

Thanks!

from hasmartirrigation.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.