Coder Social home page Coder Social logo

Comments (8)

rgc99 avatar rgc99 commented on July 17, 2024

Glad this project is working out for you. Once you have things up and running there are a number of service calls available. One of these service calls allows you to adjust the watering times you have setup in the yaml file.
HAsmartirrigation provides a number of sensors with the hourly or daily adjusted run times. You need to create an automation that takes the data from the HAsmartirrigation sensor and makes a service call to irrigation_unlimited.adjust_time.
Personally I have not used this integration and instead use observation data provided by my personal weather station to adjust watering times based on rainfall and temperature. Details can be found in the documentation. There are many thoughts and ideas along with numerous weather services giving a lot of scope for creating adjustments.

from irrigation_unlimited.

Kurisutian avatar Kurisutian commented on July 17, 2024

Thanks for getting back to me about this. I have no clue how to work with it, since all of my automation so far was done with Node-Red. Also I do not own a weather station since I have not found one yet, which suits my needs and is available on the German market (if you happen to know any, let me know as I would be glad to set something up on the roof).
I think the beauty of the HAsmartirrigation is the fact that they calculate a value out of evaporation, area to cover and how much water the individual sprinklers need. So this is highly custom and even with my own weather station I would still love to have this data integrated.
So could you provide an example how to work with HAsmartirrigation and how it would be set up to adjust time. I only started looking a bit more under the surface and I'm not that much of a programmer so I have my difficulties adjusting your examples to what I want to archive. Any hint or idea would be highly appreciated.

Thank you very much! 😃

from irrigation_unlimited.

rgc99 avatar rgc99 commented on July 17, 2024

Not sure they sell my model of weather station any more but this is very much like it. https://www.ebay.com.au/itm/262073907445. The main thing is it sends the information to weather underground and there is a HA integration https://github.com/cytech/Home-Assistant-wundergroundpws that will pull the data back into HA.

This automation runs at 04:00 and takes the calculated run time from HAsmartirrigation and updates Irrigation Unlimited with the new watering time. It then calls HAsmartirrigation to reset the bucket.

Hopefully this will point you in the right direction.

- alias: Smart Irrigation
  description: Adjust watering times
  trigger:
  - platform: time
    at: 04:00
  action:
  - service: irrigation_unlimited.adjust_time
    data:
      entity_id: binary_sensor.irrigation_unlimited_c1_z1
      actual: >
        {% set t = states('sensor.smart_irrigation_daily_adjusted_run_time') | int %}
        {{ '{:02d}:{:02d}:{:02d}'.format((t // 3600) % 24, (t % 3600) // 60, (t % 3600) % 60) }}
  - service: smart_irrigation.smart_irrigation_reset_bucket
  mode: single

from irrigation_unlimited.

Kurisutian avatar Kurisutian commented on July 17, 2024

It definitely does, thanks a lot for your help. This brings me a huge step forward to automatically have things running! 😃

from irrigation_unlimited.

rgc99 avatar rgc99 commented on July 17, 2024

Example now included in documentation.

from irrigation_unlimited.

rmeekers avatar rmeekers commented on July 17, 2024

There is one question remaining for me.
If I set the watering times based on the data from HAsmartirrigation, what kind of schedule should I configure?
I want to check daily if there is a manual watering time set, if so: start irrigation. If not: do nothing. Is this possible? Or did I miss it in the documentation?

from irrigation_unlimited.

rgc99 avatar rgc99 commented on July 17, 2024

Create a schedule for when you would like to water. For a lot of people this is before dawn but there are many reasons such as local regulations, water pressure, convenience, there are many opinions on this. The duration won't really matter as HAsmartirrigation will override this value so just set it to something sensible. The automation script takes the calculated run time from HAsmartirrigation and transfers it to Irrigation Unlimited via a service call. If the calculated value is 0 then the irrigation won't run.

from irrigation_unlimited.

rmeekers avatar rmeekers commented on July 17, 2024

ah wonderful. I didn't understand how it would respond if there was no override. But if it's set to zero, then it won't run.

Thanks for your great work!

from irrigation_unlimited.

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.