Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HomeMatic Binding #88

Closed
gerrieg opened this issue Dec 26, 2014 · 62 comments
Closed

HomeMatic Binding #88

gerrieg opened this issue Dec 26, 2014 · 62 comments
Labels
new binding If someone has started to work on a binding. For a new binding PR.

Comments

@gerrieg
Copy link
Contributor

gerrieg commented Dec 26, 2014

will start after the completion of Astro Binding

@gerrieg
Copy link
Contributor Author

gerrieg commented Dec 26, 2014

@kaikreuzer
can't add labels, please add newbinding to HomeMatic and Astro issue, thanks.

Best, Gerhard

@kaikreuzer kaikreuzer added the new binding If someone has started to work on a binding. For a new binding PR. label Dec 26, 2014
@fluidblue
Copy link

@gerrieg Are you still working on the HomeMatic binding?

@gerrieg
Copy link
Contributor Author

gerrieg commented Feb 9, 2015

Yes, the main part is done and it works basically. Now i'm testing, bugfixing, optimizing...

@fluidblue
Copy link

Very nice!
I am looking forward to using it.

Will the binding support Homegear, like the binding for openHAB v1 did?

@gerrieg
Copy link
Contributor Author

gerrieg commented Feb 10, 2015

Yes, it will have all the features as the existing v1 binding.

@itn3rd77
Copy link

@gerrieg Hi Gerhard any progress with the binding or alpha version we can play with?

@gerrieg
Copy link
Contributor Author

gerrieg commented Apr 27, 2015

not yet, i had two longer vacations and finished the Astro binding. But now i am going to continue with the Homematic binding.

@matthewatdiferit
Copy link

Hi All,

I'm quite excited about getting a real OpenHAB 2 binding for Homematic running. I've downloaded the fork, and built it, (and some may notice that I've cross posted on the new OpenHAB forum and old mailing list as well as this). However, I'm getting some funny errors in my logs about a -32601 : Requested method not found. (sending getAllScripts().

I'm having trouble attaching things, so I've uploaded my log file to this URL, does this make sense to anyone? (I'm running Homegear on Pi, and OpenHAB 2 on OS X)....

http://www.heimatt.io/uploads/section.log

best,
matt

@gerrieg
Copy link
Contributor Author

gerrieg commented Aug 14, 2015

Hi Matt!

This version was only a basis for a discussion with the openHab team. It does NOT work! I will delete the branch to avoid confusion.

The status of the binding today:
I rewrote the binding from scratch for OH2 in the last three weeks. It has all the features from 1.x plus support for the MASTER parameters. So you can display/control the settings of your devices too.
Homegear with Bridge/Thing discovery is working already, now i am adding CCU support.

I will announce it if it's ready for public testing.

Best,
Gerhard

@abrancato
Copy link

Hi, where can I get the openhab2 homematic binding please? I have openhab2 and homematic (CCU2) in place and really want to test it. I'm willing to reporting on my findings ;)

@sja
Copy link

sja commented Sep 21, 2015

You have to checkout https://github.com/gerrieg/openhab2.git and change to homematic branch. There you'll find the code. I think you can do a mvn clean install to get the neccessary jar you can test with.

@abrancato
Copy link

Thank you sja. I found it (branch:homematic / openhab2 / addons / binding / org.openhab.binding.homematic).
As I'm fairly new to openhab,- could you give me a kick-start on how to compile the necessary jar file from what I see on git? Thank you so much.

@patrickse
Copy link

I´ve just tried the extension and it looks really promising. The scanning for devices works quite well.

So that´s why did to get it up and running

git clone https://github.com/gerrieg/openhab2.git
cd openhab2
git checkout homematic
mvn clean install
cd distribution
cd target
unzip distribution-2.0.0-SNAPSHOT-runtime.zip
unzip distribution-2.0.0-SNAPSHOT-addons.zip

And that's it. The next step is to configure the homematic bridge as a thing and then the magic starts and all these Things popup in the Setup dialog. :)

Hope that helps.

Patrick

@gerrieg
Copy link
Contributor Author

gerrieg commented Sep 22, 2015

Hi!

I just pushed some changes to my repository and i think the binding is ready now for public testing. Binding is complete, only bugfixing and optimizing.

You can also compile the binding from my repository as Patrick has described.

I mentioned in the docs, that the binding has a gateway type autodetection. But i don't know, if the autodetection works with a CCU1. It would be great, if a CCU1 user can start the binding and check the 'HmGatewayInfo' logentry. If you see type=CCU, autodetection works. Otherwise please switch the binding to trace mode, start openHAB2 and send me the logfile. With the tracelog, i can quickly fix it.

Regards,
Gerhard

@patrickse
Copy link

👍

@abrancato
Copy link

I always get stuck on "openHAB Core 1.x Compatibility Layer" - see below.
What am I doing wrong?


mvn -version
  Apache Maven 3.0.4
  Maven home: /usr/share/maven
  Java version: 1.6.0_27, vendor: Sun Microsystems Inc.
  Java home: /usr/lib/jvm/java-6-openjdk-amd64/jre
  Default locale: en_US, platform encoding: ANSI_X3.4-1968
  OS name: "linux", version: "3.2.0-4-amd64", arch: "amd64", family: "unix"

git clone https://github.com/gerrieg/openhab2.git
cd openhab2
git checkout homematic
mvn clean install
...

[INFO] openHAB ........................................... SUCCESS [0.259s]
[INFO] openHAB Add-ons ................................... SUCCESS [0.012s]
[INFO] openHAB Bindings .................................. SUCCESS [0.018s]
[INFO] Astro Binding ..................................... SUCCESS [3.503s]
[INFO] Autelis Binding ................................... SUCCESS [0.904s]
[INFO] AVM FRITZ! Binding ................................ SUCCESS [1.764s]
[INFO] openHAB Bundles ................................... SUCCESS [0.021s]
[INFO] openHAB Core Components ........................... SUCCESS [0.025s]
[INFO] openHAB Core 1.x Compatibility Layer .............. FAILURE [1.811s]
[INFO] Freebox Binding ................................... SKIPPED
[INFO] HDanywhere Binding ................................ SKIPPED
[INFO] Homematic Binding ................................. SKIPPED
[INFO] IPP Binding ....................................... SKIPPED
...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------

@kaikreuzer
Copy link
Member

Simple: You are not using Java 7 or above!

@abrancato
Copy link

Thanks Kai, that was the issue. So I was able to build and run it on my pi, but homematic won't appear as a binding in the UI - even though the jar (org.openhab.binding.homematic-1.7.0.jar) is in place in the /addons directory... dummguck

@kaikreuzer
Copy link
Member

You noticed that this discussion is about openHAB 2 (and hence the Homematic binding 2.0 and not 1.7)?

@abrancato
Copy link

Yes, but that's what I get when I clone and build "https://github.com/gerrieg/openhab2.git" like described by patrickse above... no 2.0 binding for homematic... sorry if I'm missing something obvious.

@kaikreuzer
Copy link
Member

Yes, you are missing #88 (comment).

@abrancato
Copy link

It sounds strange, but after redoing the whole thing on another system it's there now - you have to love PC deterministics ;)
Thank you so much for the support and this great community - I'll work hard to become an openHAB(2) pro and contribute...


root@appengine-java ~# git clone https://github.com/gerrieg/openhab2.git
Cloning into 'openhab2'...
remote: Counting objects: 9597, done.
remote: Compressing objects: 100% (111/111), done.
remote: Total 9597 (delta 57), reused 0 (delta 0), pack-reused 9455
Receiving objects: 100% (9597/9597), 10.03 MiB | 3.88 MiB/s, done.
Resolving deltas: 100% (4236/4236), done.
root@appengine-java ~# cd openhab2/
root@appengine-java ~/openhab2# git checkout homematic
Branch homematic set up to track remote branch homematic from origin.
Switched to a new branch 'homematic'
root@appengine-java ~/openhab2# mvn clean install
[INFO] Scanning for projects...
...snip...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] openHAB ........................................... SUCCESS [0.359s]
[INFO] openHAB Add-ons ................................... SUCCESS [0.018s]
[INFO] openHAB Bindings .................................. SUCCESS [0.017s]
[INFO] Astro Binding ..................................... SUCCESS [3.180s]
[INFO] Autelis Binding ................................... SUCCESS [0.717s]
[INFO] AVM FRITZ! Binding ................................ SUCCESS [1.203s]
[INFO] openHAB Bundles ................................... SUCCESS [0.031s]
[INFO] openHAB Core Components ........................... SUCCESS [0.020s]
[INFO] openHAB Core 1.x Compatibility Layer .............. SUCCESS [2.691s]
[INFO] Freebox Binding ................................... SUCCESS [1.037s]
[INFO] HDanywhere Binding ................................ SUCCESS [0.460s]
[INFO] Homematic Binding ................................. SUCCESS [1.857s]
[INFO] IPP Binding ....................................... SUCCESS [0.385s]
[INFO] Keba Binding ...................................... SUCCESS [0.400s]
[INFO] MAX! Binding ...................................... SUCCESS [0.587s]
[INFO] MAX! Binding Tests ................................ SUCCESS [9.670s]
[INFO] Network Binding ................................... SUCCESS [0.318s]
[INFO] openHAB I/O Components ............................ SUCCESS [0.009s]
[INFO] openHAB Serial Transport .......................... SUCCESS [0.065s]
[INFO] PioneerAvr Binding ................................ SUCCESS [0.465s]
[INFO] Pulseaudio Binding ................................ SUCCESS [0.513s]
[INFO] Sonos Binding ..................................... SUCCESS [0.627s]
[INFO] SqueezeBox Binding ................................ SUCCESS [0.470s]
[INFO] Tesla Binding ..................................... SUCCESS [0.770s]
[INFO] Vitotronic Binding ................................ SUCCESS [0.381s]
[INFO] openHAB Core ...................................... SUCCESS [0.345s]
[INFO] openHAB I/O Add-Ons ............................... SUCCESS [0.008s]
[INFO] my.openHAB Connection Service ..................... SUCCESS [0.412s]
[INFO] openHAB UI Components ............................. SUCCESS [0.013s]
[INFO] openHAB Dashboard UI .............................. SUCCESS [0.276s]
[INFO] openHAB UI Add-Ons ................................ SUCCESS [0.009s]
[INFO] openHAB Classic UI Dashboard Integration .......... SUCCESS [0.239s]
[INFO] openHAB Paper UI Theme Fragment ................... SUCCESS [0.247s]
[INFO] openHAB Initializer ............................... SUCCESS [0.216s]
[INFO] openHAB Core 1.x Compatibility Layer Tests ........ SUCCESS [8.753s]
[INFO] openHAB Jetty ..................................... SUCCESS [0.048s]
[INFO] openHAB REST API Documentation .................... SUCCESS [0.364s]
[INFO] openHAB Classic Iconset ........................... SUCCESS [0.622s]
[INFO] openHAB Features .................................. SUCCESS [0.008s]
[INFO] openHAB Dependencies .............................. SUCCESS [0.397s]
[INFO] openHAB Runtime ................................... SUCCESS [0.130s]
[INFO] openHAB Products .................................. SUCCESS [0.009s]
[INFO] openHAB Runtime Application ....................... SUCCESS [16.931s]
[INFO] openHAB P2 Repository ............................. SUCCESS [5.339s]
[INFO] openHAB Target Platform ........................... SUCCESS [0.104s]
[INFO] openHAB Distribution .............................. SUCCESS [12.926s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2:08.071s
[INFO] Finished at: Wed Sep 23 15:09:53 UTC 2015
[INFO] Final Memory: 77M/199M
[INFO] ------------------------------------------------------------------------
Cleaning up unclosed ZipFile for archive /root/openhab2/products/org.openhab.product.runtime/target/products/org.openhab.product.runtime-win32.win32.x86.zip
Cleaning up unclosed ZipFile for archive /root/openhab2/products/org.openhab.product.runtime/target/products/org.openhab.product.runtime-win32.win32.x86.zip
Cleaning up unclosed ZipFile for archive /root/openhab2/products/org.openhab.product.runtime/target/products/org.openhab.product.runtime-win32.win32.x86.zip

...snip...

unzip distribution-2.0.0-SNAPSHOT-runtime.zip
unzip distribution-2.0.0-SNAPSHOT-addons.zip
...snip...

cd addons/
root@raspberrypi:/opt/openhab2/addons# ls
org.eclipse.smarthome.binding.hue-0.8.0-20150922.221826-288.jar
org.eclipse.smarthome.binding.lifx-0.8.0-20150922.221921-218.jar
org.eclipse.smarthome.binding.wemo-0.8.0-20150922.221916-251.jar
org.eclipse.smarthome.binding.yahooweather-0.8.0-20150922.221912-286.jar
org.openhab.action.mail-1.8.0-20150922.010008-81.jar
org.openhab.action.pushover-1.8.0-20150922.010008-81.jar
org.openhab.action.xbmc-1.8.0-20150922.010008-81.jar
org.openhab.action.xmpp-1.8.0-20150922.010008-81.jar
org.openhab.binding.anel-1.8.0-20150922.010008-79.jar
org.openhab.binding.astro-2.0.0-SNAPSHOT.jar
org.openhab.binding.autelis-2.0.0-SNAPSHOT.jar
org.openhab.binding.avmfritz-2.0.0-SNAPSHOT.jar
org.openhab.binding.denon-1.8.0-20150922.010008-79.jar
org.openhab.binding.energenie-1.8.0-20150922.010008-79.jar
org.openhab.binding.enocean-1.8.0-20150922.010008-80.jar
org.openhab.binding.epsonprojector-1.8.0-20150922.010008-80.jar
org.openhab.binding.exec-1.8.0-20150922.010008-81.jar
org.openhab.binding.freebox-2.0.0-SNAPSHOT.jar
org.openhab.binding.freeswitch-1.8.0-20150922.010008-79.jar
org.openhab.binding.fs20-1.8.0-20150922.010008-79.jar
org.openhab.binding.hdanywhere-2.0.0-SNAPSHOT.jar
org.openhab.binding.heatmiser-1.8.0-20150922.010008-80.jar
org.openhab.binding.homematic-2.0.0-SNAPSHOT.jar
org.openhab.binding.http-1.8.0-20150922.010008-80.jar
org.openhab.binding.ihc-1.8.0-20150922.010008-80.jar
org.openhab.binding.insteonplm-1.8.0-20150922.010008-79.jar
org.openhab.binding.ipp-2.0.0-SNAPSHOT.jar
org.openhab.binding.keba-2.0.0-SNAPSHOT.jar
org.openhab.binding.knx-1.8.0-20150922.010008-81.jar
org.openhab.binding.max-2.0.0-SNAPSHOT.jar
org.openhab.binding.milight-1.8.0-20150922.010008-80.jar
org.openhab.binding.modbus-1.8.0-20150922.010008-80.jar
org.openhab.binding.network-2.0.0-SNAPSHOT.jar
org.openhab.binding.nibeheatpump-1.8.0-20150922.010008-80.jar
org.openhab.binding.ntp-1.8.0-20150922.010008-80.jar
org.openhab.binding.onewire-1.8.0-20150922.010008-81.jar
org.openhab.binding.onkyo-1.8.0-20150922.010008-80.jar
org.openhab.binding.openenergymonitor-1.8.0-20150922.010008-79.jar
org.openhab.binding.owserver-1.8.0-20150922.010008-80.jar
org.openhab.binding.pioneeravr-2.0.0-SNAPSHOT.jar
org.openhab.binding.pulseaudio-2.0.0-SNAPSHOT.jar
org.openhab.binding.rfxcom-1.8.0-20150922.010008-80.jar
org.openhab.binding.samsungac-1.8.0-20150922.010008-80.jar
org.openhab.binding.snmp-1.8.0-20150922.010008-80.jar
org.openhab.binding.sonos-2.0.0-SNAPSHOT.jar
org.openhab.binding.squeezebox-2.0.0-SNAPSHOT.jar
org.openhab.binding.swegonventilation-1.8.0-20150922.010008-80.jar
org.openhab.binding.systeminfo-1.8.0-20150922.010008-80.jar
org.openhab.binding.tellstick-1.8.0-20150922.010008-79.jar
org.openhab.binding.tesla-2.0.0-SNAPSHOT.jar
org.openhab.binding.tinkerforge-1.8.0-20150922.010008-81.jar
org.openhab.binding.vitotronic-2.0.0-SNAPSHOT.jar
org.openhab.binding.weather-1.8.0-20150922.010008-81.jar
org.openhab.binding.zwave-1.8.0-20150922.010008-80.jar
org.openhab.io.multimedia.tts.marytts-1.8.0-20150922.010008-79.jar
org.openhab.io.myopenhab-2.0.0-SNAPSHOT.jar
org.openhab.persistence.jpa-1.8.0-20150922.010008-79.jar
org.openhab.persistence.logging-1.8.0-20150922.010008-79.jar
org.openhab.persistence.mysql-1.8.0-20150922.010008-79.jar
org.openhab.persistence.rrd4j-1.8.0-20150922.010008-79.jar
root@raspberrypi:/opt/openhab2/addons#

@patrickse
Copy link

Maybe you missed the checkout homematiccommand.

@belmondo2001
Copy link

I tried the binding and it looks good.
But for some Datapoints i got an Exception


(HM-TC-IT-WM-W-EU)

java.io.IOException: -1 Failure (sending getParamset()
LEQ1214017:2
VALUES)
at org.openhab.binding.homematic.internal.communicator.parser.RpcResponseParser.parse(RpcResponseParser.java:41) ~[bundleFile:na]
at org.openhab.binding.homematic.internal.communicator.client.RpcClient.sendMessage(RpcClient.java:272) ~[bundleFile:na]
at org.openhab.binding.homematic.internal.communicator.client.RpcClient.setChannelDatapointValues(RpcClient.java:146) ~[bundleFile:na]
at org.openhab.binding.homematic.internal.communicator.AbstractHomematicGateway.loadChannelValues(AbstractHomematicGateway.java:409) [bundleFile:na]
at org.openhab.binding.homematic.handler.HomematicThingHandler.updateChannelState(HomematicThingHandler.java:188) ~[bundleFile:na]
at org.openhab.binding.homematic.handler.HomematicThingHandler.updateChannelState(HomematicThingHandler.java:166) ~[bundleFile:na]
at org.openhab.binding.homematic.handler.HomematicBridgeHandler.onStateUpdated(HomematicBridgeHandler.java:231) [bundleFile:na]
at org.openhab.binding.homematic.internal.communicator.AbstractHomematicGateway.eventReceived(AbstractHomematicGateway.java:545) [bundleFile:na]
at org.openhab.binding.homematic.internal.communicator.server.RpcCallbackHandler.handleEvent(RpcCallbackHandler.java:130) [bundleFile:na]
at org.openhab.binding.homematic.internal.communicator.server.RpcCallbackHandler.handleMethodCall(RpcCallbackHandler.java:85) [bundleFile:na]
at org.openhab.binding.homematic.internal.communicator.server.RpcCallbackHandler.handleMethodCall(RpcCallbackHandler.java:99) [bundleFile:na]
at org.openhab.binding.homematic.internal.communicator.server.RpcCallbackHandler.run(RpcCallbackHandler.java:63) [bundleFile:na]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_60]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_60]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_60]


(HM-ES-TX-WM)

MEQ0381392:1
VALUES)
java.io.IOException: -1 Failure (sending getParamset()
MEQ0381392:1
VALUES)
at org.openhab.binding.homematic.internal.communicator.parser.RpcResponseParser.parse(RpcResponseParser.java:41) ~[bundleFile:na]
at org.openhab.binding.homematic.internal.communicator.client.RpcClient.sendMessage(RpcClient.java:272) ~[bundleFile:na]
at org.openhab.binding.homematic.internal.communicator.client.RpcClient.setChannelDatapointValues(RpcClient.java:146) ~[bundleFile:na]
at org.openhab.binding.homematic.internal.communicator.AbstractHomematicGateway.loadChannelValues(AbstractHomematicGateway.java:409) [bundleFile:na]
at org.openhab.binding.homematic.handler.HomematicThingHandler.updateChannelState(HomematicThingHandler.java:188) ~[bundleFile:na]
at org.openhab.binding.homematic.handler.HomematicThingHandler.updateChannelState(HomematicThingHandler.java:166) ~[bundleFile:na]
at org.openhab.binding.homematic.handler.HomematicBridgeHandler.onStateUpdated(HomematicBridgeHandler.java:231) [bundleFile:na]
at org.openhab.binding.homematic.internal.communicator.AbstractHomematicGateway.eventReceived(AbstractHomematicGateway.java:545) [bundleFile:na]
at org.openhab.binding.homematic.internal.communicator.server.RpcCallbackHandler.handleEvent(RpcCallbackHandler.java:130) [bundleFile:na]
at org.openhab.binding.homematic.internal.communicator.server.RpcCallbackHandler.handleMethodCall(RpcCallbackHandler.java:85) [bundleFile:na]
at org.openhab.binding.homematic.internal.communicator.server.RpcCallbackHandler.handleMethodCall(RpcCallbackHandler.java:99) [bundleFile:na]
at org.openhab.binding.homematic.internal.communicator.server.RpcCallbackHandler.run(RpcCallbackHandler.java:63) [bundleFile:na]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_60]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_60]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_60]

Do someone know what's wrong ?

@gerrieg
Copy link
Contributor Author

gerrieg commented Sep 26, 2015

That's difficult to say ... a -1 Failure is like a 'catch all unknown errors'. It happens, when the channel is accessed for the first time and all channel values are loaded.

  • Are the devices working properly with the CCU?
  • Are the exceptions always or only sometimes when the channel is accessed?
  • Can you please switch the binding to trace mode (see readme) and send me the logfile?

I had the same error with a dimmer some time ago, i removed it from the CCU and installed it again and since then it works. With Homegear i never had this problem.

@belmondo2001
Copy link

Hello,

here are the logfile

I hope you can find the problem.

In the ccu2 are no problems.

In the events.log I found followings entries

2015-09-26 22:19:46 - Thing 'homematic:HM-ES-TX-WM:29a37f28:MEQ0381392' has been added.

2015-09-26 22:19:46 - homematic:HM-ES-TX-WM:29a37f28:MEQ0381392' updated: INITIALIZING

2015-09-26 22:19:46 - homematic:HM-ES-TX-WM:29a37f28:MEQ0381392' updated: OFFLINE (HANDLER_MISSING_ERROR)

2015-09-26 22:20:02 - homematic:HM-ES-TX-WM:29a37f28:MEQ0381392' updated: ONLINE

2015-09-26 22:20:10 - homematic:HM-ES-TX-WM:29a37f28:MEQ0381392' updated: OFFLINE (COMMUNICATION_ERROR): -1 Failure (sending getParamset()

2015-09-26 22:20:28 - homematic:HM-ES-TX-WM:29a37f28:MEQ0381392' updated: ONLINE

2015-09-26 22:27:48 - Thing 'homematic:HM-ES-TX-WM:29a37f28:MEQ0381392' has been added.

2015-09-26 22:27:48 - homematic:HM-ES-TX-WM:29a37f28:MEQ0381392' updated: INITIALIZING

2015-09-26 22:27:48 - homematic:HM-ES-TX-WM:29a37f28:MEQ0381392' updated: OFFLINE (HANDLER_MISSING_ERROR)

2015-09-26 22:28:00 - homematic:HM-ES-TX-WM:29a37f28:MEQ0381392' updated: ONLINE

2015-09-26 22:28:07 - homematic:HM-ES-TX-WM:29a37f28:MEQ0381392' updated: OFFLINE (COMMUNICATION_ERROR): -1 Failure (sending getParamset()

2015-09-26 22:28:13 - homematic:HM-ES-TX-WM:29a37f28:MEQ0381392' updated: ONLINE

Von: Gerhard R. [mailto:notifications@github.com]
Gesendet: Samstag, 26. September 2015 19:48
An: openhab/openhab2
Cc: belmondo2001
Betreff: Re: [openhab2] HomeMatic Binding (#88)

That's difficult to say ... a -1 Failure is like a 'catch all unknown errors'. It happens, when the channel is accessed for the first time and all channel values are loaded.

  • Are the devices working properly with the CCU?
  • Are the exceptions always or only sometimes when the channel is accessed?
  • Can you please switch the binding to trace mode (see readme) and send me the logfile?

I had the same error with a dimmer some time ago, i removed it from the CCU and installed it again and since then it works. With Homegear i never had this problem.


Reply to this email directly or view it on GitHub #88 (comment) .Das Bild wurde vom Absender entfernt.

@belmondo2001
Copy link

I removed the :HM-ES-TX-WM from ccu2 und install it again.
Same Error

@gerrieg
Copy link
Contributor Author

gerrieg commented Sep 30, 2015

@belmondo2001
can you please try the new compiled binding or build it from my repository

@belmondo2001
Copy link

The problem still occurs.

2015-10-02 19:57:07.609 [ERROR] [.o.b.h.h.HomematicThingHandler] - -1 Failure (sending getParamset()

MEQ0381392:1

VALUES)

org.openhab.binding.homematic.internal.communicator.client.UnknownRpcFailureException: -1 Failure (sending getParamset()

MEQ0381392:1

VALUES)

    at org.openhab.binding.homematic.internal.communicator.parser.RpcResponseParser.parse(RpcResponseParser.java:44) ~[bundleFile:na]

    at org.openhab.binding.homematic.internal.communicator.client.RpcClient.sendSocketMessage(RpcClient.java:283) ~[bundleFile:na]

    at org.openhab.binding.homematic.internal.communicator.client.RpcClient.sendSocketMessage(RpcClient.java:296) ~[bundleFile:na]

    at org.openhab.binding.homematic.internal.communicator.client.RpcClient.sendSocketMessage(RpcClient.java:296) ~[bundleFile:na]

    at org.openhab.binding.homematic.internal.communicator.client.RpcClient.sendMessage(RpcClient.java:270) ~[bundleFile:na]

    at org.openhab.binding.homematic.internal.communicator.client.RpcClient.setChannelDatapointValues(RpcClient.java:149) ~[bundleFile:na]

    at org.openhab.binding.homematic.internal.communicator.AbstractHomematicGateway.loadChannelValues(AbstractHomematicGateway.java:406) [bundleFile:na]

    at org.openhab.binding.homematic.handler.HomematicThingHandler.updateChannelState(HomematicThingHandler.java:194) ~[bundleFile:na]

    at org.openhab.binding.homematic.handler.HomematicThingHandler.updateChannelState(HomematicThingHandler.java:172) ~[bundleFile:na]

    at org.openhab.binding.homematic.handler.HomematicBridgeHandler.onStateUpdated(HomematicBridgeHandler.java:223) [bundleFile:na]

    at org.openhab.binding.homematic.internal.communicator.AbstractHomematicGateway.eventReceived(AbstractHomematicGateway.java:526) [bundleFile:na]

    at org.openhab.binding.homematic.internal.communicator.server.RpcCallbackHandler.handleEvent(RpcCallbackHandler.java:129) [bundleFile:na]

    at org.openhab.binding.homematic.internal.communicator.server.RpcCallbackHandler.handleMethodCall(RpcCallbackHandler.java:84) [bundleFile:na]

    at org.openhab.binding.homematic.internal.communicator.server.RpcCallbackHandler.handleMethodCall(RpcCallbackHandler.java:98) [bundleFile:na]

    at org.openhab.binding.homematic.internal.communicator.server.RpcCallbackHandler.run(RpcCallbackHandler.java:62) [bundleFile:na]

Von: Gerhard R. [mailto:notifications@github.com]
Gesendet: Mittwoch, 30. September 2015 22:28
An: openhab/openhab2
Cc: belmondo2001
Betreff: Re: [openhab2] HomeMatic Binding (#88)

@belmondo2001 https://github.com/belmondo2001
can you please try the new compiled binding https://drive.google.com/open?id=0Bw7zjCgsXYnHUUc2R3ZnMURibEE or build it from my repository


Reply to this email directly or view it on GitHub #88 (comment) .Das Bild wurde vom Absender entfernt.

@gerrieg
Copy link
Contributor Author

gerrieg commented Oct 3, 2015

really strange ... either it's a bug in the firmware or a undocumented 'feature'.

Based on my tests i think the gateway communicates with the device when i call the method from the API. If the communication fails, i get the -1 failure. I've tested with different distances between the device and gateway. If the device is within ~50cm, i get the failure very often. If i put the device furter away, the failure does not occur.

In the last binding version i've posted, i've implemented a workaround (beside other changes). If the gateway returns this failure, the call will be executed again 3x with 500ms delay. This always works in my tests, if the first call fails, the second works flawlessly (and the third is for safety).

But i think i have to implement another workaround to fallback to a TclRega script if the gateway is a CCU 😕

@gerrieg
Copy link
Contributor Author

gerrieg commented Oct 4, 2015

I found another way to extract the datapoint values with the API if there is a -1 Failure. This is my last attempt before i implement the TclRega script workaround.

Again, either compile it from my repo or dowload a compiled version
You need to update OH2 too because of the these changes: eclipse-archived/smarthome@6342457

Thanks for testing!

@belmondo2001
Copy link

Now the missing Datapoints are found. I can see the missing in the events.log.

But I must back to my old Version, because openhab2 don’t show me any things in the Paper UI (Config/things) after I start the homematic binding.

I had update the runtime to the last version.

I don’t know whats my mistake in my Configuration.

Von: Gerhard R. [mailto:notifications@github.com]
Gesendet: Sonntag, 4. Oktober 2015 14:20
An: openhab/openhab2
Cc: belmondo2001
Betreff: Re: [openhab2] HomeMatic Binding (#88)

I found another way to extract the datapoint values with the API if there is a -1 Failure. This is my last attempt before i implement the TclRega script workaround.

Again, either compile it from my repo or dowload a compiled version https://drive.google.com/file/d/0Bw7zjCgsXYnHMXliMFM2RWllb0k/view?usp=sharing
You need to update OH2 too because of the these changes: eclipse/smarthome@ eclipse-archived/smarthome@6342457 6342457

Thanks for testing!


Reply to this email directly or view it on GitHub #88 (comment) .Das Bild wurde vom Absender entfernt.

@gerrieg
Copy link
Contributor Author

gerrieg commented Oct 7, 2015

great news! With the workaround i'm still 100% API compliant!

You can try to delete all three storage.* files in the folder $CONFIG_ROOT/userdata/mapdb/. This is the folder where PaperUI saves it's config.

@belmondo2001
Copy link

Yes.

The Values are transmitted, but

In the event.log I see many changes von online to offline.

2015-10-07 18:05:24 - homematic_HM_TC_IT_WM_W_EU_47ff326c_LEQ1214011_V_1_HUMIDITY updated to 66

2015-10-07 18:05:24 - 'homematic:HM-TC-IT-WM-W-EU:47ff326c:LEQ1214011' updated: OFFLINE (COMMUNICATION_ERROR): -1 Failure (sending getValue()

LEQ1214011:2

PARTY_MODE_SUBMIT)

2015-10-07 18:05:24 - 'homematic:HM-TC-IT-WM-W-EU:47ff326c:LEQ1214011' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): -1 Failure (sending getValue()

LEQ1214011:2

PARTY_MODE_SUBMIT)

2015-10-07 18:05:24 - homematic_HM_TC_IT_WM_W_EU_47ff326c_LEQ1214011_V_0_RELOAD_FROM_GATEWAY updated to OFF

2015-10-07 18:05:24 - 'homematic:HM-TC-IT-WM-W-EU:47ff326c:LEQ1214011' updated: ONLINE

2015-10-07 18:05:24 - 'homematic:HM-TC-IT-WM-W-EU:47ff326c:LEQ1214011' changed from OFFLINE (COMMUNICATION_ERROR): -1 Failure (sending getValue()

LEQ1214011:2

PARTY_MODE_SUBMIT) to ONLINE

2015-10-07 18:05:24 - homematic_HM_TC_IT_WM_W_EU_47ff326c_LEQ1214011_V_0_RELOAD_FROM_GATEWAY updated to OFF

2015-10-07 18:05:24 - homematic_HM_TC_IT_WM_W_EU_47ff326c_LEQ1214011_V_1_TEMPERATURE updated to 19.90

2015-10-07 18:05:24 - homematic_HM_TC_IT_WM_W_EU_47ff326c_LEQ1214011_V_1_HUMIDITY updated to 66

2015-10-07 18:05:24 - 'homematic:HM-TC-IT-WM-W-EU:47ff326c:LEQ1214011' updated: OFFLINE (COMMUNICATION_ERROR): -1 Failure (sending getValue()

LEQ1214011:2

PARTY_MODE_SUBMIT)

2015-10-07 18:05:24 - 'homematic:HM-TC-IT-WM-W-EU:47ff326c:LEQ1214011' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): -1 Failure (sending getValue()

LEQ1214011:2

PARTY_MODE_SUBMIT)

2015-10-07 18:05:24 - 'homematic:HM-TC-IT-WM-W-EU:47ff326c:LEQ1214011' updated: ONLINE

2015-10-07 18:05:24 - 'homematic:HM-TC-IT-WM-W-EU:47ff326c:LEQ1214011' changed from OFFLINE (COMMUNICATION_ERROR): -1 Failure (sending getValue()

LEQ1214011:2

PARTY_MODE_SUBMIT) to ONLINE

2015-10-07 18:05:24 - homematic_HM_TC_IT_WM_W_EU_47ff326c_LEQ1214011_V_0_RELOAD_FROM_GATEWAY updated to OFF

2015-10-07 18:05:24 - homematic_HM_TC_IT_WM_W_EU_47ff326c_LEQ1214011_V_1_TEMPERATURE updated to 19.90

2015-10-07 18:05:24 - homematic_HM_TC_IT_WM_W_EU_47ff326c_LEQ1214011_V_1_HUMIDITY updated to 66

2015-10-07 18:05:24 - 'homematic:HM-TC-IT-WM-W-EU:47ff326c:LEQ1214011' updated: OFFLINE (COMMUNICATION_ERROR): -1 Failure (sending getValue()

LEQ1214011:2

PARTY_MODE_SUBMIT)

2015-10-07 18:05:24 - 'homematic:HM-TC-IT-WM-W-EU:47ff326c:LEQ1214011' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): -1 Failure (sending getValue()

LEQ1214011:2

PARTY_MODE_SUBMIT)

2015-10-07 18:05:24 - 'homematic:HM-TC-IT-WM-W-EU:47ff326c:LEQ1214011' updated: ONLINE

2015-10-07 18:05:24 - 'homematic:HM-TC-IT-WM-W-EU:47ff326c:LEQ1214011' changed from OFFLINE (COMMUNICATION_ERROR): -1 Failure (sending getValue()

LEQ1214011:2

PARTY_MODE_SUBMIT) to ONLINE

2015-10-07 18:05:24 - homematic_HM_TC_IT_WM_W_EU_47ff326c_LEQ1214011_V_0_RELOAD_FROM_GATEWAY updated to OFF

2015-10-07 18:05:24 - homematic_HM_TC_IT_WM_W_EU_47ff326c_LEQ1214011_V_1_TEMPERATURE updated to 19.90

2015-10-07 18:05:24 - homematic_HM_TC_IT_WM_W_EU_47ff326c_LEQ1214011_V_1_HUMIDITY updated to 66

2015-10-07 18:05:24 - 'homematic:HM-TC-IT-WM-W-EU:47ff326c:LEQ1214011' updated: OFFLINE (COMMUNICATION_ERROR): -1 Failure (sending getValue()

LEQ1214011:2

PARTY_MODE_SUBMIT)

Von: Gerhard R. [mailto:notifications@github.com]
Gesendet: Mittwoch, 7. Oktober 2015 16:34
An: openhab/openhab2
Cc: belmondo2001
Betreff: Re: [openhab2] HomeMatic Binding (#88)

great news! With the workaround i'm still 100% API compliant!

You can try to delete all three storage.* files in the folder $CONFIG_ROOT/userdata/mapdb/. This is the folder where PaperUI saves it's config.


Reply to this email directly or view it on GitHub #88 (comment) .Das Bild wurde vom Absender entfernt.

@gerrieg
Copy link
Contributor Author

gerrieg commented Oct 12, 2015

I played with my new HM-ES-TX-WM, but there is no chance to fetch the datapoint values with a API method. I'm pretty sure this is a firmware bug.

So i implemented another workaround to fetch the values with a TclRega script if the gateway is a CCU.

Works for me now: Download

@sja
Copy link

sja commented Dec 27, 2015

I've got performance problems on my Raspberry.

My Szenario:
RPi 1B: "rfpi" with homegear latest stable and a CUL Stick and a SCC board for MAX and Homematic
RPi 2B: "openhab" with your binding

At first I tried to just add the homegear bridge and let device discovery do the rest. That was a bad idea, because the last logs I saw from rfpi was homegear's 50 threads limit reached ... and the pi never came back. (I let it work over night, but no chance to even ssh into it)
Then I re-installed the rfpi with latest raspbian, latest (stable) homegear and added just one wall thermostat. So the amount of calls was less, but even that killed the homegear process.

In your code I saw a throtteling of some milliseconds. I increased that on my dev machine to about 700ms and started openHAB from there, but there still seem to be a problem. The load is immense.

Do you think, I would have a better chance if I migrate homegear to the openhab board? Then there will be localhost calls. But I'm scared of what happen, if I add the rest of about 20 Homematic and MAX devices.

@gerrieg
Copy link
Contributor Author

gerrieg commented Jan 2, 2016

My homegear test environment is a Debian VM with homegear 0.6 and 30 devices (not connected, only in the DB). Homgear has always 14 threads. Maybe this is a 0.5 and/or a PI issue.
Which version of the binding are you using? Can you try the latest from my github repo? There were many changes since October.

I don't think that it makes any difference, if the http calls are on localhost or over a network in this case.
My Homematic devices are all in use now (christmas lights). But as soon as my wife has released one device, I will test it with my PI 😊

@sja
Copy link

sja commented Jan 2, 2016

Maybe its the Version. I have problems to install the deb packages on the
latest raspbian version so I use 0.5. For the Binding I merge your repo
locally to my one. So the latest and greatest is running ;-)

Am Samstag, 2. Januar 2016 schrieb Gerhard R. :

My homegear test environment is a Debian VM with homegear 0.6 and 30
devices (not connected, only in the DB). Homgear has always 14 threads.
Maybe this is a 0.5 and/or a PI issue.
Which version of the binding are you using? Can you try the latest from my
github repo? There were many changes since October.

I don't think that it makes any difference, if the http calls are on
localhost or over a network in this case.
My Homematic devices are all in use now (christmas lights). But as soon as
my wife has released one device, I will test it with my PI [image:
😊]


Reply to this email directly or view it on GitHub
#88 (comment).

@Viburnum
Copy link

Hi I just added the jar @gerrieg has provided and added the Homematic Bridge. While initializing the bridge, I get the following exception. Any idea? Openhab 2 Beta on OpenJDK Runtime Environment (IcedTea 2.6.3) (7u91-2.6.3-0ubuntu0.15.10.1)

2016-01-28 19:17:47.682 [ERROR] [ome.core.thing.internal.ThingManager] - Exception occured while calling thing handler factory 'org.openhab.binding.homematic.handler.HomematicThingHandlerFactory@3e38a280': javax/xml/bind/JAXBException java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException at org.openhab.binding.homematic.internal.communicator.HomematicGatewayFactory.createGateway(HomematicGatewayFactory.java:30) at org.openhab.binding.homematic.handler.HomematicBridgeHandler.initialize(HomematicBridgeHandler.java:70) at org.eclipse.smarthome.core.thing.binding.BaseThingHandlerFactory.registerHandler(BaseThingHandlerFactory.java:130) at org.eclipse.smarthome.core.thing.internal.ThingManager$6.call(ThingManager.java:507) at org.eclipse.smarthome.core.thing.internal.ThingManager$6.call(ThingManager.java:1) at java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_91] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_91] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_91] at java.lang.Thread.run(Thread.java:745)[:1.7.0_91] Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException cannot be found by org.openhab.binding.homematic_2.0.0.201510041213 at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:432)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:] at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:345)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:] at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:337)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:] at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:] at java.lang.ClassLoader.loadClass(ClassLoader.java:358)[:1.7.0_91] ... 9 more

@kaikreuzer
Copy link
Member

Well, it sounds as if the manifest of the binding is lacking a package-import for javax/xml/bind...

@Viburnum
Copy link

Pull Request gerrieg#1 adds javax/xml/bind to the manifest file

@matthewatdiferit
Copy link

Hi all,

I was trying to use this binding some months back, and then because of other bindings etc. had to step back down to OpenHAB 1.8. However, as I'm now redoing my setup, I'd like to give the latest 2.0 beta a run for its money ;)

Is there a latest .jar snapshot of the binding I can use, so do I have to compile it myself? I'm hoping for the former, because -- while not technically illiterate; I'm more of web developer/designer than Java coder, and my wife is already frustrated with my long hours toying with things ;)

@kaikreuzer
Copy link
Member

Before testing, you should definitely wait for @gerrieg to merge gerrieg#1 into his PR first.

@matthewatdiferit
Copy link

But, assuming, as I am, an explorer with masochistic tendencies (in a purely technical way ;) — lets keep it PG-13) any chance anyone has one such jar i could use?

;)

m

On 04 Feb 2016, at 11:58, Kai Kreuzer notifications@github.com wrote:

Before testing, you should definitely wait for @gerrieg https://github.com/gerrieg to merge gerrieg#1 gerrieg#1 into his PR first.


Reply to this email directly or view it on GitHub https://github.com/openhab/openhab2-addons/issues/88#issuecomment-179771111.

@sja
Copy link

sja commented Feb 15, 2016

Current version, compiled against oh2 master (14.02.2016 14:36 MEZ) including PR from Viburnum:
https://www.dropbox.com/s/qqur63re5ji9lqp/org.openhab.binding.homematic-2.0.0-SNAPSHOT.jar?dl=0

@kaikreuzer
Copy link
Member

Merged and available in the next distro build!

@Robbi24
Copy link

Robbi24 commented Jun 15, 2016

I am just testing the homematic-2.0.0 binding and have some problems.
With Paper UI setting for the Homematic Bridge I got :

Status: OFFLINE - COMMUNICATION_ERROR Connection lost

Testing with OH2.0 running on Windows 10 with CCU2 SW 2.15.5 ( No XML-RPC support )

@abrancato
Copy link

...same here with homematic (ccu2, 2.19.9). Also, Paper UI constantly crashes and becomes unresponsible.

@gerrieg
Copy link
Contributor Author

gerrieg commented Jun 18, 2016

Switch the binding to DEBUG mode and post/send me the logfile please.

@Robbi24
Copy link

Robbi24 commented Jun 18, 2016

hope this can help:

log:set DEBUG org.openhab.binding.homematic
log:display org.openhab.binding,homematic

13:16:16.231 [WARN ] [ternal.communicator.HomematicGateway] - Connection lost on gateway '856b9ebb'
13:16:16.232 [DEBUG] [nal.communicator.client.BinRpcClient] - BinRpcMessage socket failure, sending message again 1/1
13:16:16.232 [DEBUG] [nal.communicator.client.BinRpcClient] - BinRpcMessage socket failure, sending message again 1/1
13:16:31.233 [WARN ] [ternal.communicator.HomematicGateway] - Connection lost on gateway 'ccu'
13:16:31.236 [DEBUG] [nal.communicator.client.BinRpcClient] - BinRpcMessage socket failure, sending message again 1/1
13:16:31.236 [DEBUG] [ternal.communicator.HomematicGateway] - Loading values for channel HmChannel[number=0,type=MAINTENANCE,initialized=false] of device 'MEQ0676396'
13:16:46.235 [WARN ] [ternal.communicator.HomematicGateway] - Read timed out
java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)[:1.8.0_92]
at java.net.SocketInputStream.socketRead(Unknown Source)[:1.8.0_92]
at java.net.SocketInputStream.read(Unknown Source)[:1.8.0_92]
at java.net.SocketInputStream.read(Unknown Source)[:1.8.0_92]
at org.openhab.binding.homematic.internal.communicator.message.BinRpcMessage.(BinRpcMessage.java:75)[222:org.openhab.binding.homematic:2.0.0.201606030102]
at org.openhab.binding.homematic.internal.communicator.client.BinRpcClient.sendMessage(BinRpcClient.java:90)[222:org.openhab.binding.homematic:2.0.0.201606030102]
at org.openhab.binding.homematic.internal.communicator.client.BinRpcClient.sendMessage(BinRpcClient.java:79)[222:org.openhab.binding.homematic:2.0.0.201606030102]
at org.openhab.binding.homematic.internal.communicator.client.RpcClient.release(RpcClient.java:88)[222:org.openhab.binding.homematic:2.0.0.201606030102]
at org.openhab.binding.homematic.internal.communicator.AbstractHomematicGateway.stopServer(AbstractHomematicGateway.java:222)[222:org.openhab.binding.homematic:2.0.0.201606030102]
at org.openhab.binding.homematic.internal.communicator.AbstractHomematicGateway.access$3(AbstractHomematicGateway.java:219)[222:org.openhab.binding.homematic:2.0.0.201606030102]
at org.openhab.binding.homematic.internal.communicator.AbstractHomematicGateway$ReconnectThread.run(AbstractHomematicGateway.java:791)[222:org.openhab.binding.homematic:2.0.0.201606030102]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)[:1.8.0_92]
at java.util.concurrent.FutureTask.runAndReset(Unknown Source)[:1.8.0_92]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source)[:1.8.0_92]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)[:1.8.0_92]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)[:1.8.0_92]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)[:1.8.0_92]
at java.lang.Thread.run(Unknown Source)[:1.8.0_92]
13:16:46.238 [DEBUG] [ternal.communicator.HomematicGateway] - Loading values for channel HmChannel[number=0,type=MAINTENANCE,initialized=false] of device 'LEQ1332338'
13:17:01.236 [DEBUG] [nal.communicator.client.BinRpcClient] - BinRpcMessage socket failure, sending message again 1/1
13:17:01.241 [DEBUG] [nal.communicator.client.BinRpcClient] - BinRpcMessage socket failure, sending message again 1/1
13:17:16.243 [DEBUG] [ternal.communicator.HomematicGateway] - Loading values for channel HmChannel[number=0,type=MAINTENANCE,initialized=false] of device 'NEQ0152458'
13:17:31.239 [DEBUG] [nal.communicator.client.BinRpcClient] - BinRpcMessage socket failure, sending message again 1/1
13:17:31.242 [DEBUG] [nal.communicator.client.BinRpcClient] - BinRpcMessage socket failure, sending message again 1/1
13:17:46.246 [DEBUG] [ternal.communicator.HomematicGateway] - Loading values for channel HmChannel[number=0,type=MAINTENANCE,initialized=false] of device 'MEQ1742151'
13:18:01.244 [DEBUG] [nal.communicator.client.BinRpcClient] - BinRpcMessage socket failure, sending message again 1/1
13:18:01.246 [DEBUG] [nal.communicator.client.BinRpcClient] - BinRpcMessage socket failure, sending message again 1/1
13:18:16.252 [DEBUG] [ternal.communicator.HomematicGateway] - Loading values for channel HmChannel[number=0,type=MAINTENANCE,initialized=false] of device 'MEQ1742151'
13:18:16.256 [DEBUG] [nal.communicator.server.BinRpcServer] - Stopping BIN-RPC server
13:18:16.257 [DEBUG] [nal.communicator.server.BinRpcServer] - Initializing BIN-RPC server at port 9123
13:18:31.251 [DEBUG] [nal.communicator.client.BinRpcClient] - BinRpcMessage socket failure, sending message again 1/1
13:18:31.256 [DEBUG] [nal.communicator.client.BinRpcClient] - BinRpcMessage socket failure, sending message again 1/1
13:18:46.258 [DEBUG] [ternal.communicator.HomematicGateway] - Loading values for channel HmChannel[number=0,type=MAINTENANCE,initialized=false] of device 'NEQ0152458'
13:19:01.254 [DEBUG] [nal.communicator.client.BinRpcClient] - BinRpcMessage socket failure, sending message again 1/1
13:19:01.257 [DEBUG] [nal.communicator.client.BinRpcClient] - BinRpcMessage socket failure, sending message again 1/1
13:19:16.258 [DEBUG] [ternal.communicator.HomematicGateway] - Loading values for channel HmChannel[number=0,type=MAINTENANCE,initialized=false] of device 'MEQ0673780'
13:19:31.258 [DEBUG] [nal.communicator.client.BinRpcClient] - BinRpcMessage socket failure, sending message again 1/1
13:19:31.261 [DEBUG] [ternal.communicator.HomematicGateway] - Read timed out
java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)[:1.8.0_92]
at java.net.SocketInputStream.socketRead(Unknown Source)[:1.8.0_92]
at java.net.SocketInputStream.read(Unknown Source)[:1.8.0_92]
at java.net.SocketInputStream.read(Unknown Source)[:1.8.0_92]
at org.openhab.binding.homematic.internal.communicator.message.BinRpcMessage.(BinRpcMessage.java:75)[222:org.openhab.binding.homematic:2.0.0.201606030102]
at org.openhab.binding.homematic.internal.communicator.client.BinRpcClient.sendMessage(BinRpcClient.java:90)[222:org.openhab.binding.homematic:2.0.0.201606030102]
at org.openhab.binding.homematic.internal.communicator.client.BinRpcClient.sendMessage(BinRpcClient.java:79)[222:org.openhab.binding.homematic:2.0.0.201606030102]
at org.openhab.binding.homematic.internal.communicator.client.RpcClient.init(RpcClient.java:79)[222:org.openhab.binding.homematic:2.0.0.201606030102]
at org.openhab.binding.homematic.internal.communicator.client.BinRpcClient.init(BinRpcClient.java:67)[222:org.openhab.binding.homematic:2.0.0.201606030102]
at org.openhab.binding.homematic.internal.communicator.AbstractHomematicGateway.startServer(AbstractHomematicGateway.java:212)[222:org.openhab.binding.homematic:2.0.0.201606030102]
at org.openhab.binding.homematic.internal.communicator.AbstractHomematicGateway.access$4(AbstractHomematicGateway.java:204)[222:org.openhab.binding.homematic:2.0.0.201606030102]
at org.openhab.binding.homematic.internal.communicator.AbstractHomematicGateway$ReconnectThread.run(AbstractHomematicGateway.java:792)[222:org.openhab.binding.homematic:2.0.0.201606030102]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)[:1.8.0_92]
at java.util.concurrent.FutureTask.runAndReset(Unknown Source)[:1.8.0_92]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source)[:1.8.0_92]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)[:1.8.0_92]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)[:1.8.0_92]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)[:1.8.0_92]
at java.lang.Thread.run(Unknown Source)[:1.8.0_92]
13:19:46.262 [DEBUG] [nal.communicator.client.BinRpcClient] - BinRpcMessage socket failure, sending message again 1/1
13:20:01.262 [DEBUG] [nal.communicator.client.BinRpcClient] - BinRpcMessage socket failure, sending message again 1/1
13:20:12.717 [DEBUG] [very.HomematicDeviceDiscoveryService] - Stopping Homematic discovery scan
13:20:13.147 [DEBUG] [very.HomematicDeviceDiscoveryService] - Stopping Homematic discovery scan
13:20:16.266 [DEBUG] [nal.communicator.client.BinRpcClient] - BinRpcMessage socket failure, sending message again 1/1
13:20:16.268 [DEBUG] [ternal.communicator.HomematicGateway] - Loading values for channel HmChannel[number=0,type=MAINTENANCE,initialized=false] of device 'LEQ0806265'
13:20:31.268 [DEBUG] [nal.communicator.client.BinRpcClient] - BinRpcMessage socket failure, sending message again 1/1
13:20:31.271 [DEBUG] [ternal.communicator.HomematicGateway] - Loading values for channel HmChannel[number=0,type=MAINTENANCE,initialized=false] of device 'MEQ0673780'
13:20:46.270 [DEBUG] [nal.communicator.client.BinRpcClient] - BinRpcMessage socket failure, sending message again 1/1
13:21:01.273 [DEBUG] [nal.communicator.client.BinRpcClient] - BinRpcMessage socket failure, sending message again 1/1
13:21:16.275 [WARN ] [ternal.communicator.HomematicGateway] - Read timed out
java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)[:1.8.0_92]
at java.net.SocketInputStream.socketRead(Unknown Source)[:1.8.0_92]
at java.net.SocketInputStream.read(Unknown Source)[:1.8.0_92]
at java.net.SocketInputStream.read(Unknown Source)[:1.8.0_92]
at org.openhab.binding.homematic.internal.communicator.message.BinRpcMessage.(BinRpcMessage.java:75)[222:org.openhab.binding.homematic:2.0.0.201606030102]
at org.openhab.binding.homematic.internal.communicator.client.BinRpcClient.sendMessage(BinRpcClient.java:90)[222:org.openhab.binding.homematic:2.0.0.201606030102]
at org.openhab.binding.homematic.internal.communicator.client.BinRpcClient.sendMessage(BinRpcClient.java:79)[222:org.openhab.binding.homematic:2.0.0.201606030102]
at org.openhab.binding.homematic.internal.communicator.client.RpcClient.release(RpcClient.java:88)[222:org.openhab.binding.homematic:2.0.0.201606030102]
at org.openhab.binding.homematic.internal.communicator.AbstractHomematicGateway.stopServer(AbstractHomematicGateway.java:222)[222:org.openhab.binding.homematic:2.0.0.201606030102]
at org.openhab.binding.homematic.internal.communicator.AbstractHomematicGateway.access$3(AbstractHomematicGateway.java:219)[222:org.openhab.binding.homematic:2.0.0.201606030102]
at org.openhab.binding.homematic.internal.communicator.AbstractHomematicGateway$ReconnectThread.run(AbstractHomematicGateway.java:791)[222:org.openhab.binding.homematic:2.0.0.201606030102]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)[:1.8.0_92]
at java.util.concurrent.FutureTask.runAndReset(Unknown Source)[:1.8.0_92]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source)[:1.8.0_92]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)[:1.8.0_92]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)[:1.8.0_92]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)[:1.8.0_92]
at java.lang.Thread.run(Unknown Source)[:1.8.0_92]
13:21:16.279 [DEBUG] [ternal.communicator.HomematicGateway] - Loading values for channel HmChannel[number=0,type=MAINTENANCE,initialized=false] of device 'JEQ0654986'
13:21:31.275 [DEBUG] [nal.communicator.client.BinRpcClient] - BinRpcMessage socket failure, sending message again 1/1
13:21:31.278 [DEBUG] [nal.communicator.client.BinRpcClient] - BinRpcMessage socket failure, sending message again 1/1
13:21:46.282 [DEBUG] [nal.communicator.server.BinRpcServer] - Stopping BIN-RPC server
13:21:46.283 [DEBUG] [nal.communicator.server.BinRpcServer] - Initializing BIN-RPC server at port 9123
13:22:01.282 [DEBUG] [nal.communicator.client.BinRpcClient] - BinRpcMessage socket failure, sending message again 1/1
13:22:01.282 [DEBUG] [nal.communicator.client.BinRpcClient] - BinRpcMessage socket failure, sending message again 1/1

@Robbi24
Copy link

Robbi24 commented Jun 18, 2016

The CCU2 is going banana after starting OH2 and needs a reset every time.

this is the homematic.things file:

Bridge homematic:bridge:ccu [ gatewayAddress="192.168.178.65", gatewayType="ccu" ]
{
Thing HM-LC-Sw1-Pl-DN-R1 NEQ0152458
Thing HM-LC-Sw1-FM MEQ1742151
Thing HM-LC-Sw1PBU-FM MEQ0673780
Thing HM-LC-Sw2-FM MEQ1710249
Thing HM-LC-Sw2-FM MEQ1890879

}

and this is the default.items file:

Switch HM_ZWS6 "ZWS6" (EG) { channel="homematic:HM-LC-Sw1-Pl-DN-R1:ccu:NEQ0152458:1#STATE" }
Switch HM_SW1 "Licht Haustür" (EG) { channel="homematic:HM-LC-Sw1PBU-FM:ccu:MEQ0673780:1#STATE" }
Switch HM_SW2a "Licht Garten" (EG) { channel="homematic:HM-LC-Sw2-FM:ccu:MEQ1890879:1#STATE" }
Switch HM_SW2b "Licht Rosenbogen." (EG) { channel="homematic:HM-LC-Sw2-FM:ccu:MEQ1890879:2#STATE" }
Switch HM_SW3a "Licht Haustür" (EG) { channel="homematic:HM-LC-Sw2-FM:ccu:MEQ1710249:1#STATE" }
Switch HM_SW3b "Licht Schuppen " (EG) { channel="homematic:HM-LC-Sw2-FM:ccu:MEQ1710249:2#STATE" }
Switch HM_SW4 "Licht Einfahrt" (EG) { channel="homematic:HM-LC-Sw1-FM:ccu:MEQ1742151:1#STATE" }

@gerrieg
Copy link
Contributor Author

gerrieg commented Jun 18, 2016

Not really, that's only a half logfile. I need a full startup logfile.

Do you have two gateways?

Connection lost on gateway '856b9ebb'
Connection lost on gateway 'ccu'

The CCU is reachable from the OH server on port 2000, 2001, 2010, 8701 and 8181?

@Robbi24
Copy link

Robbi24 commented Jun 19, 2016

There is one CCU2, one HUE Interface and a RWE Smarthome SHC .
BTW the RWE Smarthome SHC is running fine. The HUE is not tested.
I will focus on Homematic first and will skip the others. It looks that there is a second Homematic setup from "Paper UI". But I dont know were the second setup was stored.
I can start from scratch and I will make a clean installation and report the log files.
What about the items and the things file? The Java SmartHome Designer is marking the "Thing" items with "RED".

Flole998 pushed a commit to Flole998/openhab-addons that referenced this issue Dec 30, 2021
Signed-off-by: Kai Kreuzer <kai@openhab.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new binding If someone has started to work on a binding. For a new binding PR.
Projects
None yet
Development

No branches or pull requests