Skip to content

Opensprinkler custom component for Home Assistant

License

Notifications You must be signed in to change notification settings

Vertikar/hass-opensprinkler

 
 

Repository files navigation

hass-opensprinkler

Opensprinkler custom component for Home Assistant

Last tested on OS API 2.1.8 and Home Assistant 0.95.0

image

Features

  • Binary sensors for each station to show on/off status
  • Binary sensors for OpenSprinkler operation, rain sensor and rain delay
  • Sensors for each station to show status
  • Sensors for water level, last run time and rain delay stop time
  • Programs as scenes which can be "activated"
  • Stations as switches with individual timers

Installation

  1. Copy custom_components/hass_opensprinkler folder into <config_dir>/custom_components

  2. Add the following into your configuration.yaml

    hass_opensprinkler:
      host: <host>
      password: <md5-password>
    • Replace <host> with the IP address or hostname of your Opensprinkler controller.
    • Replace <md5-password> with the MD5 encrypted version of your password to your Opensprinkler interface.
  3. Restart Home Assistant

Configuration

  • stations - by default the component will retrieve all stations but you can limit which stations to show by providing a list of station indexes (starting from 0)

    hass_opensprinkler:
      ...
      stations:
        - 0
        - 3
        - 4
  • programs - by default the component will retrieve all programs but you can limit which programs to show by providing a list of program indexes (starting from 0)

    hass_opensprinkler:
      ...
      programs:
        - 0
        - 3

Support for HACS

This custom component can be tracked with the help of HACS.

Troubleshooting

My sprinkler switches are not working

Some users have reported that thier switches do not work. This is due to some input_number entities not being created by the component. To get around this issue you can manually create these entities by adding the following for each of your stations.

input_number:
  <station_name>_timer:
    min: 1
    max: 30
    step: 1
    mode: slider

Replace <station_name with your station name, it should match the names created for the sensor, switch and binary_sensor.

About

Opensprinkler custom component for Home Assistant

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%