Rachio Smart Sprinkler Controller

ok, noizzle_head vs. zone_head fixed, must be zone_noizzle_head - you found the first bug :slight_smile:

Now, we need to device on the channels to implement. I mentioned the API properties in post no. 14 - see above. The API provides much more that I currently implemented, but I donā€™t see the need for tons of channels. Provide feedback on what you like to see.

The API provides the option to register a callback. This would be much more efficient that polling. However, the problem is that this link has to be configured in the binding and it must be rachable from the internet = it requires router config (some kind of port forwarding). Does that makes sense?
pro: Rachio informs actively, you get near-real time updates (e.g. when a zone is running, a schedule is started etc - like with the App)
contra: Setup is much more complicated
Your opinion?

If you want give it a try I could enable the control functions like on/off, stop watering. I havenā€™t tested them, so not sure what happens.

With regards to the API and providing updates I like itā€¦I would want to see what is required to open up port wise but I think we all have come to expect near immediate updates in OpenHab and would feel lost without them.

I agree that there are currently too many channels that really donā€™t provide information that is needed within a home automation system. For example the nozzle type, nozzle image url etc.

In regards to control, what does the channel ā€œZone Runā€ do? Itā€™s listed as a switch so I assumed I could turn that zone on or off by engaging that switch?

To me a great feature would be to be able to control zones and specify a time. When my wife asks me to turn the Rosebed on for 5 minutesā€¦thatā€™s what Iā€™d like to be able to do.

Iā€™d also like to see notifications of when a SKIP has been scheduled.

Squid

To get those events I need to register a webhook to the API. Something like http://myopenhab.mydomain.com:10000/rachio. This would call the bindingā€™s web service on port 10.000. a) you need a dynamic DNS service (supposing not everyone has a fixed IP) and the router has to to a port forwarding to your OH device. I stopped implementation, because of this. Maybe a combined approach makes sense: A poll every x min + event driven when configured. With this events are preferred, and polling would be the fallback for people who donā€™t want to struggle with the router setup. In fact I donā€™t like to open my router from the Internet, so?

Having the zones image url allows building nice dashboards including a pic of the zone (like the app does). Information on the head give some options on implementing your own logic (calculations).

Yes, I already plan to start a zone immediately. The switch would be something like ā€œrun zone for xx sec fixā€ (configurable static value), the regular run channel triggers a zone when the value changes. So something like zone1_run.sendCommand(600) to start a 600sec watering. I included the Switch only, because this is accessible in the PaperUI->Control oder in a habPanel.
What do you think?

Create a list of channels you donā€™t need and those you want to see (based on whatā€™s available in the API). Iā€™ll continue to implement the status update, so we see moving numbers at least once per min or so (event would be an optimization to that).

@ashley_stovall, @ranielsen, @NCO, @Agbush: anyone else willable to give it a try and join the discussion

@KidSquid: Find a new build on dropbox with enabled control functions

  • enable/disable controller
  • run zone for 120s using the switch
  • start zone for xxx sec when channel run_time receives a value > 0 (link to an item and create a rule to test)
  • stop watering when running

Iā€™ll get my openhab set back up this weekend and try to help, I love rachio so I want to help but I have gone a different direction at home

Out of curiosity, what did you transition to?

I want to help this effort so thank you so far although my controller is currently turned off for the winter so need to turn that on again before I can start!

HomeKit with home bridge, itā€™s ghetto as hell but it does what I need and Iā€™m hopeful that rachio will supply proper HomeKit support by years end

@KidSquid did you tried some of the control functions?

@markus7017

I have the new ā€œcontrolā€ version of the binding installed.

Just to make sure I am looking at things correctly

This is the Paused channel on the Controller Thing?

This is the Zone Run channel on the Zone Thing?

Could you provide some syntax for this?

Not sure what this means.

I implemented the dynamic update of the channels (currently based on polling), but have problems with the control functions. the http post fails and I donā€™t know why, but itā€™s an upcoming weekend :slight_smile:

Sounds excitingā€¦can you answer my questions above?

Squid

enable/disable is the active switch; disabling the devi device means: hold all schedules, stop watering etc
the represents the standby switch in the appā€™s devixe settung

the zone run switch uses the following logic

  • when runTime is > 0 the zone will be started for runTime secs
  • if runTime = 0 then the default is taken, you can set this in the bridge config (defaultRuntime), default is 120sec
    when a zone is running it can only be stopped on tge device level. This stops all zones.

the app allows to start multiple zones at the same time, Iā€™m not sure if it provides a value by supporting that

Hi @KidSquid, I uploaded a new jar to dropbox. This version does not contain your apikey, but that should be fine, because you already discovered the things.

This build fixes the control functions and updates channel properties on a polling basis. Polling interval can be configured in the bridge thing definition (pollingInterval=n). So when turning active to off you should see the controller becoming standby mode in the app etc.

Could you please verify the functions with you controller. Thx

I get an error that the file is not found when trying to download the new version.

Squid

org.openhab.binding.rachio-2.3.0-SNAPSHOT.jar.pdf (249.5 KB)

Downloaded and installed the new version of the binding.

I know see a new THINGā€¦called RACHIOā€¦should I have this as well as the THING for my CONTROLLER and each ZONE?

So an 8 zone controller will have 10 THINGS?

Just want to confirm.

Squid

you should have
1 thing for the bridge
1 thing for the controller (with its own channels)
8 zone things

the bridge supports more than 1 controller (in my case 2). The final version might support multiple bridges (one per apikey), but thatā€™s currentl out of scope

Questionā€¦

On the controller THING, there are four switchesā€¦which one is what Rachio calls Standby Modeā€¦is that Paused? What are the other switches for?

Ok, mine is working as it should beā€¦thatā€™s what I see.