Siemens/Bosch Home Connect Ecosystem

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Geitje
Posts: 170
Joined: Monday 22 January 2018 21:52
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Siemens/Bosch Home Connect Ecosystem

Post by Geitje »

Sorry my reply (previous post) was in Dutch :oops: , now translated to English....
Domoticz beta, on Raspberry Pi 3B, Raspian Buster
Zwave, Zigate, RFlink etc.
mariopeters
Posts: 61
Joined: Wednesday 22 August 2018 12:18
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Siemens/Bosch Home Connect Ecosystem

Post by mariopeters »

Don't think that's the solution.
The python script is starting, but it looks like it can't connect to domoticz.
Do you see any errors in the Domoticz logging?
joshuas
Posts: 7
Joined: Tuesday 02 January 2018 12:14
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Netherlands
Contact:

Re: Siemens/Bosch Home Connect Ecosystem

Post by joshuas »

Hi

No there are no errors in the domoticz log. I added some extra logline. It's starting up, it is authorised

2020-10-22 22:34:59.159 Status: (Wasmachine) Started.
2020-10-22 22:34:59.788 Status: (Wasmachine) Entering work loop.
2020-10-22 22:34:59.789 Status: (Wasmachine) Initialized version 2.0.2, author 'Mario Peters'
2020-10-22 22:34:59.791 (Wasmachine) onStart called Domoticz-Home-Connect-Plugin
2020-10-22 22:34:59.791 (Wasmachine) Custom Icons: False
2020-10-22 22:34:59.791 (Wasmachine) {}
2020-10-22 22:34:59.791 (Wasmachine) connectHomeConnect
2020-10-22 22:34:59.791 (Wasmachine) scope IdentifyAppliance Washer
2020-10-22 22:35:00.298 (Wasmachine) device_code: blabla
2020-10-22 22:35:00.298 (Wasmachine) verification_uri_complete: https://api.home-connect.com/security/o ... r_code=xxx
2020-10-22 22:35:00.298 (Wasmachine) user_code: xxx
2020-10-22 22:35:01.164 (Wasmachine) sessionid: 0e554cd0-14a6-11eb-883e-8398a77bac45
2020-10-22 22:35:01.969 (Wasmachine) Device "blabla" is authorized by Home-Connect.
2020-10-22 22:35:02.255 (Wasmachine) Device "blabla" has token: [token]
2020-10-22 22:35:02.452 (Wasmachine) name --> Wasmachine
2020-10-22 22:35:02.452 (Wasmachine) brand --> Siemens
2020-10-22 22:35:02.452 (Wasmachine) vib --> WM14T6H6NL
2020-10-22 22:35:02.452 (Wasmachine) connected --> False
2020-10-22 22:35:02.452 (Wasmachine) type --> Washer
2020-10-22 22:35:02.452 (Wasmachine) enumber --> WM14T6H6NL/01
2020-10-22 22:35:02.452 (Wasmachine) haId --> SIEMENS-WM14T6H6NL-68A4
2020-10-22 22:35:02.452 (Wasmachine) getActiveProgram
2020-10-22 22:35:02.637 (Wasmachine) Listen on Home-Connect Webserver - Port: 8081
2020-10-22 22:35:12.159 (Wasmachine) onHeartbeat called
2020-10-22 22:35:22.178 (Wasmachine) onHeartbeat called

And thats it, the onHeartbeat repeats every 10 seconds.
Domoticz 2020.2, Raspbian 5.4.51, Aeotec Z-Stick Gen5, P1 Smartmeter, RFXtrx433XL
mariopeters
Posts: 61
Joined: Wednesday 22 August 2018 12:18
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Siemens/Bosch Home Connect Ecosystem

Post by mariopeters »

When you start the homeconnectSSE.sh script there should be a "onMessage called" line for your Home Connect device in the domoticz logs.
If you don't see that then it looks like the call from the script isn't able to reach the Domoticz port.
Which value did you enter at "DOMOTICZ_PORT".
Is the port which is configured when you created the Home Connect device?
It should not be the HTTP(S) port on which Domoticz is running.
Another problem could be the local firewall?
joshuas
Posts: 7
Joined: Tuesday 02 January 2018 12:14
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Netherlands
Contact:

Re: Siemens/Bosch Home Connect Ecosystem

Post by joshuas »

Hi

I see the on Message called twice an hour:
2020-10-23 14:19:06.965 (Wasmachine) onMessage called
2020-10-23 14:19:07.019 (Wasmachine) onMessage called

Its running on port 8081 and listening for connections and I am able to connect to this post using netcat or telnet.
Domoticz 2020.2, Raspbian 5.4.51, Aeotec Z-Stick Gen5, P1 Smartmeter, RFXtrx433XL
cyrano1966
Posts: 3
Joined: Sunday 14 December 2014 12:58
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Siemens/Bosch Home Connect Ecosystem

Post by cyrano1966 »

Reached almost the same point than Joshuas.
- Daemon is running and logging the token of my only compatible appliance (Washer) so far (I also have Bosch Dryer) every minute
- Python script only registered a "Washer-Monitor" device but not updated since creation

Happy to contribute to your development as a tester, if it helps

Regards
Marcelo
mariopeters
Posts: 61
Joined: Wednesday 22 August 2018 12:18
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Siemens/Bosch Home Connect Ecosystem

Post by mariopeters »

Marcello,
Could you please send me the homeconnectSSE.sh file (which you have changed) and the homeconnectSSE.log in a private message?
Then I could see what is going wrong.
mariopeters
Posts: 61
Joined: Wednesday 22 August 2018 12:18
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Siemens/Bosch Home Connect Ecosystem

Post by mariopeters »

I also made a version of the plugin.
Now with more separate devices per Home Connect device.
Perhaps someone could test it?
If you find any issues than please let me know by using the GitHub issue tracker (https://github.com/mario-peters/Domotic ... gin/issues).
New feature requests are also more than welcome.
cyrano1966
Posts: 3
Joined: Sunday 14 December 2014 12:58
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Siemens/Bosch Home Connect Ecosystem

Post by cyrano1966 »

Great progress with the new plugin. After correcting plugin.py (Issues already reported by other user in Issues/Github), 7 devices were created in Domoticz for my Bosch Washer and I can see the changes on programme selection in the HC App reflected in Domoticz Device. Also Door Status is working correctly. I will test more tomorrow while doing the laundry :-).

Any ideas on how to implement icons? Any plans to also include the Dryer (Bosch) in the list of appliances?
Thanks
Regards
Marcelo
mariopeters
Posts: 61
Joined: Wednesday 22 August 2018 12:18
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Siemens/Bosch Home Connect Ecosystem

Post by mariopeters »

Both errors are fixed.
Also added power state switch functionality (turning the device on or off/standby (depending on the device)).
More errors and feature requests are welcome by using the earlier mentioned Github issue tracker.

@cyrano1966, I don't have a Home Connect dryer myself.
I will try to make a default plugin and I will send you by private message a test version
Perhaps you could test it and send me the logging back.
With help of the logging I could try to develop some dryer specific subdevices.
You will hear from me soon.
bink
Posts: 14
Joined: Friday 21 August 2015 13:41
Target OS: Linux
Domoticz version:
Contact:

Re: Siemens/Bosch Home Connect Ecosystem

Post by bink »

Stumbled on this nice plugin while trying to automate some of my Siemens Homeconnect devices in the kitchen. Great work!
So far I managed to get the Oven and Dishwasher working. Just wondering if it's also possible to control an "afzuigkap" through this plugin? I would be especially interested to be able to switch it's integrated lighting from domoticz so I can sync it with my HUE light bulbs.
mariopeters
Posts: 61
Joined: Wednesday 22 August 2018 12:18
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Siemens/Bosch Home Connect Ecosystem

Post by mariopeters »

bink wrote: Tuesday 10 November 2020 15:14 Stumbled on this nice plugin while trying to automate some of my Siemens Homeconnect devices in the kitchen. Great work!
So far I managed to get the Oven and Dishwasher working. Just wondering if it's also possible to control an "afzuigkap" through this plugin? I would be especially interested to be able to switch it's integrated lighting from domoticz so I can sync it with my HUE light bulbs.
Bink, I don't have a Home Connect extractor hood (afzuigkap) myself.
I will try to make a default plugin and I will send you by private message a test version
Perhaps you could test it and send me the logging back.
With help of the logging I could try to develop some dryer specific subdevices.
You will hear from me soon.
Ultimato
Posts: 8
Joined: Sunday 05 July 2020 19:57
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: Siemens/Bosch Home Connect Ecosystem

Post by Ultimato »

Hi,

I have implemented the plugin and when running the dishwasher I can request the status of the created devices.
But... I have to manually update them via Hardware --> select plugin --> update
The dishwasher (Bosch) does not trigger any updates.

Is there any way to auto-update?
I'm Running domoticz beta on a Rpi 4
foscolino
Posts: 20
Joined: Monday 02 November 2020 18:38
Target OS: Windows
Domoticz version: 2.20
Location: Italy
Contact:

Re: Siemens/Bosch Home Connect Ecosystem

Post by foscolino »

Hi, sorry, but this plugin work on windows platform on python 3.5.2? :?
i have this error on start:

"failed to load 'plugin.py'"

Code: Select all

 2020-12-16 09:48:08.322 Error: (Domoticz-Home-Connect-Plugin) failed to load 'plugin.py', Python Path used was 'C:\Program Files (x86)\Domoticz\plugins\DomoticzHomeConnect\;C:\Program Files (x86)\Python35-32\python35.zip;C:\Program Files (x86)\Python35-32\Lib\;C:\Program Files (x86)\Python35-32\DLLs\;C:\Program Files (x86)\Domoticz;C:\Program Files (x86)\Python35-32;C:\Program Files (x86)\Python35-32\lib\site-packages'.
2020-12-16 09:48:08.322 Error: (Lavastoviglie Cucina) Module Import failed, exception: 'ImportError'
2020-12-16 09:48:08.322 Error: (Lavastoviglie Cucina) Module Import failed: ' Name: requests'
2020-12-16 09:48:08.322 Error: (Lavastoviglie Cucina) Error Line details not available. 
nschoot
Posts: 27
Joined: Thursday 23 August 2018 23:28
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.11590
Location: Delwijnen
Contact:

Re: Siemens/Bosch Home Connect Ecosystem

Post by nschoot »

Hi,

I am trying to get the plugin to work, but I seem to be stuck at the same point as Geitje/Escape were...

Code: Select all


2020-12-30 20:16:04.163 Status: (Dishwasher) Exiting work loop.
2020-12-30 20:16:04.463 Status: (Dishwasher) Stopping threads.
2020-12-30 20:16:04.463 Status: (Dishwasher) Stopped.
2020-12-30 20:16:04.463 Status: (Dishwasher) Started.
2020-12-30 20:16:05.395 (Dishwasher) onStart called Domoticz-Home-Connect-Plugin
2020-12-30 20:16:05.732 (Dishwasher) device_code: xxx
2020-12-30 20:16:05.732 (Dishwasher) verification_uri_complete: https://api.home-connect.com/security/oauth/device_verify?user_code=yyy
2020-12-30 20:16:05.392 Status: (Dishwasher) Entering work loop.
2020-12-30 20:16:05.393 Status: (Dishwasher) Initialized version 3.2.1, author 'Mario Peters'
2020-12-30 20:16:06.444 (Dishwasher) sessionid: CTYPE html>
2020-12-30 20:16:06.621 (Dishwasher) Device "xxx" is authorized by Home-Connect.
2020-12-30 20:16:07.038 (Dishwasher) Device "xxx" has token:
2020-12-30 20:16:07.271 Error: (Dishwasher) 'onStart' failed 'TypeError':'string indices must be integers'.
2020-12-30 20:16:07.271 Error: (Dishwasher) ----> Line 459 in '/home/pi/domoticz/plugins/Domoticz-Home-Connect-Plugin-master/plugin.py'
2020-12-30 20:16:07.271 Error: (Dishwasher) ----> Line 95 in '/home/pi/domoticz/plugins/Domoticz-Home-Connect-Plugin-master/plugin.py'
2020-12-30 20:16:07.271 Error: (Dishwasher) ----> Line 91 in '/home/pi/domoticz/plugins/Domoticz-Home-Connect-Plugin-master/homeconnecthelper.py'
2020-12-30 20:16:16.785 (Dishwasher) onHeartbeat called
I am not sure what to do to fix this. I did fill in my own CLIENT_ID in the hardware setting in domoticz... but that did not work. so then I also replaced the CLIENT_ID variable in the helper.py, but both don't seem to do anything. What should I replace with what now?

I also have 2 ovens and an induction furnace... so if you have the time, I would like to help with furnace support :)
Using Zwave, Philips Hue, Raspberry Pi, Machinon Theme
nschoot
Posts: 27
Joined: Thursday 23 August 2018 23:28
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.11590
Location: Delwijnen
Contact:

Re: Siemens/Bosch Home Connect Ecosystem

Post by nschoot »

So, this plugin has died again? :shock:
Using Zwave, Philips Hue, Raspberry Pi, Machinon Theme
stingone
Posts: 48
Joined: Monday 26 October 2015 16:28
Target OS: -
Domoticz version:
Contact:

Re: Siemens/Bosch Home Connect Ecosystem

Post by stingone »

Ultimato wrote: Monday 14 December 2020 21:47 Hi,

I have implemented the plugin and when running the dishwasher I can request the status of the created devices.
But... I have to manually update them via Hardware --> select plugin --> update
The dishwasher (Bosch) does not trigger any updates.

Is there any way to auto-update?
Have you solved this issue? having the same problem
Ultimato
Posts: 8
Joined: Sunday 05 July 2020 19:57
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: Siemens/Bosch Home Connect Ecosystem

Post by Ultimato »

Unfortunately i haven't had time to dive into this yet.
I'm Running domoticz beta on a Rpi 4
stingone
Posts: 48
Joined: Monday 26 October 2015 16:28
Target OS: -
Domoticz version:
Contact:

Re: Siemens/Bosch Home Connect Ecosystem

Post by stingone »

joshuas wrote: Thursday 22 October 2020 22:51 Hi

No there are no errors in the domoticz log. I added some extra logline. It's starting up, it is authorised

2020-10-22 22:34:59.159 Status: (Wasmachine) Started.
2020-10-22 22:34:59.788 Status: (Wasmachine) Entering work loop.
2020-10-22 22:34:59.789 Status: (Wasmachine) Initialized version 2.0.2, author 'Mario Peters'
2020-10-22 22:34:59.791 (Wasmachine) onStart called Domoticz-Home-Connect-Plugin
2020-10-22 22:34:59.791 (Wasmachine) Custom Icons: False
2020-10-22 22:34:59.791 (Wasmachine) {}
2020-10-22 22:34:59.791 (Wasmachine) connectHomeConnect
2020-10-22 22:34:59.791 (Wasmachine) scope IdentifyAppliance Washer
2020-10-22 22:35:00.298 (Wasmachine) device_code: blabla
2020-10-22 22:35:00.298 (Wasmachine) verification_uri_complete: https://api.home-connect.com/security/o ... r_code=xxx
2020-10-22 22:35:00.298 (Wasmachine) user_code: xxx
2020-10-22 22:35:01.164 (Wasmachine) sessionid: 0e554cd0-14a6-11eb-883e-8398a77bac45
2020-10-22 22:35:01.969 (Wasmachine) Device "blabla" is authorized by Home-Connect.
2020-10-22 22:35:02.255 (Wasmachine) Device "blabla" has token: [token]
2020-10-22 22:35:02.452 (Wasmachine) name --> Wasmachine
2020-10-22 22:35:02.452 (Wasmachine) brand --> Siemens
2020-10-22 22:35:02.452 (Wasmachine) vib --> WM14T6H6NL
2020-10-22 22:35:02.452 (Wasmachine) connected --> False
2020-10-22 22:35:02.452 (Wasmachine) type --> Washer
2020-10-22 22:35:02.452 (Wasmachine) enumber --> WM14T6H6NL/01
2020-10-22 22:35:02.452 (Wasmachine) haId --> SIEMENS-WM14T6H6NL-68A4
2020-10-22 22:35:02.452 (Wasmachine) getActiveProgram
2020-10-22 22:35:02.637 (Wasmachine) Listen on Home-Connect Webserver - Port: 8081
2020-10-22 22:35:12.159 (Wasmachine) onHeartbeat called
2020-10-22 22:35:22.178 (Wasmachine) onHeartbeat called

And thats it, the onHeartbeat repeats every 10 seconds.
Ever solved this? Now at the same point. Script is running set port 8081 in the hardware and .sh file..but devices are not being updated.
stingone
Posts: 48
Joined: Monday 26 October 2015 16:28
Target OS: -
Domoticz version:
Contact:

Re: Siemens/Bosch Home Connect Ecosystem

Post by stingone »

joshuas wrote: Thursday 22 October 2020 22:51 Hi

No there are no errors in the domoticz log. I added some extra logline. It's starting up, it is authorised

2020-10-22 22:34:59.159 Status: (Wasmachine) Started.
2020-10-22 22:34:59.788 Status: (Wasmachine) Entering work loop.
2020-10-22 22:34:59.789 Status: (Wasmachine) Initialized version 2.0.2, author 'Mario Peters'
2020-10-22 22:34:59.791 (Wasmachine) onStart called Domoticz-Home-Connect-Plugin
2020-10-22 22:34:59.791 (Wasmachine) Custom Icons: False
2020-10-22 22:34:59.791 (Wasmachine) {}
2020-10-22 22:34:59.791 (Wasmachine) connectHomeConnect
2020-10-22 22:34:59.791 (Wasmachine) scope IdentifyAppliance Washer
2020-10-22 22:35:00.298 (Wasmachine) device_code: blabla
2020-10-22 22:35:00.298 (Wasmachine) verification_uri_complete: https://api.home-connect.com/security/o ... r_code=xxx
2020-10-22 22:35:00.298 (Wasmachine) user_code: xxx
2020-10-22 22:35:01.164 (Wasmachine) sessionid: 0e554cd0-14a6-11eb-883e-8398a77bac45
2020-10-22 22:35:01.969 (Wasmachine) Device "blabla" is authorized by Home-Connect.
2020-10-22 22:35:02.255 (Wasmachine) Device "blabla" has token: [token]
2020-10-22 22:35:02.452 (Wasmachine) name --> Wasmachine
2020-10-22 22:35:02.452 (Wasmachine) brand --> Siemens
2020-10-22 22:35:02.452 (Wasmachine) vib --> WM14T6H6NL
2020-10-22 22:35:02.452 (Wasmachine) connected --> False
2020-10-22 22:35:02.452 (Wasmachine) type --> Washer
2020-10-22 22:35:02.452 (Wasmachine) enumber --> WM14T6H6NL/01
2020-10-22 22:35:02.452 (Wasmachine) haId --> SIEMENS-WM14T6H6NL-68A4
2020-10-22 22:35:02.452 (Wasmachine) getActiveProgram
2020-10-22 22:35:02.637 (Wasmachine) Listen on Home-Connect Webserver - Port: 8081
2020-10-22 22:35:12.159 (Wasmachine) onHeartbeat called
2020-10-22 22:35:22.178 (Wasmachine) onHeartbeat called

And thats it, the onHeartbeat repeats every 10 seconds.
Ever solved this? Now at the same point. Script is running set port 8081 in the hardware and .sh file..but devices are not being updated.
Post Reply

Who is online

Users browsing this forum: Droll and 1 guest