Rachio Gen 3

Posted on
Fri Feb 08, 2019 9:05 am
jenkins007 offline
Posts: 104
Joined: Nov 08, 2006
Location: Seguin, TX

Rachio Gen 3

I have the Rachio Gen 3 8-zone controller. When attempting to add it to Indigo I get this error:
Rachio Sprinklers Error Error in plugin execution GetUiDynamicList:

Traceback (most recent call last):
File "plugin.py", line 476, in availableControllers
File "plugin.py", line 242, in _get_device_dict
AttributeError: 'Plugin' object has no attribute 'person'


How the gen 3 works is pretty remarkable and the website controls are good. Since I have a weather station that I transmit data to my PWS (KTXSEGUI14 via WeatherCat) less than 100 yards away and Rachio uses Weather Sense to collect data from that specific one to manage soil moisture, I am not sure the value of complete integration into Indigo compared to the EZflora where Indigo monitored the weather and managed the watering. But at least a URL on the indigo control page to link them together.

Thanks,
Matthew

Posted on
Fri Feb 08, 2019 12:53 pm
FlyingDiver offline
Posts: 3463
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Rachio Gen 3

File an issue here: https://github.com/IndigoDomotics/rachio-indigo/issues

Make sure you've got the auth token in the config dialog, and then restart the plugin. Then try to add the device.

I'm digging into the Rachio code now for other reasons so I'll take a look at it. I might need to roll a debug version for you to try.

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

Posted on
Fri Feb 08, 2019 3:11 pm
jenkins007 offline
Posts: 104
Joined: Nov 08, 2006
Location: Seguin, TX

Re: Rachio Gen 3

I'll file an issue. I put in the api key multiple times: new device configure as Rachio, add key, not luck. Delete device, add another api key already there, still no luck. Repeat... same result.

Possibly new format of data on the rachio site? To get the api key I have to login, click on my controller, then click on account settings, then click on GET API KEY.

Thanks,
Matthew

Posted on
Fri Feb 08, 2019 3:51 pm
FlyingDiver offline
Posts: 3463
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Rachio Gen 3

jenkins007 wrote:
I'll file an issue. I put in the api key multiple times: new device configure as Rachio, add key, not luck. Delete device, add another api key already there, still no luck. Repeat... same result.

Possibly new format of data on the rachio site? To get the api key I have to login, click on my controller, then click on account settings, then click on GET API KEY.


I expect you're right and the data format/contents have changed. Please do the following in a Terminal window, and post the results in the GitHub issue. Make substitutions where noted.

Code: Select all
$ curl -H "Content-Type: application/json" -H "Authorization: Bearer <<<YOUR API KEY HERE>>>" "https://api.rach.io/1/public/person/info"

Result will look something like:   {"id":"04xxxef1-8xx4-4xx2-add0-03975xxxxxx6"}

$ curl -H "Content-Type: application/json" -H "Authorization: Bearer <<<YOUR API KEY HERE>>>" "https://api.rach.io/1/public/device/<<< ID FROM STEP 1 HERE>>>"


The last command will dump a big block of text. Just copy that to the Github issue.

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

Posted on
Mon Feb 18, 2019 7:22 am
jenkins007 offline
Posts: 104
Joined: Nov 08, 2006
Location: Seguin, TX

Re: Rachio Gen 3

I wanted to follow up and close this issue. After unsuccessfully attempting to complete the simple commands many times, FlyingDiver and I decided to close the issue. While the first command worked each time providing the ID, the second one never completed. As I was copying and pasting and trying different permutations of spaces and no spaces, quotes and no quotes, it possibly could be the login process for the Gen 3 is different. Either way, the interface via the Rachio web interface is full featured. So instead of spending more time trouble shooting for both of us, an external URL on the indigo web page to access the Gen 3 controllers works. Thank you FlyingDiver for trying and for the quick responses!

Thanks,
Matthew

Posted on
Mon Feb 18, 2019 8:37 am
FlyingDiver offline
Posts: 3463
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Rachio Gen 3

jenkins007 wrote:
I wanted to follow up and close this issue. After unsuccessfully attempting to complete the simple commands many times, FlyingDiver and I decided to close the issue. While the first command worked each time providing the ID, the second one never completed. As I was copying and pasting and trying different permutations of spaces and no spaces, quotes and no quotes, it possibly could be the login process for the Gen 3 is different. Either way, the interface via the Rachio web interface is full featured. So instead of spending more time trouble shooting for both of us, an external URL on the indigo web page to access the Gen 3 controllers works. Thank you FlyingDiver for trying and for the quick responses!


After looking at this thread again this morning, I realized that I left a step out of the instructions. Mea Culpa.

The first step gets the person id, which is like the account id.
Code: Select all
$ curl -H "Content-Type: application/json" -H "Authorization: Bearer API-KEY" "https://api.rach.io/1/public/person/info"

Result will look something like:
Code: Select all
 {"id":"04xxxef1-8xx4-4xx2-add0-03975xxxxxx6"}

The second command needs to say "person" not "device. This command gets the information about the person (account), including the list of devices on the account.
Code: Select all
$ curl -H "Content-Type: application/json" -H "Authorization: Bearer  API-KEY" "https://api.rach.io/1/public/person/04xxxef1-8xx4-4xx2-add0-03975xxxxxx6"


The result will have a section that looks like this. This will appear multiple times if you have more than one Rachio controller.
Code: Select all
"devices":[{"createDate":1549380657000,"id":"6b7ef9ad-xxxx-xxxx-xxxx-f71a1e891221","status":"ONLINE",

Then do the actual command to get the device info:
Code: Select all
$ curl -H "Content-Type: application/json" -H "Authorization: Bearer  API-KEY" "https://api.rach.io/1/public/person/6b7ef9ad-xxxx-xxxx-xxxx-f71a1e891221"

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

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest