Hi, i’m running OH4.2, maybe it’s a compatibility issue (although that never happened to any external jars before).
I tried building it against the 4.2.x branch, this time there was no error in the karaf-check, but the binding isn’t displayed at the UI nonetheless. It shows up fine on the openhab console.
It’s possibly a minor bug that it doesn’t show up, but I don’t have any experience developing and debugging osgi bundles.
The problem here is, i can’t even set the log via the ui, since it is missing in it’s entirety. if i start/stop the bundle via the console, it doesn’t produce any output. starting and stopping works fine
Hm, set it to debug, maybe you will see something?
That’s odd…
Even though you don’t see it on the ui, you could try if you can create a thing via text config. The readme provides an example. I normally use text config.
The <serial> can be found in the app under ‘Registration’. Normally something like ‘BS…’.
Hence, the serial number is used multiple times.
I added the thing and it shows up as “online”, the channels show up, looks good so far. But if I add some items, it logs an exception
Cannot inform the listener "org.openhab.core.thing.internal.ChannelLinkNotifier@74143981" about the "ADDED" event: Cannot invoke "org.openhab.binding.gruenbeckcloud.internal.api.model.DeviceStatistic.getSalt()" because "deviceStatistic" is null
Glad to hear!
The channels should be visible on the thing (possibly advanced). I have given them a reasonably suitable description in the readme.
I personally use the following:
Remaining Capacity: softenerSoftWaterExchangerCapacity1 / softenerResidualCapacity1
Next Reg: softenerNextRegeneration
Reg active: softenerRegenerationActive
Current status: softenerRegenerationProgressDescription
Progress: (softenerRegenerationStatus) * 100
Operation Mode: softenerOperationMode (R/W)
Request Reg: softenerRequestRegeneration (W)
And salt and water usage for statistics.
Thanks for the great binding, just replaced my iobroker-solution by this binding and everything seems to work fine.
Just one thing:
What unit for water hardness do you use?
I configured my SD21 to use unit “ppm” but the values I’m getting in channels gruenbeckcloud:softener:12345:BSXXXXXXXX:psetsoft and gruenbeckcloud:softener:12345:BSXXXXXXXX:prawhard
still come in unit “°dH” (values: 6 and 20) no matter what unit is configured in the softener.
When I look into the gruenbeck app on my cell phone I correctly see these values in ppm (values 356 and 106.8).
Any idea on as to what may be the cause for this (and how to fix it) is highly appreciated!
Hello,
the values are simple numbers without any unit.
The unit implicitly provided by the API is: °dH
If you want to convert it, you will have to do it manually, see: Hardness convertor
6°dH is around 107ppm.
The formula is: ppm = °dH x 17.848
The unites provided by the api are documented in the README.MD