Hi Hilbrand
I looked into openhab addon developement today and I believe it would be doable for me to pick up your work. Just want to make sure no one else is working on it at the same time.
Do you know if anyone started on it already?
Hello,
as I really really wanted to move to OH3 I found a workaround by installing NodeRed. So now I can also obtain the values from my luxtronik via NodeRed.
I basically followed this example here: Loxforum Luxtronic
A rather simple flow that actually works - yet… I have another container running in my RasPi Docker…
After you copied the file to the add-on directory you should be able to add a Luxtronic Thing by pressing + in the Thing dialog.
The binding will not appear in the list of bindings.
Hm. I actually started doing a reimplementation of the novelanheatpump binding a couple of days ago. Didn’t check this post the last days, but at least when I started no one was already working on it. Didn’t mention that here earlier, as I actually didn’t do any Java in the last 20 years, so wasn’t sure how far I would get
Nevertheless I have meanwhile written most parts of the binding. The names of available channels actually completely differs from those of the original plugin, as I use the names that are used by the Java Applet, the internal heatpump webserver serves.
I still had some stuff on my TODO for the implementation, but it is already working correctly on my local environment.
Not sure if it makes sense to create another PR for the same binding.
@ChaosKid42 did you plan to further improve your PR with additional channels or features? Let me know if it makes sense to further work on my implementation. Be happy to provide a PR if useful.
If anyone else is interested you can find my implementation here:
Hi ChaosKid42,
first of all, thanks a lot for your binding.
But I the Luxtronik Thing go in Status OFFLINE on my OH3.0.0 with follow Debug Info
2021-01-02 22:13:08.009 [DEBUG] [luxtronik.internal.HeatpumpConnector] - Heatpump connect
2021-01-02 22:13:08.113 [DEBUG] [.luxtronik.internal.LuxtronikHandler] - Unexpected error for thing luxtronik:heatpump:4b9b29e0fa
java.lang.ArrayIndexOutOfBoundsException: Index 182 out of bounds for length 174
at org.openhab.binding.luxtronik.internal.LuxtronikHandler.refresh(LuxtronikHandler.java:463) [bundleFile:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) [?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
at java.lang.Thread.run(Thread.java:834) [?:?]
@sgiehl It’s a pity that multiple people started on this roughly at the same time. I did not plan to add more channels to it although I made the approach of the plugin much more generic today in order to make it easy to add new stuff.
I looked at your code and I like your approach which to me seems to be completely different from mine (encoding the types in all those enums vs. using a bunch of maps). Your aproach seems to be quite sophisticated.
So in the end I wouldn’t mind you from continuing your work if you like. As your version of the addon seems to me more complete I might simply close my PR after you submitted yours.
Regerads,
I uploaded a new version of the plugin some minutes ago. Please try this one. As there’s now a bounds check in place I believe your probem is probably fixed.
Guess it can be downloaded from the build artifact server here: JFrog
Btw. Which kind of heat pump do you have? I’m only able to test with a heat pump that has capabilites for heating and hot water. I’m not able to say if everything works proper for heat pumps with capabilities for cooling, ventilation or swimming pool.