Page 2 of 5
Re: Siemens/Bosch Home Connect Ecosystem
Posted: Thursday 15 November 2018 14:41
by mrelfire
same problems with windows
Name: requests
2018-11-15 14:37:54.078 Error: (Home-Connect) failed to load 'plugin.py', Python Path used was 'C:\Program Files (x86)\Domoticz\plugins\Domoticz-Home-Connect-Plugin\;C:\Program Files (x86)\Python37-32\python37.zip;C:\Program Files (x86)\Python37-32\Lib\;C:\Program Files (x86)\Python37-32\DLLs\;C:\Program Files (x86)\Domoticz'.
2018-11-15 14:37:54.079 Error: (lave_vaisselle) Module Import failed, exception: 'ModuleNotFoundError'
2018-11-15 14:37:54.079 Error: (lave_vaisselle) Module Import failed: ' Name: requests'
2018-11-15 14:37:54.079 Error: (lave_vaisselle) Error Line details not available.
2018-11-15 14:38:58.469 Error: lave_vaisselle hardware (16) thread seems to have ended unexpectedly
2018-11-15 14:39:12.491 Error: lave_vaisselle hardware (16) thread seems to have ended unexpectedly
2018-11-15 14:39:26.513 Error: lave_vaisselle hardware (16) thread seems to have ended unexpectedly
2018-11-15 14:39:40.535 Error: lave_vaisselle hardware (16) thread seems to have ended unexpectedly
Re: Siemens/Bosch Home Connect Ecosystem
Posted: Tuesday 20 November 2018 8:56
by mrelfire
trying to investigate:
CLIENT_ID => should be asked like user/pwd
the import at the beginning when "you move them" => you have other errors with "sseclient"
Re: Siemens/Bosch Home Connect Ecosystem
Posted: Saturday 13 July 2019 23:12
by Geitje
Is development of this plugin dead?
I hope someone can continue it? I bought I Bosch Washing Machine with Home Connect...
Re: Siemens/Bosch Home Connect Ecosystem
Posted: Monday 31 August 2020 18:15
by mariopeters
I made a new version of this plugin and it currently works for my dishwasher and washer.
Will shortly alter the wiki, so it will be clear how this plugin works.
Re: Siemens/Bosch Home Connect Ecosystem
Posted: Monday 31 August 2020 22:15
by Knibor
Hi MarioPeters,
Great that you will post the wiki, I didn't not know what to fill in, what "port" and when I install the plugin there are no Devices
Re: Siemens/Bosch Home Connect Ecosystem
Posted: Monday 31 August 2020 23:00
by Geitje
Thanks for updating this plugin. I certainly will test and try to help to debug. I also have an oven with Home Connect. How can I help to include that in the plugin?
Re: Siemens/Bosch Home Connect Ecosystem
Posted: Friday 04 September 2020 17:03
by EscApe
Hi MarioPeters,
Thanks for sharing your plugin! I just bought a Siemens dishwasher and was looking forward to testing it.
I understand that the icons are copyrighted, but it seems they are required for the plugin to even start(?) Thats means I have to put time and effort into finding icons and creating the correct domoticz files before even being able to see if this plugin will serve my needs.
Could you make the use of custom icons optional, so the plugin can be started and tested without them?
Cheers,
EscApe
Re: Siemens/Bosch Home Connect Ecosystem
Posted: Tuesday 08 September 2020 11:31
by mariopeters
Thans you for downloading the Plugin.
Your suggestion sounds right.
I’m going to work on it this evening and I will keep you informed about the progress.
Re: Siemens/Bosch Home Connect Ecosystem
Posted: Wednesday 09 September 2020 9:07
by mariopeters
EscApe wrote: ↑Friday 04 September 2020 17:03
Hi MarioPeters,
Thanks for sharing your plugin! I just bought a Siemens dishwasher and was looking forward to testing it.
I understand that the icons are copyrighted, but it seems they are required for the plugin to even start(?) Thats means I have to put time and effort into finding icons and creating the correct domoticz files before even being able to see if this plugin will serve my needs.
Could you make the use of custom icons optional, so the plugin can be started and tested without them?
Cheers,
EscApe
EscApe,
I just committed a new version of the Plugin.
The icons should be optional (dropdown list True/False).
Could you let me know if everything works fine?
Mario
Re: Siemens/Bosch Home Connect Ecosystem
Posted: Tuesday 15 September 2020 14:47
by EscApe
Hi Mario,
Thanks for removing the icon-requirement! Unfortunately I still can't get the plugin to start.
Code: Select all
2020-09-15 14:27:40.795 Status: (Siemens Home) Initialized version 2.0.1, author 'Mario Peters'
2020-09-15 14:27:42.197 Error: (Siemens Home) 'onStart' failed 'TypeError':'string indices must be integers'.
2020-09-15 14:27:42.197 Error: (Siemens Home) ----> Line 285 in '/home/pi/domoticz/plugins/siemensconnect/plugin.py', function onStart
2020-09-15 14:27:42.197 Error: (Siemens Home) ----> Line 125 in '/home/pi/domoticz/plugins/siemensconnect/plugin.py', function onStart
2020-09-15 14:27:42.197 Error: (Siemens Home) ----> Line 90 in '/home/pi/domoticz/plugins/siemensconnect/homeconnecthelper.py', function gethaId
The homeconnectSSE script would not start either because it was hardcoded to python3.6, and I am running python3.7. After changing it to python3 it will run, but cannot connect to domoticz. Which makes sense since it seems to connect to the plugin that is not running.
For now I was able to add some basis integration using ifttt
Re: Siemens/Bosch Home Connect Ecosystem
Posted: Tuesday 15 September 2020 15:43
by mariopeters
EscApe wrote: ↑Tuesday 15 September 2020 14:47
Hi Mario,
Thanks for removing the icon-requirement! Unfortunately I still can't get the plugin to start.
Code: Select all
2020-09-15 14:27:40.795 Status: (Siemens Home) Initialized version 2.0.1, author 'Mario Peters'
2020-09-15 14:27:42.197 Error: (Siemens Home) 'onStart' failed 'TypeError':'string indices must be integers'.
2020-09-15 14:27:42.197 Error: (Siemens Home) ----> Line 285 in '/home/pi/domoticz/plugins/siemensconnect/plugin.py', function onStart
2020-09-15 14:27:42.197 Error: (Siemens Home) ----> Line 125 in '/home/pi/domoticz/plugins/siemensconnect/plugin.py', function onStart
2020-09-15 14:27:42.197 Error: (Siemens Home) ----> Line 90 in '/home/pi/domoticz/plugins/siemensconnect/homeconnecthelper.py', function gethaId
The homeconnectSSE script would not start either because it was hardcoded to python3.6, and I am running python3.7. After changing it to python3 it will run, but cannot connect to domoticz. Which makes sense since it seems to connect to the plugin that is not running.
For now I was able to add some basis integration using ifttt
Hello,
thanks for your reaction.
I agree on you that the hardcoded "python3.6" isn't necessary and I will fix this.
I don't know why the plugin won't start.
I need some more logging.
What kind of loglevel do you have.
There should be some more info logging before the TypeError.
Do you see some logging about "device_code", "verification_uri_complete" and "Device ******* has token ******".
Please could you send it to me in a private message?
Re: Siemens/Bosch Home Connect Ecosystem
Posted: Wednesday 16 September 2020 8:41
by EscApe
Here is some additional logging. I have replaced identifiable codes with "[[removed code]]". The bits after "has token:" and "sessionid" are really empty (not removed by me).
Code: Select all
2020-09-16 08:33:04.713 (Vaatwasser) onStart called Domoticz-Home-Connect-Plugin
2020-09-16 08:33:04.713 (Vaatwasser) Custom Icons: False
2020-09-16 08:33:04.713 (Vaatwasser) {}
2020-09-16 08:33:04.430 Status: (Vaatwasser) Started.
2020-09-16 08:33:04.712 Status: (Vaatwasser) Entering work loop.
2020-09-16 08:33:04.712 Status: (Vaatwasser) Initialized version 2.0.1, author 'Mario Peters'
2020-09-16 08:33:05.113 (Vaatwasser) device_code: [[removed code]]
2020-09-16 08:33:05.113 (Vaatwasser) verification_uri_complete: https://api.home-connect.com/security/oauth/device_verify?user_code=[[removed code]]
2020-09-16 08:33:05.466 (Vaatwasser) sessionid: CTYPE html>
2020-09-16 08:33:05.466 <html>
2020-09-16 08:33:05.466
2020-09-16 08:33:05.466 <head>
2020-09-16 08:33:05.466 <meta http-equiv=
2020-09-16 08:33:05.581 (Vaatwasser) Device "[[removed code]]" is authorized by Home-Connect.
2020-09-16 08:33:05.995 (Vaatwasser) Device "[[removed code]]" has token:
2020-09-16 08:33:06.143 Error: (Vaatwasser) 'onStart' failed 'TypeError':'string indices must be integers'.
2020-09-16 08:33:06.143 Error: (Vaatwasser) ----> Line 285 in '/home/pi/domoticz/plugins/siemensconnect/plugin.py', function onStart
2020-09-16 08:33:06.143 Error: (Vaatwasser) ----> Line 125 in '/home/pi/domoticz/plugins/siemensconnect/plugin.py', function onStart
2020-09-16 08:33:06.143 Error: (Vaatwasser) ----> Line 90 in '/home/pi/domoticz/plugins/siemensconnect/homeconnecthelper.py', function gethaId
2020-09-16 08:33:15.676 (Vaatwasser) onHeartbeat called
Re: Siemens/Bosch Home Connect Ecosystem
Posted: Monday 21 September 2020 9:55
by Geitje
Today I tried to install the plugin. To get it running I also had to install the SSEclient:
I got 2 warnings when installing the SSEclient, there was an update of PIP, and my python version being too old.
If I do this, Pyton versions seem ok?
Code: Select all
pi@raspberrypi:~/dtgbot $ python --version
Python 2.7.16
pi@raspberrypi:~/dtgbot $ python3 --version
Python 3.7.3
I am reluctant to update python as I use some old plugins, and I have experienced in the past they wont work if I update. So I just left this as is.
I created the washer.sh service file. After creating it I had to do:
Code: Select all
sudo chmod +x washer.sh
sudo systemctl daemon-reload
Now when I start Domoticz the plugin is not starting. It is still not finding SSEclient, probably because of old Python versions.
Code: Select all
2020-09-21 09:42:33.891 (PiMonitor) Debug logging mask set to: NONE
2020-09-21 09:42:33.895 (Countdown) Debug logging mask set to: NONE
2020-09-21 09:42:33.881 Error: (Domoticz-Home-Connect-Plugin) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/HomeConnect/:/usr/lib/python37.zip:/usr/lib/python3.7:/usr/lib/python3.7/lib-dynload:/usr/local/lib/python3.7/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.7/dist-packages'.
2020-09-21 09:42:33.881 Error: (Bosch/Siemens Home Connect) Module Import failed, exception: 'ModuleNotFoundError'
2020-09-21 09:42:33.881 Error: (Bosch/Siemens Home Connect) Module Import failed: ' Name: sseclient'
2020-09-21 09:42:33.881 Error: (Bosch/Siemens Home Connect) Error Line details not available.
2020-09-21 09:42:34.293 (Zigate Zigbee) Device: 31 - ID: 802, Name: 'Trillingssensor 1 - trilintensiteit', nValue: 0, sValue: '2'
So it can't find python 3.7 or SSEclient, while both are installed? I do not understand this...
If I find time I will try it on my other pi with updated Python and Pip.
Re: Siemens/Bosch Home Connect Ecosystem
Posted: Monday 21 September 2020 16:53
by EscApe
Geitje wrote: ↑Monday 21 September 2020 9:55
Today I tried to install the plugin. To get it running I also had to install the SSEclient:
I got 2 warnings when installing the SSEclient, there was an update of PIP, and my python version being too old.
If I do this, Pyton versions seem ok?
Code: Select all
pi@raspberrypi:~/dtgbot $ python --version
Python 2.7.16
pi@raspberrypi:~/dtgbot $ python3 --version
Python 3.7.3
I am reluctant to update python as I use some old plugins, and I have experienced in the past they wont work if I update. So I just left this as is.
I created the washer.sh service file. After creating it I had to do:
Code: Select all
sudo chmod +x washer.sh
sudo systemctl daemon-reload
Now when I start Domoticz the plugin is not starting. It is still not finding SSEclient, probably because of old Python versions.
Code: Select all
2020-09-21 09:42:33.891 (PiMonitor) Debug logging mask set to: NONE
2020-09-21 09:42:33.895 (Countdown) Debug logging mask set to: NONE
2020-09-21 09:42:33.881 Error: (Domoticz-Home-Connect-Plugin) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/HomeConnect/:/usr/lib/python37.zip:/usr/lib/python3.7:/usr/lib/python3.7/lib-dynload:/usr/local/lib/python3.7/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.7/dist-packages'.
2020-09-21 09:42:33.881 Error: (Bosch/Siemens Home Connect) Module Import failed, exception: 'ModuleNotFoundError'
2020-09-21 09:42:33.881 Error: (Bosch/Siemens Home Connect) Module Import failed: ' Name: sseclient'
2020-09-21 09:42:33.881 Error: (Bosch/Siemens Home Connect) Error Line details not available.
2020-09-21 09:42:34.293 (Zigate Zigbee) Device: 31 - ID: 802, Name: 'Trillingssensor 1 - trilintensiteit', nValue: 0, sValue: '2'
So it can't find python 3.7 or SSEclient, while both are installed? I do not understand this...
If I find time I will try it on my other pi with updated Python and Pip.
Maybe sseclient was only installed to a user environment, not being the one Domoticz is using (root user vs pi user). Or maybe only the python2 version was installed. You could try
That should install the python3 version of the module system-wide.
Re: Siemens/Bosch Home Connect Ecosystem
Posted: Monday 21 September 2020 22:54
by Geitje
That got me a lot further. Thanks.
Now the plugin is starting, but I get the same error as you got:
- Spoiler: show
Code: Select all
2020-09-21 22:50:26.236 (Zwave USB) Temp (Vloerverwarming badkamer temperatuur vloer)
2020-09-21 22:50:32.994 Status: (Bosch/Siemens Home Connect) Started.
2020-09-21 22:50:34.126 (Bosch/Siemens Home Connect) onStart called Domoticz-Home-Connect-Plugin
2020-09-21 22:50:34.126 (Bosch/Siemens Home Connect) Custom Icons: False
2020-09-21 22:50:34.126 (Bosch/Siemens Home Connect) {}
2020-09-21 22:50:34.595 (Bosch/Siemens Home Connect) device_code: xxxxxxx-xxxx-xxxx-xxxx-xxxxxxx
2020-09-21 22:50:34.595 (Bosch/Siemens Home Connect) verification_uri_complete: https://api.home-connect.com/security/oauth/device_verify?user_code=XXXX-XXXX
2020-09-21 22:50:34.973 (Bosch/Siemens Home Connect) sessionid: CTYPE html>
2020-09-21 22:50:34.973 <html>
2020-09-21 22:50:34.973
2020-09-21 22:50:34.973 <head>
2020-09-21 22:50:34.973 <meta http-equiv=
2020-09-21 22:50:34.123 Status: (Bosch/Siemens Home Connect) Entering work loop.
2020-09-21 22:50:34.124 Status: (Bosch/Siemens Home Connect) Initialized version 2.0.1, author 'Mario Peters'
2020-09-21 22:50:35.092 (Bosch/Siemens Home Connect) Device "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxx" is authorized by Home-Connect.
2020-09-21 22:50:35.459 (Bosch/Siemens Home Connect) Device "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxx" has token:
2020-09-21 22:50:35.596 (Nefit Easy Thermostaat ) Thermostat (Nefit thermostaat woonkamer)
2020-09-21 22:50:35.621 (Nefit Easy Thermostaat ) Temp (Temperatuur kamer)
2020-09-21 22:50:35.787 (Nefit Easy Thermostaat ) Temp (Nefit flowtemperature)
2020-09-21 22:50:35.666 Error: (Bosch/Siemens Home Connect) 'onStart' failed 'TypeError':'string indices must be integers'.
2020-09-21 22:50:35.666 Error: (Bosch/Siemens Home Connect) ----> Line 285 in '/home/pi/domoticz/plugins/HomeConnect/plugin.py', function onStart
2020-09-21 22:50:35.666 Error: (Bosch/Siemens Home Connect) ----> Line 125 in '/home/pi/domoticz/plugins/HomeConnect/plugin.py', function onStart
2020-09-21 22:50:35.666 Error: (Bosch/Siemens Home Connect) ----> Line 90 in '/home/pi/domoticz/plugins/HomeConnect/homeconnecthelper.py', function gethaId
2020-09-21 22:50:45.202 (Bosch/Siemens Home Connect) onHeartbeat called
2020-09-21 22:50:55.596 (Bosch/Siemens Home Connect) onHeartbeat called
2020-09-21 22:51:05.597 (Bosch/Siemens Home Connect) onHeartbeat called
2020-09-21 22:51:06.243 (Nefit Easy Thermostaat ) Thermostat (Nefit thermostaat woonkamer)
2020-09-21 22:51:06.289 (Nefit Easy Thermostaat ) Temp (Temperatuur kamer)
2020-09-21 22:51:06.424 (Nefit Easy Thermostaat ) Temp (Nefit flowtemperature)
2020-09-21 22:51:15.567 (Bosch/Siemens Home Connect) onHeartbeat called
2020-09-21 22:51:16.871 (433Mhz RFlink Gateway) Temp + Humidity (Temperatuur buiten)
2020-09-21 22:51:25.580 (Bosch/Siemens Home Connect) onHeartbeat called
Re: Siemens/Bosch Home Connect Ecosystem
Posted: Wednesday 23 September 2020 11:53
by mariopeters
Geitje/EscApe, I think I know what's going wrong.
Presumably it has to do with the unique id of the plugin.
To be sure of this I would like to have tested 1 and other.
Tonight I'm going to make a test version of the plugin and I will send it to you in personal message.
If you could test it and send me the outcome then perhaps we can make it work for you.
For your information.
Recently I bought a Siemens Oven and it is also (a little bit supported know).
Have to develop some more functionality, but first let me make the plugin work for you guys.
Re: Siemens/Bosch Home Connect Ecosystem
Posted: Wednesday 23 September 2020 15:51
by EscApe
mariopeters wrote: ↑Wednesday 23 September 2020 11:53
Geitje/EscApe, I think I know what's going wrong.
Presumably it has to do with the unique id of the plugin.
To be sure of this I would like to have tested 1 and other.
Tonight I'm going to make a test version of the plugin and I will send it to you in personal message.
If you could test it and send me the outcome then perhaps we can make it work for you.
For your information.
Recently I bought a Siemens Oven and it is also (a little bit supported know).
Have to develop some more functionality, but first let me make the plugin work for you guys.
I think I can backup your suspicion. After generating my own CLIENT_ID for homeconnecthelper.py the plugin starts and a "Dishwasher-Monitor" device is created. I guess I'll have to run a dishwasher cycle to actually test if it gets updated (value is now 0).
Re: Siemens/Bosch Home Connect Ecosystem
Posted: Wednesday 23 September 2020 16:29
by mariopeters
The fix will be making the clientid configurable.
Almost got it finished.
@geitje, could you also create a Home Connect Developer account and an application.
As promissed I will send you a nee plug-in fit testing purposes tonight.
@EscApe, indeed the zero will change if you are going to use the device.
Don’t forget to run the homeconnectSSE process in the background.
Re: Siemens/Bosch Home Connect Ecosystem
Posted: Saturday 17 October 2020 11:40
by joshuas
I installed the plugin but it doesn't update the status in Domoticz. Did I forget one step?
I installed it, created a device (washing machine), copied and renamed the homeconnectSSE.sh to /etc/init.d/homeconnectSSE_washer.sh
Edited the file:
DIR={path to the domoticz plugin dir}
DAEMON=$DIR/homeconnectSSE.py
DEVICE_NAME=Washer
DOMOTICZ_IP={domoticz server ip}
DOMOTICZ_PORT={portnumber}
DAEMON_NAME=homeconnectSSE_$DEVICE_NAME
DAEMON_LOG=/var/log/$DAEMON_NAME.log
Started the daemon, created a device and...
In the domoticz log file I see a line every 10 seconds:
(Wasmachine) onHeartbeat called
and in the /var/log/$DAEMON_NAME.log
2020-10-17 10:48:29,875 Start...
2020-10-17 10:48:29,927
2020-10-17 10:48:29,978 Restarting after 1 minutes...
2020-10-17 10:49:30,022 Start...
2020-10-17 10:49:30,055
2020-10-17 10:49:30,107 Restarting after 2 minutes...
2020-10-17 10:51:30,198 Start...
2020-10-17 10:51:30,215
2020-10-17 10:51:30,267 Restarting after 3 minutes...
2020-10-17 10:54:30,365 Start...
2020-10-17 10:54:30,410
2020-10-17 10:54:30,461 Restarting after 4 minutes...
2020-10-17 10:58:30,465 Start...
2020-10-17 10:58:30,522
2020-10-17 10:58:30,574 Restarting after 5 minutes...
2020-10-17 11:03:30,669 Start...
2020-10-17 11:03:30,717
2020-10-17 11:03:30,770 Restarting after 6 minutes...
2020-10-17 11:09:30,793 Start...
2020-10-17 11:09:30,812
2020-10-17 11:09:30,864 Restarting after 7 minutes...
2020-10-17 11:16:30,940 Start...
2020-10-17 11:16:30,973
2020-10-17 11:16:31,028 Restarting after 8 minutes...
2020-10-17 11:24:31,046 Start...
2020-10-17 11:24:31,099
2020-10-17 11:24:31,151 Restarting after 9 minutes...
2020-10-17 11:33:31,198 Start...
2020-10-17 11:33:31,217
2020-10-17 11:33:31,269 Restarting after 10 minutes...
etc
Re: Siemens/Bosch Home Connect Ecosystem
Posted: Tuesday 20 October 2020 16:52
by Geitje
What is the result if you run in terminal: "sudo ./Washer.sh<or different daemon-name> status" from the plugin dir?
I had to change line 1 of plugin.py. Changed python version from 3.6 naar 3.7, as I run that one.