Pre-release Rachio plugin that supports web hooks.

Posted on
Wed Jun 05, 2019 3:51 pm
FlyingDiver offline
User avatar
Posts: 7220
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Pre-release Rachio plugin that supports web hooks.

I've posted a pre-release of an updated Rachio plugin that supports call-backs (webhooks) from the Rachio servers.

First, you need the latest version of the HTTPd plugin available here: https://github.com/FlyingDiver/Indigo-H ... /tag/1.4.2

Check the configuration carefully, and make sure you enter the DDNS name you're using on your router.

Next, you need this pre-release Rachio plugin: https://github.com/IndigoDomotics/rachi ... /tag/2.0.0

There is no additional configuration needed for the Rachio plugin. Install and enable the HTTPd plugin first, make sure it's configured properly, then update the Rachio plugin. If it detects an enabled HTTPd plugin, it will automatically enable the call-backs. At some point I'll probably add a config option for this.

Right now, the only call-backs it uses are the schedule start/stop and zone start/stop updates. It will set the active zone and schedule name when it gets those. I'm pretty sure the active zone update is working properly, but I'm not so sure about the schedule. My Rachio controller is not operational yet, so all my testing has been done with it sitting on my desk not actually controlling anything. And I don't have any schedules running on it, so I don't know if I'm picking up the right info or not.

I've enabled all the webhooks that are documented, but the ones listed above are the only ones I've actually ever seen. So there's no updating for forecast info happening via the call-backs. I recommend you still poll the servers to get that info. But hourly or so should be sufficient for that. I don't know how often they actually update the forecast info.

Please post feedback here on the Rachio plugin. Any questions or issues on the HTTPd plugin should be in that forum: viewforum.php?f=216

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Thu Jun 06, 2019 6:06 am
Bollar offline
Posts: 528
Joined: Aug 11, 2013

Re: Pre-release Rachio plugin that supports web hooks.

Great! Unfortunately, it will be the end of June before I can try it out.

Insteon / Z-Wave / Bryant Evolution Connex /Tesla / Roomba / Elk M1 / SiteSage / Enphase Enlighten / NOAA Alerts

Posted on
Wed Sep 02, 2020 5:55 am
vtmikel offline
Posts: 643
Joined: Aug 31, 2012
Location: Boston, MA

Re: Pre-release Rachio plugin that supports web hooks.

Is there a trick to getting the Rachio plugin to work with the new HTTPd-2 plugin for webhooks? Or do we need to patch the plugin?

Posted on
Wed Sep 02, 2020 6:03 am
FlyingDiver offline
User avatar
Posts: 7220
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Pre-release Rachio plugin that supports web hooks.

vtmikel wrote:
Is there a trick to getting the Rachio plugin to work with the new HTTPd-2 plugin for webhooks? Or do we need to patch the plugin?


Which versions (of both plugins) are you using? I'm using the current versions of both and it works fine.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Wed Sep 02, 2020 6:11 am
FlyingDiver offline
User avatar
Posts: 7220
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Pre-release Rachio plugin that supports web hooks.

I just pushed Rachio 2.0.2 to the plugin store. Minor updates, should not have any effect if you were using 2.0.0 or later.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Wed Sep 02, 2020 6:29 am
vtmikel offline
Posts: 643
Joined: Aug 31, 2012
Location: Boston, MA

Re: Pre-release Rachio plugin that supports web hooks.

That did it. Thanks.

Posted on
Wed Oct 07, 2020 11:58 am
vtmikel offline
Posts: 643
Joined: Aug 31, 2012
Location: Boston, MA

Re: Pre-release Rachio plugin that supports web hooks.

Any idea about what would fix this:

Code: Select all
Rachio Sprinklers               Rachio Sprinklers Started
   HTTPd 2 Warning                 getWebhookInfo failed, caller name or broker ID not provided

Posted on
Wed Oct 07, 2020 12:12 pm
FlyingDiver offline
User avatar
Posts: 7220
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Pre-release Rachio plugin that supports web hooks.

Which version of each plugin are you running? Turn on debug mode and restart them both.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Wed Oct 07, 2020 12:30 pm
FlyingDiver offline
User avatar
Posts: 7220
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Pre-release Rachio plugin that supports web hooks.

I suspect you did not specify the HTTPd device in the Rachio plugin config dialog:
Attachments
Screen Shot 2020-10-07 at 2.29.23 PM.png
Screen Shot 2020-10-07 at 2.29.23 PM.png (174.75 KiB) Viewed 4362 times

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Wed Oct 07, 2020 1:00 pm
vtmikel offline
Posts: 643
Joined: Aug 31, 2012
Location: Boston, MA

Re: Pre-release Rachio plugin that supports web hooks.

I did. See image.
Last edited by vtmikel on Wed Oct 07, 2020 1:03 pm, edited 1 time in total.

Posted on
Wed Oct 07, 2020 1:02 pm
FlyingDiver offline
User avatar
Posts: 7220
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Pre-release Rachio plugin that supports web hooks.

I'm going to need to see the debug logs.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Wed Oct 07, 2020 1:19 pm
vtmikel offline
Posts: 643
Joined: Aug 31, 2012
Location: Boston, MA

Re: Pre-release Rachio plugin that supports web hooks.

Happy to post it but I dont see much useful information in the debug. Quick question, I see the HTTPD plugin has a webhook proxy and a HTTP Server. Should I be creating a Webhook proxy for the Rachio plugin? Right now I was connecting it to a HTTP Server.

Posted on
Wed Oct 07, 2020 1:26 pm
FlyingDiver offline
User avatar
Posts: 7220
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Pre-release Rachio plugin that supports web hooks.

vtmikel wrote:
Happy to post it but I dont see much useful information in the debug. Quick question, I see the HTTPD plugin has a webhook proxy and a HTTP Server. Should I be creating a Webhook proxy for the Rachio plugin? Right now I was connecting it to a HTTP Server.


No, the proxy device is for user scripts that want to receive web hook callbacks. The plugin doesn't need a proxy.

Turn on debug logging for the HTTP2 plugin, then restart the Rachio plugin.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Wed Oct 07, 2020 1:27 pm
vtmikel offline
Posts: 643
Joined: Aug 31, 2012
Location: Boston, MA

Re: Pre-release Rachio plugin that supports web hooks.

Here's the debug

Code: Select all
Oct 7, 2020 at 3:26:16 PM
   HTTPd 2 Debug                   logLevel = 5
   Reloading plugin "HTTPd 2 2.1.0"
   Stopping plugin "HTTPd 2 2.1.0" (pid 10026)
   HTTPd 2                         Httpd: Stopping serverDevice Device 926100531
   HTTPd 2 Threaddebug             Httpd: deviceStopComm device states: States : (dict)
   HTTPd 2                         Proxy: Stopping proxyDevice Device 747905545
   HTTPd 2 Debug                   getWebhookInfo, info = {u'hook_name': u'httpd_webhook-747905545', u'hook_url': 'http://username:password@home.mikelamoureux.net:5555/webhook-747905545'}
   HTTPd 2 Debug                   Proxy: deviceStartComm, webhook_info = {u'hook_name': u'httpd_webhook-747905545', u'hook_url': 'http://username:password@home.mikelamoureux.net:5555/webhook-747905545'}
   HTTPd 2                         Shutting down HTTPd
   Stopped plugin "HTTPd 2 2.1.0"
   Starting plugin "HTTPd 2 2.1.0" (pid 11417)
   HTTPd 2 Debug                   logLevel = 5
   Started plugin "HTTPd 2 2.1.0"
   HTTPd 2                         Starting HTTPd
   HTTPd 2                         Httpd: Starting serverDevice Device 926100531
   HTTPd 2 Debug                   Started HTTP server on port 5555
   HTTPd 2 Debug                   MyHTTPServer, username = username, password = password, digest = False
   HTTPd 2 Debug                   MyHTTPServer, devID = 926100531
   HTTPd 2                         Proxy: Starting proxyDevice Device 747905545
   HTTPd 2 Debug                   getWebhookInfo, info = {u'hook_name': u'httpd_webhook-747905545', u'hook_url': 'http://username:password@home.mikelamoureux.net:5555/webhook-747905545'}
   HTTPd 2 Debug                   Proxy: deviceStartComm, webhook_info = {u'hook_name': u'httpd_webhook-747905545', u'hook_url': 'http://username:password@home.mikelamoureux.net:5555/webhook-747905545'}
   Reloading plugin "Rachio Sprinklers 2.0.2"
   Stopping plugin "Rachio Sprinklers 2.0.2" (pid 11284)
   Rachio Sprinklers Debug         Received StopThread
   Rachio Sprinklers               Rachio Sprinklers Stopped
   Stopped plugin "Rachio Sprinklers 2.0.2"
   Starting plugin "Rachio Sprinklers 2.0.2" (pid 11423)
   Started plugin "Rachio Sprinklers 2.0.2"
   Rachio Sprinklers               Rachio Sprinklers Started
   HTTPd 2 Warning                 getWebhookInfo failed, caller name or broker ID not provided
   Rachio Sprinklers Debug         HTTPd 2 plugin did not provide webhook info, disabling webhooks
   Rachio Sprinklers Debug         Starting concurrent thread
   Rachio Sprinklers Debug         _update_from_rachio


Posted on
Wed Oct 07, 2020 1:37 pm
FlyingDiver offline
User avatar
Posts: 7220
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Pre-release Rachio plugin that supports web hooks.

Try this pre-release: https://github.com/IndigoDomotics/rachi ... /tag/2.0.3

I think maybe the version published in the store wasn't the correct version.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Who is online

Users browsing this forum: No registered users and 1 guest