[RELEASE] Rain Bird LNK/LNK2 WiFi Module Controller

[UPDATE] Rain Bird LNK/LNK2 WiFi Module Controller v0.1.2.0

Had the first rain in a while here and, well, looked in to why the rain sensor never changed from 'dry' to 'wet.' Turns out legacy firmware (≤3.0) does not report the rain sensor status. :frowning_face:

I updated the driver to reflect 'unknown' on legacy firmware accordingly.

1 Like

[UPDATE] Rain Bird LNK/LNK2 WiFi Module Controller v0.1.3.2

:droplet: Manual Zone Device Creation — automatic zone creation replaced with a self-healing manual command Create Zone Children

This version will create child devices, one for each zone, to help automation. You can use on/off or open/close on the child device rather than calling the parent device and passing a zone number and duration.

1 Like

@MHedish first of all, my best wishes for this new year.

I’ve been using this driver for about two or three weeks, but didn’t try it extensively until today.

I have two controllers, one for the front yard and one for the back yard. Same controllers (ESP-TM2), and just noticed they have different firmware (Front 3.2, Back 2.10)

They use a different WiFi dongle, therefore the driver shows a little different options. (Because of the firmware difference?).

None of them creates child devices.

I created a Dashboard with basically three columns, (Attribute, Back Controller, Front Controller).

Something is not working right and I just need some help to know if I am doing something wrong.

When any of the controllers is running, some attributes do not change, and I only notice that the ones that update are Active Zone and Remaining Runtime.

Irrigation State always shows “watering”, and only briefly change to “Idle” for a second or two, and then going back to Watering.

Any ideas or suggestions?

Edit: I’m using RainBird 1.0 app

Thanks! Happy New Year to you as well.

That 2.10 firmware is really old and doesn't provide much to work with. The 3.2 should work well.

Unfortunately, Rain Bird firmware is not field upgradable. Personally, my 8 year old unit is stuck at 2.9. :frowning:

The Wi-Fi modules have their own firmware. The Wi-Fi module doesn't update any access or add features the old firmware of the controller. It also doesn't change what's available for us to control/monitor. It's really just a bridge.

Warning: Do not try to upgrade the Wi-Fi modules to later firmware; you'll end up locking yourself out of local control. @CaptWoody updated the firmware, and we both then learned it ended up removing local auth and forces cloud only now.

The 2.10 firmware doesn't let us know when its "watering." The driver also can't read the number of zones you have. About the only thing we can do is turn on/of a particular zone.

On the other hand, you shouldn't have any issues with the 3.2 firmware.

Are the attributes (serial number, date'/time, etc.) populating? Have you turned on debug and noticed any errors/messages indicating why something isn't able to populate?

Wow, that’s bad news.

I just noticed both units show different firmware versions, changing from 3.2 to 2.10 randomly.
Right now both show 2.10.

Attributes updating that I can notice are:

Active Zone
Clock Drift
Controller Date
Controller Time
Delay Setting
Dr Info
Firmware Ver (Changes from 2.10 to 3.2)
Rain Delay
Remaining Runtime
Serial Number

What do you think are my options?

Not sure why the reported firmware would change. That's not right.

I'm presuming you have the driver set up for two separate devices, each pointing to the IP of the respective controller.

There is a diagnostic button on the preferences page:

image

Turn on "Enable Debug Logging" and give that a run. It will populate the commandSupport attribute:
image
I'm curious to see what is supported on 2.1 firmware.

You mentioned the child devices aren't being created. With debug on, what do you get when you run:
image
You should see a child device for each of the zones you set up under the "Number of Zones" preference. I doubt that old firmware will auto-update the number of zones. The commandSupport report will let me know.

Yes, one is XXX.XXX.x.55 and the other one XXX.XXX.X.58

I just noticed that after running the ...

Firmware version changed to 3.2

I will do some tests to identify how the version changes on one of the devices, from 2.10 to 3.2 and back, and will post here.

image

Now I’m in the process of detecting how firmware goes from 2.10 to 3.2 to 2.10 again

When I hit Test All Supported Commands, it goes to Firmware ver. 3.2.

When I hit Configure it goes back to Firmware ver. 2.10.

This only happens on one device, the other one goes from 2.10 to unknown to 2.10.

And about Child Devices, I just discovered that I haven’t installed the Child Devices Driver, so I installed it and now it works perfectly (it doesn’t).

It creates the Child Devices but none works.

Any ideas about the firmware problem?

@MHedish do you believe this app would work with the proper LNK2 device? one with a recent firmaware?

Suggestions for getting one, and not getting one with old firmware?

Your firmware isn't changing; the issue is the process of trying to determine which firmware is actually on the device. Really old firmware like yours doesn't accurately report versions. The changes your report here are my driver trying to determine which commands work. It's seeing a command that

Configure runs getControllerIdentity(). That gets the firmware directly from the controller. It's authoritative to what's in the silicon. Test All Supported Commands asks the controller what it thinks is can do. Based on the supported command list, its saying the controller can do more than it actually can. I've discovered this is just how the ancient firmware works. It misreports its capabilities. That's why you're seeing both.

The drive asks, "What can you do?" but that list just isn't accurate. You actually have 2.10 firmware, and despite reporting "capabilities," it just can't do it.

Rain Bird controller firmware is not field upgradable. You cannot change it.

The only firmware you can update is the Wi-Fi module (the LNK2). That firmware is upgradable, but that won't change the capabilities of the unit at all. It only affects the Wi-Fi module. I recommend you do not upgrade the Wi-Fi module. If you do, you'll lose the ability to log in the controller via your LAN. @CaptWoody learned this the hard way. :frowning:

There really isn't much we can do. You have an older device that because of that age misreports capabilities, and it can't be upgraded or patched.

The only real upgrade path is replacing the controller.

2 Likes

:smirk:

Thanks for the information.

I guess I´ll have to start looking at some new controllers if I want to have access and control power over the controller.

This is amazing! Thank you!!!!

I'm hoping this can solve one big problem I have. Our controller is inside our house in a utility closet. Our house is stucco. The rain sensor is out side......so signal sucks. Also those expandable cork style sensors just always need attention in my experience. From what I gather, I can "set rain delay" manually in HD to do the exact same as the rain sensor would.

What I'm curious about (and maybe this is better in a thread all on its own), has anyone ever incorporated any sort of weather forecast into HE? I currently have an OpenWeatherMap device that reports basics (temp, humidity, pressure, sky cover, wind). I'd love a similar device that can also report past rain totals and also predicted future rain totals. This way I could have a Rule to the effect of, If last 24 rain totals were > 0.5" or next 24 rain totals predict > 0.5" set rain delay to 2.

Thanks!

Take a look here. :wink:

The app was originally going to just do the ET calculations but has evolved into a complete irrigation controller. I think it's what you're looking for. In short, it makes your Rain Bird a better Rachio than Rachio. :shushing_face:

I'm using the Rain Bird device as a bridge to control the valves in my ESPme. The weather calculations and alerts (wind, freeze, rain) all come from WET-It. AAMOF, the switch on the controller is literally in the off position, so there's no chance the Rain Bird will try to run a program.

The app will handle the rain and freeze skips for you. You can use the child device to grab the rain forecasts. It doesn't grab the actuals, just predictions.

You can use your existing OWM API key or choose one of four other weather forecast sources. Personally, I moved to Open-Meteo for my source.

..Marc..

Holy Crap!!!! Wet-It looks amazing. I just started reading it, but so far am def sold!

Since I already have a rain fall sensor, is there a way I could/should still use this integrated into the system, or is it not even worth the hastle?

Maybe :wink:

If the sensor is a “leak detector” type or can set a true/false flag that it's raining right now, then yes, it would make sense to use it as a rain sensor:
image

If it's tracking the rainfall for totals, no, the juice isn't worth the squeeze. It's similar to some folks that have asked about integrating a moisture sensor.

ET is best left to the forecasts that are there, unless you are looking at professional level ET calcs that are based on actuals. WET-IT is close enough as is. There is an entire bunch of folks above my pay grade that work on evapotranspiration for agriculture that is based on actuals. I'm at the prosumer level. WET-IT just wants to keep the grass green and the tomatoes plump. :wink: Those systems look at satellite data, moisture sensors, and more. Much more involved than what we're going to do on an home automation hub.

FYI—Just before a program runs, WET-IT immediately checks the chosen weather provider for a current check to see if it's raining right now. That takes the place of that, as you said, “plunger-type” device. The really neat exception is for those that are using a Tempest PWS as their wx source. That has a built-in haptic rain sensor that is more accurate than the plunger types. Tempest users can select their PWS as a rain sensor.

I don't have a Tempest (yet), so I rely on the Open-Meteo and NASA to check if it's raining right now. The Rain Bird rain sensor stuck on my rain gutter isn't used. Then again, neither is the ESPme/LNK 2 other than as a bridge between WET-IT and the solenoids. (Oooohh, I like that. Sounds like a 1950s band... I now give you... WET-IT and the Solenoids! :crazy_face: )

1 Like

Hmmm.......When I "run" the "create zone children", it only makes 6 zones even though in the main preferences, I have 10 set as the number of zones.

image

image

To make things weirder.....I can to do a "run zone" in the parent device for zone 10. This runs zone 8.

Zones 1-8 all run the coresponding zones. However if I try to manually run zones 9 and 10, both of those also run zone 8

image

image

Which model Rain Bird controller do you have?

How many stations does the driver recognize?

image