Irrigation Unlimited Integration

hello,
I will try to schedule the irrigation but if I put weekday after sun and delay the program reply with this error.


Is not possible to do like this?

Thanks

In the future, please use ```yaml syntax for the code. among other things it will permit cut/paste.
Correct syntax, as per documentation is:

        schedules: 
          - time: 
              sun: "sunrise"
              before: "01:00"
            schedule_id: "xxxx"
            weekday: [sun,mon]

Thank you!
Sorry iā€™m a novice of Home assistant and yaml code!

Thanks. I saw that github issue after I posted here and realized this was about using an external sensor to turn off a valve after some volume of water was used. Iā€™m trying to calculate volume based on the time a valve is on (as Iā€™m sure you saw).

On a related note, I did try the AI-on-the-edge-device to read my meter with a camera, which kind of worked (and a fun project) but my ESP32 was probably at the end of the Wifi range so had some problems reading. I might try a reflective optical sensor as a pulse counter. I could not get a proximity sensor to work anywhere on the meter.

Thank you so much again for your response. I was able to follow much of what you provided and I think I have successfully set up the adjustment of irrigation time based on the Smart Irrigation calculations. However, I am facing 2 issues -

  1. I donā€™t completely understand how you were able to adjust the watering start time for the sequence based on the input datetime helper. Right now I am using the helper to help me calculate SI values (2 minutes before), and then adjust IU times (1 minute before). But how can I set the sequence start time to the input datetime value?
  2. It appears that my actual irrigation switch doesnā€™t stay on for as long as it is supposed to be. For example, yesterday, the calculated time for a few zones were 13 min or so. However, the actual irrigation switch only stayed on for 6 minutes. I went and checked if I have put a maximum duration somewhere, and doesnā€™t appear to be the case. If it matters, I have a Rainbird controller and I have installed the ESP module they sell in order to expose those entities to Home Assistant.

UPDATE - Indeed the Rainbird integrationā€™s default irrigation time was overriding IU times for the switches. I have simply increased the default time and I let IU control how long to run irrigation.

I may have solved the 2nd problem I described. It appears that the Rainbird integration has a default irrigation time (which happens to be 6 minutes). So maybe the actual switches were being overridden using this limit no matter what I set in Irrigation unlimited. I will test this tomorrow and see how long the irrigation actually takes place.

Hello @rgc99 ,
Im trying to install your custom component, but Iā€™m not able to load the Irrigation Unlimited Card. Even installing all via HACS, as soon Iā€™m trying to add the card, itā€™s not in list. There is a custom card which stays always on loading state but Iā€™m not sure itā€™s the irrigation card or not:

image

Suggestions?

ā€“ solution ā€“

Iā€™ve tried to add the irrigation-unlimited-card.js even via settings - dashboard - resources - add /hacsfiles/irrigation-unlimited-card/irrigation-unlimited-card.js as javascript module, now I can see itā€¦ sorry.

Thanks,
Simon

Dear @rgc99 Iā€™m still playing with your integration and in a basic way, it works well. Great!!
Now Iā€™ve two questions:

  1. Is possible to schedule one zone that starts on sunrise only with +1hour offset only on monday, tuesday and friday?

  2. Can you help me to introduce a check that if a binary sensor is triggered, the scheduler is disabled? Iā€™ts a soil moisture sensor that gets triggered and stay triggered until its enough dry, so Iā€™ll skip the scheduler until is false.

Thanks all for the help!

Simon

I have been using this integration for some time and very happy. I was looking to leverage more from what the integration has to offer, and one of the things I would like to get is the total water consumption I have for my lawn as a function of time. Ideally, this would be a utility meter. I see that some users have managed to achieve that. I also see that each irrigation_unlimited_zone in my setup has an attribute ā€œflow_rateā€ and ā€œvolumeā€, which I am assuming is what I would need. However, I havenā€™t found how to set the flow_rate information up in my configuration (I am guessing the volume is calculated by flow_rate * total_run_time).

There is a major revamp of the frontend card in the works. One new feature is support for languages. If you would like to contribute some translations then head over to the discussion page on GitHub here. There really isnā€™t that much to do but will make all the difference.

1 Like

This is still under development and it goes a little further. Irrigation Unlimited monitors an external water consumption sensor and shuts off the valve when a limit is reached. The sensor is much like other energy sensors in HA whose state is ever increasing as it is consumed. The idea is you can schedule by time or volume. Great for unreliable water pressure where you want to deliver a certain amount of water. You can follow the discussion or get involved here.

I had my first major failure:
in some of my zones I am using a zigbee valve that has no on/off functionallity, but a number entity to open the valve between 0 (closed) and 100 (open).
because of this i am using a virtual switch to turn it on and off with an automation.
Now because of the simple virtual switch the check_back function only checks the virtual switch. Last night the zigbee valve did not respond to the virtual switch and so has been left open for hours, while i was asleep.
How can i prevent this in the future?

  • can i set something in the check_back object so that it checks the 0 or 100 state of the actual zigbee valve? if i check the docs it looks like this also only works with switches?
    This doesnt work:
check_back:
     state_on: "100"
     state_off: "0"
     entity_id: "number.irrigatie_bomen_valve_state"
  • would it be possible for the developer to implement direct control of number entities for valves?
  • is there a way to do this with templates?

The integration was recently updated to natively support valve and cover domain types in addition to light and switch (Note to self - update documentation).The number domain is something new but it sounds like a type of valve where a value of 50 is half way.
Please post the automation or just the action part so I can see how you operate it.

I have been trying to make this work. However, I keep getting error Custom element doesn't exist: hui-markdown-card. I have installed the hui-element through HACS. Do I need something else?

Hello
I use this integration with two controllers. I would like to display on my dashboards only one controller but I canā€™t filter with the card ā€œirrigation-unlimited-cardā€.
Is this a syntax problem or a naming problem of the entity?
Thanks for your help.

YAML ā€œirrigation_unlimited:ā€

refresh_interval: 1
controllers:
  - name: "Rain Bird RC2"
    all_zones_config:
      show:
        timeline: true
        config: true
    zones:
      - name: "Massifs Nord"
        entity_id: switch.rain_bird_sprinkler_1
      - name: "Massifs Ouest"
        entity_id: switch.rain_bird_sprinkler_2
      - name: "Massifs Sud-Est"
        entity_id: switch.rain_bird_sprinkler_3
      - name: "Massifs Sud"
        entity_id: switch.rain_bird_sprinkler_4
      - name: "Potager"
        entity_id: switch.rain_bird_sprinkler_5
      - name: "<non affectƩ>"
        entity_id: switch.rain_bird_sprinkler_6
        enabled: false
    sequences:
        name: "Arrosage des Massifs"
        schedules:
          - name: "Massifs tous les 2 jrs"
            time: "20:00"
            day:
              every_n_days: 2
              start_n_days: 2024-08-10
        zones:
          - zone_id: 1
            duration: "03:00"
          - zone_id: 2
            duration: "02:00"
          - zone_id: 3
            duration: "03:00"
          - zone_id: 4
            duration: "02:00"
  - name: "Piscine"
    all_zones_config:
      show:
        timeline: true
        config: true
    zones:
      - name: "Filtration"

YAML ā€œcustom:irrigation-unlimited-cardā€, ko controller filter

type: custom:irrigation-unlimited-card
always_show_zones: false
always_show_sequences: true
controllers: binary_sensor.irrigation_unlimited_c1_m

It should be just the controller number

type: custom:irrigation-unlimited-card
always_show_zones: false
always_show_sequences: true
controllers: 1

Also the refresh_interval: 1 consumes considerable resources. The updated card (version 2024.8.0) doesnā€™t require this for one second count down timers.

1 Like

This might help.

Thank you for responding. I did look through the documentation there a little bit but didnā€™t find a fix. However, after lurking on the discord channel, I found a cause for why this happens, and how to fix it. The fix apparently is to simply add another markdown card. It is explained here in this response on discord - Discord

What is the best way to simply program a sequence to repeat ā€˜foreverā€™? My setup is for sequentially misting several aeroponic buckets for 5 seconds every minute. Presently the script does not contain a Schedule, since I do not want to defer the start time. I have tried multiple attempts using a While statement without success (I am not really a programmer). I am ok with using the Irrigation Unlimited card to stop the sequence when necessary. This may not be the most elegant solution, but I am looking for something easy. Any assistance is appreciated.
Ron

Hey All,

Just updated to latest HA and received the following. Any thoughts on how to address?

Setup failed for custom integration ā€˜irrigation_unlimitedā€™: Unable to import component: cannot import name ā€˜DATA_INSTANCEā€™ from ā€˜homeassistant.components.recorder.constā€™ (/usr/src/homeassistant/homeassistant/components/recorder/const.py)