Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RainMachine Sprinkler Irrigation Controller Driver
#1
Kfly (Kevin) and I developed a CQC Driver for RainMachine that interfaces with the REST API that the hardware provides.

It currently works with the Mini-8, Pro, and Touch HD models. The driver will query for program and zone names and settings, and give you the ability to view and control various aspects of the device. 

All of the program and zone settings will have to be managed through the RainMachine application, as this driver only displays information that has already been programmed in the device. It also allows manual start and stop operations of programs and zones along with the ability to Snooze the Rainmachine for up to 365 days (i.e. disable) or Pause a currently running program and/or zone for up to 12 hours.

See the Help file (attached) for more information on how this driver works.

Updated to V1.96 which fixes the way the Snooze start time is gathered, and also adds the RainLastStartTime field which provides a date/time when the last Rain event occurred if you have a Rain sensor.

Updated to V1.97 to fix a few bugs that occur between the various systems.

Updated to V1.99 to fix a bug that occurred on a RainMachine update that now read 8 days of upcoming weather rather than the 7 it did before.   Also updated the http timeout request from 4 seconds to 8 seconds which seems to settle down the number of times the driver times out due to no data received.


Attached Files
.cqcdrvpack   RainMachine 1.99.CQCDrvPack (Size: 26.6 KB / Downloads: 4)
.html   RainMachine Help V1.97.html (Size: 74.21 KB / Downloads: 6)
Reply
#2
Amazing work. Thank you all for your efforts.
Reply
#3
Here is my template that I created for the RainMachine Driver.
Thanks
Kevin

RainMachine Template

[Image: ZrmU5S4.png]
_______________
Denon 3808ci, 2112ci ,Sonos, NoVo Grand Concerto, Z-Wave(Lights,Locks), Hue, SmartThings,
iPads,Tivo,Hikvision,Elk-M1,TED5000,Somfy RTS blinds+ZRTSI, Amazon Echos+Dots, Polk XRT12,
Honeywell Wi-Fi 9000, Caleo Wi-Fi Thermostats, Rainmachine
Reply
#4
Do you have the definitions associated with the RainMachine Fonts for weather icons? (i.e. Partly Cloudy = "C").   I would like to see if I could match them up with the Weather Underground Icons.  I looked on the Rainmachine forum and knowledge base but never did find where they were defined.
Reply
#5
(02-29-2020, 04:06 AM)kblagron Wrote: Do you have the definitions associated with the RainMachine Fonts for weather icons? (i.e. Partly Cloudy = "C").   I would like to see if I could match them up with the Weather Underground Icons.  I looked on the Rainmachine forum and knowledge base but never did find where they were defined.

Not sure it helps but the rainmachine stores the day weather icons as a number.   The driver just converts to the corresponding letter to display.
You may want to load the font on a windows machine and see if the Letters A-Z fit some kind of standard.

// An enum we use to convert the weather icon number to font letter
    // left as default but could be changed if needed.
    // Rainmachine has a numeric value for condition icon. We convert to letter to be used by the rainmachine font
    Enum=WeatherConIcon
        a  : "0"; 
        b  : "1"; 
        c  : "2"; 
        d  : "3"; 
        e  : "4"; 
        f  : "5";
        g  : "6";
        h  : "7";
        i  : "8";
        j  : "9";
        k  : "10";
        l  : "11";
        m  : "12";
        n  : "13";
        o  : "14";
        p  : "15";
        q  : "16";
        r  : "17";
        s  : "18";
        t  : "19";
        u  : "20";
        v  : "21";
        w  : "22";
        x  : "23";
        y  : "24";
        z  : "25";
    EndEnum;
_______________
Denon 3808ci, 2112ci ,Sonos, NoVo Grand Concerto, Z-Wave(Lights,Locks), Hue, SmartThings,
iPads,Tivo,Hikvision,Elk-M1,TED5000,Somfy RTS blinds+ZRTSI, Amazon Echos+Dots, Polk XRT12,
Honeywell Wi-Fi 9000, Caleo Wi-Fi Thermostats, Rainmachine
Reply
#6
Does anyone have opinions on the best weather source to use? Finally got my RainMachine and am setting it up.
Reply
#7
Here is a soil survey map for use with the custom soil types in RainMachine settings

https://websoilsurvey.nrcs.usda.gov/app/...urvey.aspx
Reply
#8
(03-05-2020, 10:58 AM)gReatAutomation Wrote: Does anyone have opinions on the best weather source to use? Finally got my RainMachine and am setting it up.
I use NOAA. Seems accurate for my area.
_______________
Denon 3808ci, 2112ci ,Sonos, NoVo Grand Concerto, Z-Wave(Lights,Locks), Hue, SmartThings,
iPads,Tivo,Hikvision,Elk-M1,TED5000,Somfy RTS blinds+ZRTSI, Amazon Echos+Dots, Polk XRT12,
Honeywell Wi-Fi 9000, Caleo Wi-Fi Thermostats, Rainmachine
Reply
#9
I am using NOAA also, but haven't looked hard at the others to evaluate.  From what I can tell, you can select multiple weather sources and RainMachine will somehow come up with an average.  I will probably look at that down the road.

On the V1.91 driver - I fixed a bug but haven't posted it yet.  The bug will occur if you have a program that isn't programmed to start (I have one that is a 2 minute Manual Check of each zone to view sprinklers for issues), you will get an error - but driver still works.   I also increased the number of programs you can have from 4 to 16.  

The reason I haven't posted it yet is because I wanted to add this to the driver -> Show what Restrictions may be in play for your next Program's run.  Right now the driver will show the next run, but, in actuality, it may not run if something is restricting it.  For me in particular right now, it is "Water Surplus" which is where it has already rained enough or forecast to rain enough for my soil conditions and doesn't need to run, even though you may think it will run.

Let me know if you need an updated version and I will post before I get the restriction part completed.
Reply
#10
Thanks. This thing is great. Is it possible to update the driver so that you can run a zone on demand? I see that this is an option from the web interface. There are times when I need to run a particular zone on demand, especially when I am trimming the grass around the sprinkler hears and need to locate a particular sprinkler head.

Could be a series of R/W fields for each zone:

Zone_X_Start - Write only - true
Zone_X_Stop - Write only - true
Zone_X_Pause - Write only - true
Zone_X_RunFor - Read/Write - x minutes

Thoughts?


[Image: Screen-Shot-2020-03-05-at-23-15-59.jpg]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  OpenWeatherMap Weather Driver Using OneCall API kblagron 13 5,212 02-24-2023, 02:07 AM
Last Post: kblagron
  Onkyo/Integra Receiver Driver sic0048 6 343 01-08-2023, 10:24 PM
Last Post: kblagron
  SmartThings API V1 driver kfly 5 1,268 02-22-2022, 07:55 AM
Last Post: kfly
  Tesla Driver Driver kfly 14 6,577 02-21-2022, 10:11 AM
Last Post: kfly
  Help on editing existing Driver Spot 5 1,005 02-03-2022, 06:50 PM
Last Post: kblagron
  New to driver development - where to start? jokermac 2 935 09-22-2021, 04:01 PM
Last Post: Spot
  Yamaha RX-V673 IP control Driver jdmevo123 22 12,245 03-27-2021, 03:02 PM
Last Post: Spot
  Updated SMS Driver gReatAutomation 0 902 01-28-2021, 12:53 PM
Last Post: gReatAutomation
  Sage Media Server driver (beta) Fonceur 698 357,392 07-26-2020, 04:59 PM
Last Post: sic0048
  Russound MCA-66 on TCP driver lapointe.sc@gmail.com 5 3,139 05-24-2020, 06:23 AM
Last Post: gReatAutomation

Forum Jump:


Users browsing this thread: 1 Guest(s)