A set of custom cards for Home Assistant to control an OpenSprinkler irrigation system.
NOTE: While the package is named OSPi, it should work with any OpenSprinkler variant.
Requires:
- HomeAssistant (tested with 2024.5)
- OpenSprinkler integration
Special thanks to rianadon for his OpenSprinkler-Card and for inspiration and code.
OpenSprinkler Card is available from HACS (search for "ospi cards"). If you don't have HACS installed, follow the manual installation instructions.
There are multiple cards included in the package:
- OSPi SystemCard - a card for status and control of the controller
- OSPi StationCard - a card for status and control of an individual station
(A visual editor is included)
Name | Type | Requirement | Description |
---|---|---|---|
type | string | Required | custom:ospi-sstationcard |
device | string | Required | Device id of the OpenSprinkler in Home Assistant |
station | string | Required | Entity id of the OpenSprinkler station |
name | string | Optional | Station display name |
showName | boolean | Optional | Toggle display of station name (default=true) |
image | string | Optional | Local path or URL to a station image |
imageHeight | number | Optional | Image height in px for station image (default=150) |
imagePosition | string | Optional | Image position, either contain or cover (default=cover) |
Finding device ids is tricky, so I recommend using the dropdown in the visual card editor to set device
rather than YAML.
This card locates your OpenSprinkler entities by using their entity ids. If you haven't changed these, you have nothing to worry about.
Otherwise, make sure:
- The ids of station status sensors end with
_status
- The ids of program running binary sensors end with
_running
- The id of the OpenSprinkler controller enabled switch ends with
_enabled
- The ids of program & station enabled switches end with
_enabled
- The id of the rain delay active binary sensor ends with
_rain_delay_active
- The id of the rain delay stop time sensor ends with
_rain_delay_stop_time
- Download
ospi-cards.js
from the latest release and move this file to theconfig/www
folder. - Ensure you have advanced mode enabled (accessible via your username in the bottom left corner)
- Go to Configuration -> Lovelace Dashboards -> Resources.
- Add
/local/opensprinkler-card.js
with type JS module. - Refresh the page? Or restart Home Assistant? The card should eventually be there.