Rachio Irrigation System platform plugin for Homebridge.
About
NOTE: Option 1 is not working correctly with a bug in IOS 15.4 and 15.5. The bug will cause zone switches to be displayed randomly or not at all.
This plugin provides 3 options for use in HomeKit Both option have additional switches as options for Standby mode and a Run All along with any Rachio Schedules
Irrigation System Accessory with zones that are linked (default in configuration)
Irrigation System Accessory with separate zones shown as a single tile
Irrigation System Accessory with separate zones shown as a separate tiles (option in HomeKit)
There are plus and minus to each, so why not have options.
If you have more than one home on your Rachio account you may filter devices for a home based on the street address for the location you want to display in HomeKit.
Rachio caluclated runtimes based on your zones configuration, these runtimes can be used for the inital runtimes seen in HomeKit.
Screenshots
API Key
You can acquire your API key from Rachio io.app documented here.
Notes on Webhooks
homebridge-rachio-irrigationrequires webhooks to update HomeKit accessory status in real time such as a defined schedule from the Rachio app.
Setting up webhooks, the easy way (if your router supports it):
You must know your external network IP address. You can discover it here to be entered in the config as the "external_Webhook_address"
You must enable port fowarding on the router this server is conected to. Follow you routers instructions for this step.
The port forwarding should look like external_webhook_port -> internal_port for your servers IP address which can be found on the Homebridge Status page in system information.
NOTE: if your IP Address is changed by your ISP, you will need to edit the IP address in the config to match it whenever it changes. You should use a Dynamic IP address DNS service if your IP changes often.
If you cannot setup port forwarding on your router (or don't want to):
You must have an always-on computer available on your network (MacOS, Linux, Windows). If you're running Homebridge, you can use that one.
Create an account at Webhook Relay. The free account should be fine.
Create a new webhook relay:
Create a new "New Basic Forwarding" from the quickstart on the Dashboard.
Select Use Default Input Domain. Then Continue.
For Destination URL enter: http://127.0.0.1:27546/
If you'll be installing the relay on a computer different from your Homebridge, replace the 127.0.0.1 with the IP or network name of your Homebridge server.
For Output type choose: Internal
For Lock destination path disable it so it says: not locked
Hit Continue so you're on the review step. Change your Configuration name to something that makes sense for you. I set mine to: rachio-config
Save everything by clicking on the Create Configuration button.
Copy the Key, Secret, and relay CLI command somewhere. You'll need them later.
Now you'll need to install their Relay software on a computer on your network (probably wherever you have Homebridge installed). Install instructions can be found here.
Edit Settings for homebridge-rachio-irrigation to use the Webhook Relay
When setting up this plugin and you get to the External IP Address or Domain section, enter the default public endpoint that Webhook Relay provides you with. It'll look like somethinglongandrandom.hooks.webhookrelay.com (note don't inlude http(s)://). You can find it at Request Forwarding > Buckets listed under Default public endpoint in the Webhook Relay dashboard.
Set the External Webhook Port to: 80
The Internal Webhook Port can be left to the default 27546. If you change it, be sure to change the Destination URL in the Webhook Relay bucket settings you configured earlier.
Save the Config changes, and then restart Homebridge
Test it!
Make sure you're running the relay service, in Terminal or the command line, it'll look something like this: relay forward -b rachio-config
rachio-config should be the name of your bucket.
Go to http://somethinglongandrandom.hooks.webhookrelay.com/test in your browser and a moment later you should see in the Homebridge logs that the test was successful.
After you have tested everything works ok, you can make the Webhook Relay software always run by using the instructions here.
The startup log will show if the configuration is correct and working.
If you see log messages like Webhook received from an unknown external id, you may set the clear_previous_webhooks flag to true to remove previous webhooks before creating or updating the webhook for this plugin. Note: this will clear all webhooks tied to your Rachio API key, so be careful if you rely on Rachio webhooks apart from this plugin.
Installation
Install this plugin using: npm install -g homebridge-rachio-irrigation
Suggest running as a child bridge
Use plugin settings to edit config.json and add your account detail.
请发表评论