Hi Jan,
Thank you for your binding! I was using some custom script and the exec binding to control mine but I was searching for something more reliable
Iām going to test it soon with my AC.
Do you have also some documentation on the possibile values for those items who can set something on the AC?
For example Win Direction and Wind Speed are read only or you can set some value back to the AC? If itās the lastā¦which are the possible values?
Yes, but I have everything configured via files versioned in git. So maybe You have working thing file?
It should be like "Thing samsungdigitalinverter:sdi:369f82e8 āSamsungACā [ missing_variables ]
Yes, Iāve seen it. And I have working items file (with channels) and sitemap file.
You can setup your OH2 via PaperUI or via files. I prefer files.
According to documentation, in things file should be:
" Thing <binding_id>:<type_id>:<thing_id> āLabelā @ āLocationā [ parameters ] "
So I need the names of parameters , in this case token, ip, port and keystore.
I hit a snag today. Iāve been running the samsungac binding on openHAB2 on my Raspberry Pi without issue all summer, but for some unrelated reason, I upgraded the OS on Raspberry Pi from Ubuntu Mate 16 (LTS) to Ubuntu Mate 18 (LTS). Most things worked fine, including openHAB as a whole, but the binding now fails when I try to command my ACs.
Excrept from the log file:
2019-10-21 21:34:30.137 [WARN ] [org.apache.karaf.services.eventadmin] - EventAdmin: Exception during event dispatch [org.osgi.service.event.Event [topic=openhab/command/acLivingAuto] {item=acLivingAuto, bridgemarker=true, command=ON, timestamp=1571682870131} | {org.osgi.service.event.EventHandler, org.osgi.service.cm.ManagedService}={service.id=358, service.bundleid=199, service.scope=bundle, event.topics=openhab/*, service.pid=org.openhab.samsungac, component.name=org.openhab.binding.samsungac.activebinding, component.id=216} | Bundle(org.openhab.binding.samsungac_1.13.0 [199])]
java.lang.NoClassDefFoundError: Could not initialize class org.apache.commons.ssl.TrustMaterial
at org.apache.commons.ssl.SSL.<init>(SSL.java:166) ~[?:?]
at org.apache.commons.ssl.SSLClient.<init>(SSLClient.java:59) ~[?:?]
at org.openhab.binding.samsungac.internal.AirConditioner.connect(AirConditioner.java:282) ~[?:?]
at org.openhab.binding.samsungac.internal.AirConditioner.login(AirConditioner.java:76) ~[?:?]
at org.openhab.binding.samsungac.internal.AirConditioner.writeLine(AirConditioner.java:238) ~[?:?]
at org.openhab.binding.samsungac.internal.AirConditioner.sendCommand(AirConditioner.java:332) ~[?:?]
at org.openhab.binding.samsungac.internal.SamsungAcBinding.sendCommand(SamsungAcBinding.java:136) ~[?:?]
at org.openhab.binding.samsungac.internal.SamsungAcBinding.internalReceiveCommand(SamsungAcBinding.java:90) ~[?:?]
Reading about the exception itself (Could not initialize class org.apache.commons.ssl.TrustMaterial) it seems like a library is missing (not-yet-commons-ssl)
Iāve tried a lot of things:
installed libnot-yet-commons-ssl as a .deb package in ubuntu mate (it was in the official repositories for Ubuntu Mate 16 but not for 18ā¦)
uninstalled the binding and reinstalled it
ran openhab-cli clean-cache
To no avail. Iāve looked in the logs and it seems there is a not-yet-commons-ssl library installed within openhab:
And of course everything was working fine before updating Ubuntu (fortunately I have a backup which I might just go to if I canāt fix this).
Maybe OpenHAB picked up a newer version of the lib which does not have that class anymore (documentation seems to mention version 0.3.6 or 0.3.9 - this is version 0.3.11.1ā¦)
Hi,
It was working quiet well until nowā¦
I get this error every couple of minutes
java.lang.ArithmeticException: Division undefined
at java.math.BigDecimal.divide(BigDecimal.java:1667) ~[?:?]
at org.openhab.binding.samsungdigitalinverter.handler.SamsungDigitalInverterHandler.lambda$0(SamsungDigitalInverterHandler.java:181) ~[?:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
at java.lang.Thread.run(Thread.java:748) [?:?]
Does anyone got it working with a 2.5 environment? I tried to test it on a Milestone some time ago without successā¦Iām afraid to lose it with the upcoming 2.5 stable.