• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

valiquette/homebridge-rachio-irrigation: Provides Homebridge support for Rachio ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

valiquette/homebridge-rachio-irrigation

开源软件地址:

https://github.com/valiquette/homebridge-rachio-irrigation

开源编程语言:

JavaScript 100.0%

开源软件介绍:

homebridge-rachio-irrigation

verified-by-homebridge
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

  1. Irrigation System Accessory with zones that are linked (default in configuration)
  2. Irrigation System Accessory with separate zones shown as a single tile
  3. 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-irrigation requires 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

  1. Install this plugin using: npm install -g homebridge-rachio-irrigation
  2. Suggest running as a child bridge
  3. Use plugin settings to edit config.json and add your account detail.
  4. Run Homebridge
  5. Pair to HomeKit

Config.json example with child bridge

"platforms": [
	{
		"name": "Rachio-Dev",
		"api_key": "8e600a4c-0027-4a9a-9bda-abc8d5c90350",
		"location_address": "123 Main St",
		"default_runtime": 3,
		"runtime_source": 2,
		"use_irrigation_display": true,
		"show_standby": true,
		"show_runall": true,
		"show_schedules": true,
		"external_IP_address": "76.33.22.111",
		"external_webhook_port": 12453,
		"internal_webhook_port": 27543,
		"use_basic_auth": true,
		"user": "username",
		"password": "password",
		"delete_webhooks": false,
		"_bridge": {
			"username": "0E:79:49:DC:71:A9",
			"port": 46062
		},
		"platform": "rachio"
	}
]



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap