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
Comments
@kaikreuzer Best, Gerhard |
@gerrieg Are you still working on the HomeMatic binding? |
Yes, the main part is done and it works basically. Now i'm testing, bugfixing, optimizing... |
Very nice! Will the binding support Homegear, like the binding for openHAB v1 did? |
Yes, it will have all the features as the existing v1 binding. |
@gerrieg Hi Gerhard any progress with the binding or alpha version we can play with? |
not yet, i had two longer vacations and finished the Astro binding. But now i am going to continue with the Homematic binding. |
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, |
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 will announce it if it's ready for public testing. Best, |
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 ;) |
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 |
Thank you sja. I found it (branch:homematic / openhab2 / addons / binding / org.openhab.binding.homematic). |
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
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 |
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, |
👍 |
I always get stuck on "openHAB Core 1.x Compatibility Layer" - see below.
|
Simple: You are not using Java 7 or above! |
You noticed that this discussion is about openHAB 2 (and hence the Homematic binding 2.0 and not 1.7)? |
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. |
Yes, you are missing #88 (comment). |
It sounds strange, but after redoing the whole thing on another system it's there now - you have to love PC deterministics ;)
|
Maybe you missed the |
I tried the binding and it looks good. (HM-TC-IT-WM-W-EU)java.io.IOException: -1 Failure (sending getParamset() (HM-ES-TX-WM)MEQ0381392:1 Do someone know what's wrong ? |
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.
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. |
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] 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.
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. — |
I removed the :HM-ES-TX-WM from ccu2 und install it again. |
@belmondo2001 |
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)
Von: Gerhard R. [mailto:notifications@github.com] @belmondo2001 https://github.com/belmondo2001 — |
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 😕 |
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 Thanks for testing! |
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] 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 Thanks for testing! — |
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. |
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] 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. — |
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 |
I've got performance problems on my Raspberry. My Szenario: 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) 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. |
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. I don't think that it makes any difference, if the http calls are on localhost or over a network in this case. |
Maybe its the Version. I have problems to install the deb packages on the Am Samstag, 2. Januar 2016 schrieb Gerhard R. :
|
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)
|
Well, it sounds as if the manifest of the binding is lacking a package-import for javax/xml/bind... |
Pull Request gerrieg#1 adds javax/xml/bind to the manifest file |
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 ;) |
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
|
Current version, compiled against oh2 master (14.02.2016 14:36 MEZ) including PR from Viburnum: |
Merged and available in the next distro build! |
I am just testing the homematic-2.0.0 binding and have some problems.
Testing with OH2.0 running on Windows 10 with CCU2 SW 2.15.5 ( No XML-RPC support ) |
...same here with homematic (ccu2, 2.19.9). Also, Paper UI constantly crashes and becomes unresponsible. |
Switch the binding to DEBUG mode and post/send me the logfile please. |
hope this can help: log:set DEBUG org.openhab.binding.homematic 13:16:16.231 [WARN ] [ternal.communicator.HomematicGateway] - Connection lost on gateway '856b9ebb' |
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" ] } and this is the default.items file: Switch HM_ZWS6 "ZWS6" (EG) { channel="homematic:HM-LC-Sw1-Pl-DN-R1:ccu:NEQ0152458:1#STATE" } |
Not really, that's only a half logfile. I need a full startup logfile. Do you have two gateways?
The CCU is reachable from the OH server on port 2000, 2001, 2010, 8701 and 8181? |
There is one CCU2, one HUE Interface and a RWE Smarthome SHC . |
Signed-off-by: Kai Kreuzer <kai@openhab.org>
will start after the completion of Astro Binding
The text was updated successfully, but these errors were encountered: