Coder Social home page Coder Social logo

Comments (10)

jeroenterheerdt avatar jeroenterheerdt commented on July 23, 2024 1

thanks for sharing this @Justahobby01 - the values you refer to are for adjusted run time, not for the bucket, but I was able to find them. The part where the problem occurs is this:

2020-06-17 12:21:28 INFO (MainThread) [custom_components.smart_irrigation.sensor] async_added_t_hass type: Daily Adjusted Run Time state: 108, attributes: {'adjusted_run_time_minutes': 1.8, 'bucket': '-0.17', 'force_mode_duration': 0, 'force_mode_enabled': False, 'friendly_name': 'Daily Adjusted Run Time', 'icon': 'mdi:sprinkler', 'lead_time': 0, 'maximum_duration': -1, 'unit_of_measurement': 's', 'water_budget': 91.57}
2020-06-17 12:21:28 INFO (MainThread) [custom_components.smart_irrigation.sensor] async_added_to_hass restoring state, settting bucket to: -109.67719298065954

The bucket is erroneously set to -109.67... but as you can see the bucket value discovered to restore is -0.17, which seems much more normal. As a result is bucket = -109 your water budget and daily adjusted run time go sky-high.
I will see if I can understand how this bucket value of -109 came up.

from hasmartirrigation.

Justahobby01 avatar Justahobby01 commented on July 23, 2024 1

Awesome! I'm honored to be of assistance. What was the bug, if you don't mind me asking?

I am using imperial and use smartweather for everything except minimum and maximum temps since I didn't see where smartweather provided that info.

from hasmartirrigation.

Justahobby01 avatar Justahobby01 commented on July 23, 2024 1

I changed the refresh time to get new values and then restarted HA.......and the values stayed the same. Looks promising!

from hasmartirrigation.

Justahobby01 avatar Justahobby01 commented on July 23, 2024

Yes, since I installed the integration, about two weeks ago, I have noticed it. I have been trying to figure out if it is occurring after I restart HA.

from hasmartirrigation.

jeroenterheerdt avatar jeroenterheerdt commented on July 23, 2024

it is occurring at restarts, but I cannot figure out why. I must be missing something. Next step is to add rigorous logging everywhere and see what is going on.

from hasmartirrigation.

Justahobby01 avatar Justahobby01 commented on July 23, 2024

I assumed it was my settings since I just took a guess at the flow rate and sq ft of my yard, but I set everything up correctly last night and saw the spike again today. I can add a debug to my logger and see if anything pops up.

from hasmartirrigation.

jeroenterheerdt avatar jeroenterheerdt commented on July 23, 2024

added lots of logging in v0.0.45. please have a look at the logs

from hasmartirrigation.

Justahobby01 avatar Justahobby01 commented on July 23, 2024

I rebooted the host and restarted HA about ten times yesterday but didn't see a spike while the bucket was empty. Today, the bucket was at 108 seconds but spiked to 2692 sec after a restart. Debug is below:

irrigation debug.txt

from hasmartirrigation.

jeroenterheerdt avatar jeroenterheerdt commented on July 23, 2024

I have found a bug! not sure if we have now solved the problem, but at least it looks better on my side now. Please continue monitoring it @Justahobby01, you're a big help! I appreciate it! Oh and by the way, are you running in metric or imperial system?
Also, I noticed you use smartweather as well, correct?

from hasmartirrigation.

jeroenterheerdt avatar jeroenterheerdt commented on July 23, 2024

ok, so we're in the same boat, I am on imperial as well as using smart weather where I can (but OWM for min and max temps). Figured I could always create a min and max temperature sensor in HA some time. Not for now though :).

The bug was that in some cases I converted twice from metric (this is what the system uses internally) to imperial. Not sure that is fully responsible for the weird behavior, but it was a bug no doubt.
Fingers crossed it works correctly now, keep me posted. Also, note that in v0.0.48 I added the set_bucket service which allows you to set the bucket to a specific value instead of just setting it to 0 with reset_bucket.

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.