ho
homebridge-opensprinkler
npm i homebridge-opensprinkler
ho

homebridge-opensprinkler

OpenSprinkler plugin for Homebridge

by Tim Harper

0.2.1 (see all)License:ISCTypeScript:Not Found
npm i homebridge-opensprinkler
Readme

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
}

Downloads/wk

8

GitHub Stars

11

LAST COMMIT

4yrs ago

MAINTAINERS

1

CONTRIBUTORS

1

OPEN ISSUES

8

OPEN PRs

0
VersionTagPublished
0.2.1
latest
4yrs ago
No alternatives found
No tutorials found
Add a tutorial

Rate & Review

100
No reviews found
Be the first to rate