Opensprinkler custom component for Home Assistant
Last tested on OS API 2.1.8
and Home Assistant 0.95.0
- 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
-
Copy
custom_components/hass_opensprinkler
folder into<config_dir>/custom_components
-
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.
- Replace
-
Restart Home Assistant
-
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
This custom component can be tracked with the help of HACS.
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
.