Ambient Weather 2902B


I’m brand new to the community here… I’ve been using openHAB for a short time (weeks) and am loving it. I’m using the WS2902A configuration on my WS2902B weather station. Most of what I need is there, but the WS2902B has the ability to add extra sensors to it, which openHAB isn’t picking up.

I’ve dug into the code some to try and add the WS2902B features, but I’m no developer and I’m not getting it right.

If someone is able to help, I would much appreciate it…either by updating the binding or helping me to edit it myself. the JSON data I’m getting back is here:

2020-11-03 15:18:24.040 [DEBUG] [.handler.AmbientWeatherEventListener] - Listener: Data: {“tempf”:58.3,“batt1”:1,“date”:“2020-11-03T20:18:00.000Z”,“totalrainin”:20.791,“humidity1”:18,“tz”:“America/New_York”,“feelsLikein”:73.4,“lastRain”:“2020-10-30T09:36:00.000Z”,“dewPointin”:46.5,“monthlyrainin”:0,“dailyrainin”:0,“solarradiation”:252.38,“humidityin”:37,“humidity”:36,“maxdailygust”:10.3,“temp1f”:83.3,“uv”:2,“windspeedmph”:2.5,“winddir”:122,“hourlyrainin”:0,“eventrainin”:0,“baromabsin”:28.701,“dewPoint”:31.47,“tempinf”:74.5,“battout”:1,“feelsLike”:58.3,“dateutc”:1604434680000,“windgustmph”:3.4,“macAddress”:“XX:XX:XX:XX:XX:XX”,“feelsLike1”:80.7,“baromrelin”:29.885,“weeklyrainin”:0,“dewPoint1”:35.4}

The items dealing with the additional sensor data are batt1, humidity1 and temp1f. I believe this station can handle up to 8 additional sensors, so it would follow that additional ones would be batt2, batt3, etc…

I can add a 2902B thing type that is the same as the 2902a but also supports 8 remote sensors. It might take me a few days tp get to it. When I’m ready I can post a version for you to try out.

What version of openHAB are you running?

That would be awesome, thank you! I’m on openHAB 2.5.10 release…on CentOS 7 using yum repos if that matters.

I built a version that adds the 2902b that includes 8 remote sensors. You can find it at the link below. Note that you need to uninstall the version you’re running, then drop all these jar files into your addons directory.

Binding and additional jar files located here.

Let me know if you run into any issues. It’s possible I missed something when adding the new station.

I’m able to see my extra sensors and everything is updating just like it should. This is great - thanks a heap!

So I’m still learning how all this goes - with this binding manually installed, when should (could?) I expect this change makes it into the official binding so that I can reinstall from there again? I don’t mind keeping this like it is for as long as I need to, just asking the question to satisfy my own curiosity.

Thanks again!

Great. Glad it works!

Normally, I’d submit the change for inclusion in the 2.5 distribution.

However, I’ve switched my dev environment over to 3.0, so I was only planning to do small bug fixes for 2.5. I’m trying to avoid doing double work… But, since this is a pretty small change, I’ll likely submit for 3.0 and 2.5.

I mean, unless several other folks are dying to have this extra code in 2.5, I’m completely happy using it like it is until 3.0. I’m all about less work for as many folks as possible. :slightly_smiling_face:

Please don’t double your work on my account. I’m very appreciative of what you’ve done to get it working as-is!