I’m running a Balboa-based hot tub and using the Balboa-Binding as uploaded AddOn org.openhab.binding.balboa-3.2.0-SNAPSHOT.jar works - in theory.
What I’m experiencing are outages of the binding not able to retrieve information or send them. I’m not sure, if this is due to the balboa wifi-module being instable (and from what I read quite hastily and buggy written) or if it’s to do with something the binding sends, which breaks the Balboa controller.
Either way, there is some interesting discussion (Issue #110, Issue #109) around this on the python module. Especially in environments with range extenders, WiFi Mesh,… (which I do have):
So my question is this: anyone around with enough skills to both bump the binding to OH5 architecture and implementing the improvements found on the python module? If I understand their progress correctly, there’s three main parts of improvement, which I think aren’t already in the current 3.2 binding:
Defensive parsing of variable-length messages: From what I read, the binding processes the messages from the Balboa controller in a fixed size of “expected 34” length. But the length can differ and the response not always is exactly 34 characters ( Balboa Binding - Add-ons / Bindings - openHAB Community), which seems to be fixed (or was already handled with dynamic lengths) in pybalboa
Additional message types: There’s some more information available like some information on the module and its configuration, and filter cycles, error log, etc: would be nice to have them also available (Home · ccutrer/balboa_worldwide_app Wiki)
Is there a chance to get this on track?
I can’t code unfortunately…
It’s more or less trivial to get this up and running as a HABApp Rule.
If you can’t do it yourself you can always ask some KI to help and you should be able to produce something working.
I know it’s not what your are asking for but at least that way you can continue using your appliance together with openHAB.
I had to do the same when interfacing my solar inverters since modbus was broken.
Yes, I could run pybalboa in parallel in integrate it, but I’d be happy to be testing a OH5-port of the Balboa-binding - to avoid having all that clutterish architecture to maintain!
@binderth: I gave it a try with claude and to my surprise it seems to work.
Caution: It’s AI generated, the code was not manually reviewed, only the function has been tested. If you have problems with AI generated code please don’t use it.
port to OH 5.2.1
Auto-discovery: the binding can now find Balboa Wi-Fi modules on the local network (Inbox → Scan). Things can still be added manually
Smarter reconnect: reconnect attempts now back off exponentially (instead of retrying at a fixed interval forever) after a disconnect.
Dead-connection detection: if the Wi-Fi module disappears without properly closing the connection (e.g. loses power), the binding notices and reconnects automatically instead of showing ONLINE indefinitely.
More accurate status reporting: a temporarily unreachable unit is now shown as OFFLINE with a proper reason, instead of a misleading configuration-error state.
Installation Download jar and drop it into your openHAB `addons` folder.
Here you can find the current beta2:
Some feedback if it works for you (or not) would be welcome. @clinophobic : Maybe you’re still interessted too.
HI I have ported the python code to js to work with my ethernet to rs485 adapters no wifi connection, this code wait for complete data meassages and throw the others. Reacts super fast and works good for all of this summer anyhow. A little bit updated, maybe this could give som inspiration.
have you tested my above port? Till now it’s working without problems in my setup. The network failures (I always had about 2/day with the old binding) are gone. And it’s reacting much faster too.
just came home and dropped the JAR (org.openhab.binding.balboa-5.2.1-beta2.jar). As of now: everything works without an error.
What I did a month ago: placed a (temporary) access point near the hot tub, which increased stability. I only have 2 weeks worth of persistence for this item, but before there was more “blue” intervals!
but still there’s the typical 00:59h dropouts. (network binding with ping on the wifi-module)