.storage\smart_irrigation.storage
Was wondering as well on what to select for the sensors.
The docs mention for âtotal precipitation unit % max or last. This was misleading for me.
Due to your replay I selected now âsumâ ⌠is this correct?
I like your integration a lot ⌠many thanks for the effort you put into it.
you spotted a bug in the docs for total precipitation. the unit should be in/mm (selectable) and you should use max or last for it if your sensor reports total precipitation in a day, those should be the same anyway if the sensor reports actual rain at that moment you should use sum, but then you will be in a bit of trouble unless you bump up the update frequency or if you enable the continuous updates (which is experimental so only do this if you are feeling adventurous!).
need some advice on what to do. since 2 days and updating to 2024.7.4
- Core 2024.7.4
- Supervisor 2024.08.0
- Operating System 12.4
- Frontend 20240710.0
the calculation on 11:00 pm does not work any more. manual calculation all zones works fine. On th e log I found this:
2024-08-06 23:00:00.489 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
File "/config/custom_components/smart_irrigation/__init__.py", line 990, in _async_calculate_all
await self.async_calculate_zone(zone.get(const.ZONE_ID))
File "/config/custom_components/smart_irrigation/__init__.py", line 1036, in async_calculate_zone
data = await self.calculate_module(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/smart_irrigation/__init__.py", line 1136, in calculate_module
newbucket = bucket + (delta * hour_multiplier)
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
TypeError: unsupported operand type(s) for +: 'NoneType' and 'float'
what to to to solve the issue?
Which smart Irrigation version are you on? I believe I fixed this bug already. Please follow the instructions in our docs: Updating | Smart Irrigation
I am using the irrigation version 2024.7.10
then please open an issue on github.
I have a similar issue.
Smart irrigation has been working for ~10 days and suddenly it does not calculate anything.
I always ran the latest version, upgrading as soon as a new release was available.
Like @Monster_D the problem occured 2 days ago as you can see in the following graph. Last 2 days I get 0s:
I donât know if itâs a coincidence or if it is related.
Open an issue on github please.
2024.8.0 installed. Using ET value directly from weather station. Current value is 0.2 but new ET attribute value displays -4.5
Please open an issue on github. Also, it looks like you can close your other issue as you got it working?
I am in the process of setting up garden irrigation in esphome.
For that I use the sprinkler controller in esphome.
There I set a time in minutes how long the sprinkler should be on. (number.voortuin)
But I also have Smart Irrigation installed.
That calculates the time the sprinkler should be on in seconds. (sensor.smart_irrigation_voortuin)
Now I want to convert those seconds to minutes and keep them in the number.voortuin entity with an automation when the new sprinkler time is calculated.
But I have no idea how to do that.
I found a solution:
action: number.set_value
metadata: {}
data:
value: "{{states('sensor.smart_irrigation_voortuin') | float /60}}"
target:
entity_id: number.voortuin
or better:
value: "{{ (states('sensor.smart_irrigation_voortuin') | int /60) | round(0) }}"
I just updated to v2024.8.1.
I have a question about the new âCurrent precipitationâ, Shouldnât the unit of measurement be âmm/hâ instead of âmmâ?
Iâve updated yesterday to v2024.8.1 too and my zones entity were initially unavailable. I needed to enter a value to drainage rate (currently 0) to get zones calculated correctly. In the logs there are some python errors that complains about drainage_rate is a NoneType - that led me to fill the missing parameter:
2024-08-26 09:32:00.168 ERROR (MainThread) [homeassistant.helpers.dispatcher] Exception in async_update_sensor_entity when dispatching 'smart_irrigation_config_updated': (1,)
Traceback (most recent call last):
File "/config/custom_components/smart_irrigation/sensor.py", line 133, in async_update_sensor_entity
self.async_schedule_update_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1265, in async_schedule_update_ha_state
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1005, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1130, in _async_write_ha_state
self.__async_calculate_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1071, in __async_calculate_state
if extra_state_attributes := self.extra_state_attributes:
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/smart_irrigation/sensor.py", line 204, in extra_state_attributes
"drainage_rate": float(self._drainage_rate),
^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: float() argument must be a string or a real number, not 'NoneType'
My question is: how I get my correct dranaige rate in mm/h? Can I estimate it by my soil type? It is a good loamy soil that has a good water retention potential and a mediocre rate of drainage.
Another question is about the correct unit of evapotranspiration. I have weewx installed with a local weather station that calculates ETo for every archive cycle that is set to 300 sec. So my ET is x mm/15min. If I add it togeter in a period of 24 h it is a daily ET. How to set that up with your component?
Thank you for your great work and effort youâve put into this.
yes, you are right, I will log a bug for this and fix it in a future release.
hey, thanks for posting. You have found a bug. I have pulled 2024.8.1 and fixed it for real in 2024.8.2, so please install that.
Now, the drainage rate is kind of subjective and you can refer to Zone configuration | Smart Irrigation to see some recommended values (50.8 mm seems to be a good value). However, if you want to make sure you need to dig a hole, put in an exact amount of water, cover it (this step is not the source, but if you want to truly just measure drainage you need to remove as much ET potential as possible), measure the time and do some basic math. (How to Test Soil Drainage at Home â GrowIt BuildIT).
Now, for your last question (related to ET unit). We expect current ET value in W/m2 or similar units. So Iâd say you need to divide the value coming from your weather station by 15 so you have X mm/1min. I think thatâs a fair approximation if you donât have an actual current ET value which you donât seem to have available?