Home Connect binding

Awesome, thanks for your continued work on this! Did a lot change in the code, do you think the problems I’ve described above could be fixed by the new release?

I just noticed that setting oven temperature as well as programm don’t work.
The application scope in api.home-connect.com grants monitoring and settings but no control - while the documentation states setting program / temperature should work.

Any thoughts? I get 403 error when attempting to set a program.

Happy New Year :fireworks:,

I’m back from my coding break. Sorry for the late responses. I will release a new beta build for 2.5 and 3.0 today.

You mean the DISCONNECT or power off event is missing? If yes, I think it is not related to the binding. I had problems in December too. Some events didn’t arrived.

Do you still experience this type of error? Dead event source connection detected... message is triggered by the binding if no new event is coming in. The binding will try to restart the connection.

Do you still receive this message?

What do you mean by turn on app control? Is the dryer state not updated to “ONLINE”?

I will publish a new OH3 build, later. Can you please try it again with this version.

I’ll put it on my list.

I think I fixed it with the current version.

I’ll put it on my list.

Hope so. If not please let me know.

It won’t work. You need to sign an additional agreement to use the correct scopes.
https://github.com/bruestel/org.openhab.binding.homeconnect/tree/2.5.x-next/bundles/org.openhab.binding.homeconnect#i-cant-start-my-oven-via-openhab

2 Likes

2021/01/16
Download (2.5.x): org.openhab.binding.homeconnect-2.5.9.202101161426.jar
Download (3.x.x): org.openhab.binding.homeconnect-3.1.0.202101161431.jar

5 Likes

Hi Jonas,

thank you very much for the new version! I just installed the binding on OH3, so far it looks promising. I also had problems with the first OH3 version of the binding (with a dishwasher).
I’ll report back if I run into any issues.

Thanks again,
Matt

MANY thanks for your effort and hopefully you have been able to enjoy your coding break, which is well deserved!

I’ve just updated my openHAB 3.1.0 Snapshot installation where previous Version already runs more stable than on my OH 2.x installation (Bridge was 2 days online without any interruption, usuall on OH2 it went offline after 1 day.)

Upgrade was easy going while OH was up and running. Removal of old .jar, bridge went offline, copy of new .jar and Bridge automatically came back online. VERY smooth.

But, there were some messages from disposed channels?

> 17:42:15.731 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'homeconnect:api_bridge:simulator_api_bridge' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to INITIALIZING
> 17:42:15.731 [INFO ] [.openhab.core.model.script.api_bridge] - Home Connect bridge status: INITIALIZING detail: NONE
> 17:42:15.747 [ERROR] [.openhab.core.model.script.api_bridge] - Something is wrong with Home Connect bridge.
> 17:42:15.747 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'HomeConnectBridgeStatus' changed from UNINITIALIZED to INITIALIZING
> 17:42:17.122 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'homeconnect:api_bridge:simulator_api_bridge' changed from INITIALIZING to ONLINE
> 17:42:17.122 [INFO ] [.openhab.core.model.script.api_bridge] - Home Connect bridge status: ONLINE detail: NONE
> 17:42:17.122 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'HomeConnectBridgeStatus' changed from INITIALIZING to ONLINE
> 17:42:17.122 [INFO ] [.openhab.core.model.script.api_bridge] - Home Connect bridge back online.
> 
> 17:42:17.137 [WARN ] [b.core.thing.binding.BaseThingHandler] - Handler HomeConnectDishwasherHandler of thing homeconnect:dishwasher:simulator_api_bridge:dishwasher1 tried updating channel remaining_program_time_state although the handler was already disposed.
> 17:42:17.137 [WARN ] [b.core.thing.binding.BaseThingHandler] - Handler HomeConnectDishwasherHandler of thing homeconnect:dishwasher:simulator_api_bridge:dishwasher1 tried updating channel program_progress_state although the handler was already disposed.
> 17:42:17.137 [WARN ] [b.core.thing.binding.BaseThingHandler] - Handler HomeConnectDishwasherHandler of thing homeconnect:dishwasher:simulator_api_bridge:dishwasher1 tried updating channel active_program_state although the handler was already disposed.
> 
> 17:42:17.137 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'homeconnect:dishwasher:simulator_api_bridge:dishwasher1' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to INITIALIZING
> 17:42:17.231 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'homeconnect:dishwasher:simulator_api_bridge:dishwasher1' changed from INITIALIZING to ONLINE
> 17:42:19.574 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'TillyOperationState' changed from NULL to Inactive

Anyway, this was only time those messages appear and bridge/channel are online and I will keep watching this :wink:

Regards

Joerg

My dryer has a hardware button to turn on/off app control. But you can discard my post. I solved this issue by not turning off the dryer with the hardware button, but to let it automatically enter standby mode after a few minutes.

I have some startup issues on OH 2.5.11 but it seems to work after that:

2021-01-16 17:51:46.714 [vent.ItemStateChangedEvent] - DryerDryingTarget changed from NULL to LaundryCare.Dryer.EnumType.DryingTarget.CupboardDry
2021-01-16 17:51:46.714 [vent.ItemStateChangedEvent] - DryerSelectedProgramState changed from NULL to LaundryCare.Dryer.Program.Mix
2021-01-16 17:51:46.803 [vent.ItemStateChangedEvent] - DryerActiveProgramState changed from NULL to Mix

But after that it changed to:

2021-01-16 18:02:42.560 [hingStatusInfoChangedEvent] - 'homeconnect:dryer:api_bridge:Dryer' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Home Connect service is not reachable or a problem occurred! (java.net.SocketTimeoutException: timeout).

The error messages look bad. Can you try the binding on a fresh install? Or clean the cache of your OH2 installation.
I have a 2.5.11 test installation which just work out of the box.

I installed the org.openhab.binding.homeconnect-3.1.0.202101161431.jar binding today and it works fine. I was able to connect a washer and a dryer.

The only thing which puzzled me a little was the haID. I somehow missed in the (very good!) documentation how to obtain that. I finally found it in the log messages of the Bosch Smart Home Controller binding. What would have been the right place?

Sorry, didn’t have a lot of time to test. But I dropped the new jar in the addons folder and the variables were updated again. So I would say it’s looking very good. Only thing was the door state which didn’t update, but I’ll check that. Could also be something else from the migration.

Thanks again for your work!

First of all: Thanks a lot for this great binding!

Do you plan to add a channel for “StartInRelative”. At least for dish washer it contains the information when a delayed start will happen.

Afaik “StartInRelative” is the time until the dishwasher is started. It would be great to calculate the date and time when this happens and provide a corresponding channel.

Cheers
Oliver

Hi Jonas,

Thanks for the binding.
Everything went very smooth when installing it.

Im using it with a side by side refrigerator SIEMENS KA92DHX and a dishwasher SIEMENS SX678X36UE.

Thanks
Andy

Thanks for the feedback

Great to hear that it is working for you. You can ignore the Warnings. They are kind of false positives.
In my next release I will have a look to prevent these kind of messages.

Thanks for the compliment. Yes it is hard to find the right HaId if you use a file based configuration. You have two options to find the right Home Appliance ID.

  1. use the OH UI
  2. use Home Connect binding UI and search for the first API request

I’ll will update the documentation.

It was not on my list, but now it is :smiley:

Thanks for your feedback.

2 Likes

Hi @jb4711

Also from my side a big thank you for your efforts! I really appreciate your work.
I have been using the binding for quite some time with OH 2.x and switched to OH3 last December. The latest 3.0 release fixed all issues and now everything works as desired for me (Siemens washing machine).

I still have a few open questions:

  • What is the recommended procedure when updating to a new jar version? (Uninstall via Karaf, delete old HomeConnect things and recreate, …).
  • When do you think the binding will be included in the official binding repository?

Best regards
Marco

First tanks for this great binding! Big help to see the progress of my dryer in the cellar!
But with OH3.0.0 I have some issues. I hope someone solved them already.

I have the SIEMENS-WT47XM40-XXXXXXXXX connected.
I am using org.openhab.binding.homeconnect-3.1.0.202101161431

The progress in secondes is not shown anymore

In the homeconnect console I see the progress in “Events (SSE)” but the item connected to remaining_program_time_state or program_progress_state does not show it.

Items show the same value. Also the “Drying Target” and “Selected Program” show strange enum strings…

Is support for Bosch Cookit planed?

    "name": "Cookit",
    "brand": "Bosch",
    "vib": "MCC9555DWC",
    "connected": true,
    "type": "CookProcessor",
    "enumber": "MCC9555DWC/01",
    "haId": "710070514461xxxxxx
  },
2 Likes

Hi.
I had installed the Binding OH 2.5 and it worked very well. Now i Update my system to OH 3 and Copy the new jar file in the addon folder. But now i don’t see the binding anymore and can’t Install it again. It IS not listed anylonger unser the bindings page. Würde is my mistake? Hope you can help me.

Regards
Dori

Have you copied the V 2.x Version to OH3? This won’t work, you require the V 3.x there

Upgraded t OH3.0.1 today and used the latest homeconnect binding. It looks like everything is ok. But i get errors atstartup:

2021-01-27 22:02:53.561 [WARN ] [org.apache.felix.fileinstall        ] - Error while starting bundle: file:/usr/share/openhab/addons/org.openhab.binding.homeconnect-3.1.0.202101161431.jar
org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.homeconnect [210]
  Unresolved requirement: Import-Package: android.net.http; resolution:="optional"
  Unresolved requirement: Import-Package: android.net.ssl; resolution:="optional"
  Unresolved requirement: Import-Package: android.os; resolution:="optional"
  Unresolved requirement: Import-Package: android.security; resolution:="optional"
  Unresolved requirement: Import-Package: android.util; resolution:="optional"
  Unresolved requirement: Import-Package: com.android.org.conscrypt; resolution:="optional"
  Unresolved requirement: Import-Package: dalvik.system; resolution:="optional"
  Unresolved requirement: Import-Package: org.conscrypt; resolution:="optional"
  Unresolved requirement: Import-Package: sun.security.ssl; resolution:="optional"
  Unresolved requirement: Import-Package: javax.annotation.meta; resolution:="optional"
  Unresolved requirement: Import-Package: com.sun.jdi; resolution:="optional"
  Unresolved requirement: Import-Package: com.sun.jdi.connect; resolution:="optional"
  Unresolved requirement: Import-Package: com.sun.jdi.event; resolution:="optional"
  Unresolved requirement: Import-Package: com.sun.jdi.request; resolution:="optional"
  Unresolved requirement: Import-Package: org.apache.commons.lang; version="[2.6.0,3.0.0)"

	at org.eclipse.osgi.container.Module.start(Module.java:444) ~[org.eclipse.osgi-3.12.100.jar:?]
	at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:383) ~[org.eclipse.osgi-3.12.100.jar:?]
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1260) [bundleFile:3.6.4]
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1233) [bundleFile:3.6.4]
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:520) [bundleFile:3.6.4]
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365) [bundleFile:3.6.4]
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:316) [bundleFile:3.6.4]