homebridge-opensprinkler

0.2.1 • Public • Published

OpenSprinkler

"Hey Siri, turn off my sprinklers"

Overview

Simple OpenSprinkler / Homebridge integration.

What works:

  • Read and set rain delay
  • Automatically update changes in state
  • Show sprinkler state: idle, scheduled, running
  • Show remaining duration
  • Turn off sprinklers
  • Ad-hoc turn on a single valve at a time.
  • Allow duration to be specified per-station when enabled

What doesn't work:

  • Starting multiple programs in sequence (turning on multiple stations causes them to run concurrently)
  • Persisting Home-configured station-specific default durations after restart
  • Does not support multiple OpenSprinkler systems

Installation

You must have NodeJS v8.1.4 or later installed as homebridge-opensprinkler depends on JavaScript features introduced at that point. Check your node version:

node --version

You need Homebridge installed and configured. This plugin was developed against Homebridge 0.4.43.

npm install -g homebridge

Install this plug-in:

npm install -g homebridge-opensprinkler

Updating:

npm update -g homebridge-opensprinkler

Add the section below to your homebridge platforms section.

Configuration

  • host: The IP or DNS name of the OpenSprinkler controller
  • password: Either the md5 hash of the password, or the password in plain text. I.E. {"md5": "a6d82bced638de3def1e9bbb4983225c"} or {"plain": "opendoor"}
  • enabledStationIds: The stationIds you wish to have registered.
  • defaultDurationSecs: The duration for which a station will be run when toggled on.
  • pollIntervalMs: The interval at which homebridge-opensprinkler will poll for state changes in OpenSprinkler.

Sample configuration:

{
  "platform": "OpenSprinkler",
  "host": "sprinkler.lan",
  "password": {"md5": "a6d82bced638de3def1e9bbb4983225c"},
  "enabledStationIds": [0, 1, 2, 3],
  "defaultDurationSecs": 600,
  "pollIntervalMs": 5000
}

Readme

Keywords

Package Sidebar

Install

npm i homebridge-opensprinkler

Weekly Downloads

2

Version

0.2.1

License

ISC

Unpacked Size

15.3 kB

Total Files

7

Last publish

Collaborators

  • timcharper