Comments (10)
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.
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.
I changed the refresh time to get new values and then restarted HA.......and the values stayed the same. Looks promising!
from hasmartirrigation.
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.
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.
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.
added lots of logging in v0.0.45. please have a look at the logs
from hasmartirrigation.
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:
from hasmartirrigation.
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.
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)
- Monthly ET values help HOT 1
- [Bug] : TypeError: 'NoneType' object is not subscriptable HOT 14
- [Bug] is_metric` property of the unit system is deprecated HOT 6
- [Help] Error adding entities for domain sensor HOT 1
- ET values for Israel
- [Bug] Does Not have Valid key in Manifest file HOT 1
- [Bug] Detected integration that accesses the `is_metric` property of the unit system HOT 1
- [Bug] OpenWeather API calls return an error 401 HOT 5
- [REQ] CLI usage outside HA HOT 1
- [REQ] Evapotranspiration data source for Portugal HOT 1
- [Bug] Precipitation calculation for daily art.
- [REQ] Update DART multiple times a day
- [Bug] Warning for self.async_update_ha_state(), without enabling force_update HOT 1
- PyEto replacement HOT 3
- [Bug] HOT 3
- [Bug] no smart_irrigation_start service event HOT 1
- [Bug] Integration stopped working with 2023.6.0b0 HOT 7
- I seem to miss it but where do we update our ET values after initial boot? HOT 4
- [Bug] module 'asyncio' has no attribute 'coroutine' HOT 3
- [Bug] Hi, I updated my hass (in raspi4) to 2023.6.1 and the integration doesn't works with new hass. Please fix it. Thanks. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hasmartirrigation.