Domoticz plugin to control your Comet Blue radiator valve over bluetooth with Domoticz by using the script written by Torsten Tränkner (https://www.torsten-traenkner.de/wissen/smarthome/heizung.php)
You can buy this devices under different names: Xavax Hama, Sygonix HT100 BT, Eurotronic Comet Blue.
The plugin was tested on a Raspberry Pi 3 with integrated bluetooth.
curl -L https://install.domoticz.com | bash
python3 -V
apt-get install python3.x libpython3.x python3.x-dev #(where 'x' is the version from above: e,g libpython3.7)
apt-get install bluez bluetooth expect
wget https://www.torsten-traenkner.de/wissen/smarthome/heaterControl.exp
chmod 755 heaterControl.exp
cp heaterControl.exp /usr/local/bin/
cd domoticz/plugins
git clone https://github.com/damsma/cometblue-domoticz.git
systemctl restart domoticz
First you have to find out the Bluetooth Device Address of your device:
hciconfig hci0 up
hcitool lescan
This will give you the list of found devices, search for the device named "Comet Blue" and copy the adress, it will look something like this:
A0:B0:C0:D0:E0:D0 Comet Blue
In Domoticz go to setup->hardware, select the plugin "Comet Blue radiator valve (cometblue-domoticz)", fill out this three fields:
- Bluetooth Device Address <- the address you found before
- Pin-Code <- in this version, you have to type in the pin code in little endian format (see https://www.torsten-traenkner.de/wissen/smarthome/heizung.php), for a new device this will be 00000000
- Poll interval <- the interval in seconds, how often the plugin will request the actual temperature from the device
Done! The plugin will now create 2 new devices for you in domoticz:
- temperature device <- shows the actual temperature of the room
- utility device <- for temperature control
exec hciconfig hci0 down