Coder Social home page Coder Social logo

Sequencing and zones about irrigation_unlimited HOT 9 CLOSED

rgc99 avatar rgc99 commented on August 15, 2024
Sequencing and zones

from irrigation_unlimited.

Comments (9)

rgc99 avatar rgc99 commented on August 15, 2024

It should be under the controller. When any of the zones are on, the controller will be on. Hint: If you have a delay between zones in your sequence then consider using preamble and or the postamble settings to avoid the irrigation pump turning off and on. The setting should be at least the longest delay. For example:

# Example configuration.yaml entry
irrigation_unlimited:
  controllers:
    preamble: '00:01' # Cover the delay between zones and prevent pump on/off
    entity_id: 'switch.my_irrigation_pump'
    zones:
      - entity_id: 'switch.my_valve1'
      - entity_id: 'switch.my_valve2
    sequences:
      - duration: '00:10' # Without preamble the pump will turn off
        delay: '00:01'
        schedules:
          - time: '06:00'
        zones:
          - zone_id: 1
          - zone_id: 2

from irrigation_unlimited.

RTAeroHASS avatar RTAeroHASS commented on August 15, 2024

from irrigation_unlimited.

RTAeroHASS avatar RTAeroHASS commented on August 15, 2024

from irrigation_unlimited.

rgc99 avatar rgc99 commented on August 15, 2024

The log file should have an entry for the manual run call. Please post this. I am thinking if the call was for 1 second instead of 10 minutes you might get something like you describe.

from irrigation_unlimited.

RTAeroHASS avatar RTAeroHASS commented on August 15, 2024

from irrigation_unlimited.

RTAeroHASS avatar RTAeroHASS commented on August 15, 2024

from irrigation_unlimited.

rgc99 avatar rgc99 commented on August 15, 2024

This won't work. The config file is only used at startup or a reload so even if it were able to read the value from the input_datetime, changing it would not have any effect on the operation. The way to dynamically interact with the integration is via service calls. In this situation you would call the adjust_time service in an automation. When the input_datetime control changes an automation is triggered and a service call is made. Here is an example:

automation:
  - alias: Irrigation Unlimited Time Change
    trigger:
      - platform: homeassistant
        event: start
      - platform: state
        entity_id:
          - input_datetime.irrigation_auto_runtime
    action:
      service: irrigation_unlimited.adjust_time
      data:
        entity_id: binary_sensor.irrigation_unlimited_c1_m
        sequence_id: 1
        actual: >
          {{ states('input_datetime.irrigation_auto_runtime') }}

The above will trigger on HA startup or when the input_datetime control changes. Also take a look at the time-picker-card. You can get rid of the am/pm part to turn it from a time of day into a duration control. Note: The example has not been tested but the theory is sound.

from irrigation_unlimited.

RTAeroHASS avatar RTAeroHASS commented on August 15, 2024

from irrigation_unlimited.

rgc99 avatar rgc99 commented on August 15, 2024

Assume all good now. Closing issue.

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.