Page 1 of 1

Touch base: options for Bosch Easycontrol CT200?

Posted: Monday 30 September 2024 14:30
by Domoberry
Hi Forum,
I'm looking for a practical way to add the Bosch Easycontrol CT200 thermostat to Domoticz. I previsously had the Nefit Easy CT100 up & running, objective is to get something similar for the CT200.
I noted a plugin https://github.com/ggraat/domoticz-easycontrol-plugin which uses the Bosch-XMPP code https://github.com/robertklep/bosch-xmpp. This looks very promising!
Could someone share some experience/guidance/steps to install this on an RPI?

Update: For experimenting purposes, I installed bosch-xmpp on a Windows system. With CLI commands, I was able to obtain data via the Bosch system originating from my CT200 Easycontrol. Also, when setting bosch-xmpp in 'bridge' mode, I could issue http requests, like those created by the plugin, using Postman to Localhost. It is likely I can get to the same level on a RPI as well. So, it seems all elements are there to get the CT200 Easycontrol up&running in Domoticz.
However, due to my limited knowledge, I'm confused about how for example to ensure CT200 login credentials are practically handled and how to ensure that the bosch-xmpp code is started in 'bridge mode' each time the RPI is booted.
In case someone has this setup in use, I would appreciate additional detail on how it was setup.

Re: Touch base: options for Bosch Easycontrol CT200?

Posted: Thursday 03 October 2024 17:31
by Domoberry
In the meantime I got the setup working and the Easycontrol CT200 thermostat is shown in Domoticz. Seems read-only (tbc).
The part I (as novice) was missing was how to ensure how the bosch-xmpp service is started at each boot-up of the RPI, including the needed credentials as well placing bosch-xmpp in 'bridge (server) mode.
I used 'systemd' for that purpose with the following startup file etc/systemd/system/easycontrolCT200.service:

Code: Select all

[Unit]
Description=Easycontrol CT200 service
After=network.target

[Service]
Type=idle
User=pi
# change the username and commandline parameters here:
ExecStart=/usr/bin/bosch-xmpp --serial=xxx --access-key=yyy --password=zzz easycontrol bridge
Restart=always # always restart
RestartSec=60

[Install]
WantedBy=multi-user.target
using some commands to ensure bosch-xmpp is started each time:

Code: Select all

$ sudo systemctl start easycontrolCT200.service
$ sudo systemctl enable easycontrolCT200.service
See systemd documentation for more functions.
There are other ways of achieving the same, so this might not be the optimal (or even correct) approach, e.g. "use at your own risk" :-)
Feel free to point out improvements!

Re: Touch base: options for Bosch Easycontrol CT200?

Posted: Thursday 03 October 2024 20:23
by waltervl
Better check this topic as there users are available https://domoticz.com/forum/viewtopic.ph ... 74#p175374