sibbi77 / openhab2-addons

Add-ons for openHAB 3.x
Eclipse Public License 2.0
0 stars 0 forks source link

OH 3 integration #2

Closed Graefer closed 3 years ago

Graefer commented 3 years ago

Hi, thank you very much for this addon (may be the most important for me). I just updated from OH 2 to OH 3, missing this add on desperately, now. I put org.openhab.binding.ecotouch-3.0.0.jar in /usr/share/openhab/addons but still not visible in the OH 3 UI. Any idea what I can do to make your add on work with OH 3? Thank you!

sibbi77 commented 3 years ago

You should now be able to add a thing. Go to Settings/Things: grafik press the blue "+" in lower right corner: grafik you should now be able to add the thing: grafik If this does not work, get back to me, then we need to check the log file.

Graefer commented 3 years ago

Fixed permissions with openhabian-config and did a reboot. Still no Ecotouch binding or thing visible to add. Any help?

sibbi77 commented 3 years ago

I'm sorry, I've no Raspberry Pi to test on. I've reinstalled my docker based openhab-3.0.0 with clean folders and copied the binding into the addons folder. It took some time (approx 60 s), but then it worked like I've described above.

sibbi77 commented 3 years ago

btw. on my system the addons folder is here: /openhab/addons

sibbi77 commented 3 years ago

please try the new pre-release: https://github.com/sibbi77/openhab2-addons/releases/tag/ecotouch-3.0.0-2

Graefer commented 3 years ago

No success. Probably due to my incompetence concerning OH3.

Graefer commented 3 years ago

Do you know when your add on will officially be merged in OH3?

sibbi77 commented 3 years ago

I did not yet file a merge request. I wanted to wait until all the major problems have been solved. And the documentation has to be improved before the merge (this one: https://github.com/sibbi77/openhab2-addons/blob/ecotouch-3.0.0/bundles/org.openhab.binding.ecotouch/README.md). I expect the merge to happen not before mid February.

Graefer commented 3 years ago

Ok, finally managed it by downloading the jar with 'wget' instead of copying it from my pc (so it was probably a permission issue). In OH3 the thing is labelled "online". Great! However, I do not get any data, everything is NULL. The items are defined with a text file, e.g. Number:Temperature HeatPump_Temperature_aussen24h "Wärmepumpe Außentemperatur 24h [%.1f °C]" <temperature> {channel="ecotouch:geo:460cc18ef3:temperature_outside_24h" } Any help?

sibbi77 commented 3 years ago

Are you sure, the id of your thing is 460cc18ef3? I've tested your line and it works for me: grafik

Graefer commented 3 years ago

Thank you for trying. Yes, I think so, the ID is correct. image

The log is warning: java.lang.NoSuchMethodError: 'org.openhab.binding.ecotouch.internal.EcoTouchTags[] org.openhab.binding.ecotouch.internal.EcoTouchTags.values()' at org.openhab.binding.ecotouch.internal.EcoTouchHandler.lambda$1(EcoTouchHandler.java:184) ~[?:?]

Buerius commented 3 years ago

Hey, thank for writing the binding. Also for me, it would be one of the most important ones ;-). But unfortunately I have the same issue. The thing state change to online, but the value of the items is null. I tried to add items with text files and direct in openhab. But the result ist the same. Any idea?

Waterkotte

sibbi77 commented 3 years ago

there is a new build from upstream: https://openhab.jfrog.io/artifactory/libs-pullrequest-local/org/openhab/addons/bundles/org.openhab.binding.ecotouch/3.1.0-SNAPSHOT/org.openhab.binding.ecotouch-3.1.0-SNAPSHOT.jar can you try that one?

Buerius commented 3 years ago

Thank a lot. The update solved the issue!

Waterkotte2

Graefer commented 3 years ago

Yes, 3.1.0 works! Thanks!