Page 1 of 1

Domoticz with Bluetooth

Posted: Friday 16 March 2018 18:27
by rowanbradley
Can I use Domoticz to control a bluetooth radiator valve made by Equiva, sold by Reichelt? What would I need in order to control this device? All I need to do is to be able to open and close the valve (either fully, or to some % open) when readings from the sensors tell me to. Although this valve also contains a temperature sensor, I'm not currently planning to use that.

How would I get Domoticz to communicate with the valve? Can it natively communicate with a Bluetooth device? Or if not, can I write the code to do this?

What sort of base-station type device would I need, preferably that will plug into my wired Ethernet network, or connect to my home network by WiFi, and communicate with Bluetooth devices? If you know of a device that does this for a reasonable cost, I'd love to hear of it.

Thanks - Rowan

Re: Domoticz with Bluetooth

Posted: Friday 16 March 2018 18:52
by derjoern
I was on the same journey. This devices can communicate via Bluetooth LE. For this you can use a Raspberry PI 3 or a Zero and put

https://github.com/xrucka/cometblue

on it which will give you several possibilities to control it. From this point you will need some scripting to control it via Domoticz. I thought some Node-Red magic would do this but the communication was unreliable as hell. So try for yourself and send some feedback.

Re: Domoticz with Bluetooth

Posted: Friday 23 March 2018 19:31
by rowanbradley
Thanks for your reply. This sounds a good approach.

Do you know which Bluetooth profiles the device supports? Does it support the serial port profile?

Do you know the commands to do all the things that this device can do, e.g.
  1. Open the valve
  2. Close the valve
  3. Maybe open the valve to a certain percentage
  4. Read the temperature from the sensor
  5. Read the battery level
  6. Read the currently programmed schedule (a sequence of temperature and start and stop times)
  7. Set a new schedule
  8. Sense manual operation of the rotary knob and the push buttons on the device
  9. Show something in the display
  10. Upgrade the firmware
  11. Anything else that the device can do under Bluetooth control
Is this all documented somewhere?

Thanks - Rowan

Re: Domoticz with Bluetooth

Posted: Monday 26 March 2018 16:51
by rowanbradley
Is the Comet Blue exactly the same and fully compatible wit the Equiva EHT CLASSIC BLV2 as bought from Reichelt then?
In your original message you said "I was on the same journey". Did you actually achieve this, and get the valve controllable and readable from Domoticz? Did you have to write or modify or debug any software to do this, or was it achievable just with the Raspberry Pi and Comet Blue software?

Many thanks - Rowan

Re: Domoticz with Bluetooth

Posted: Thursday 29 March 2018 9:27
by franciss
Thanks for the link, derjoern!

Re: Domoticz with Bluetooth

Posted: Sunday 01 March 2020 20:34
by damsmaa
I created a plugin for the comet blue and compatible devices:

https://github.com/damsma/cometblue-domoticz

Re: Domoticz with Bluetooth

Posted: Sunday 01 March 2020 21:55
by ronaldbro
damsmaa wrote: Sunday 01 March 2020 20:34 I created a plugin for the comet blue and compatible devices:

https://github.com/damsma/cometblue-domoticz
Cool, thanks. I tried to get a connection to these valves (Sygonix HT100BT) before and never succeeded. Since then I regret ever buying them. But got it working right away now :)
It also works great from HomeKit (homebridge) now.

Re: Domoticz with Bluetooth

Posted: Saturday 07 March 2020 11:32
by ronaldbro
I did get some problems using this plugin in combination with the Xiaomi Mi Flora plugin. The Mi Flora's stopped getting updates after the radiator valve was updated.
I found that heaterControl.exp closes bluetooth and that was the problem. As an experiment I commented all 3 lines with "exec hciconfig hci0 down" in heaterControl.exp and so far it this works fine.

Re: Domoticz with Bluetooth

Posted: Sunday 08 March 2020 22:47
by damsmaa
ronaldbro wrote: Saturday 07 March 2020 11:32 I did get some problems using this plugin in combination with the Xiaomi Mi Flora plugin. The Mi Flora's stopped getting updates after the radiator valve was updated.
I found that heaterControl.exp closes bluetooth and that was the problem. As an experiment I commented all 3 lines with "exec hciconfig hci0 down" in heaterControl.exp and so far it this works fine.
Thank you for your feedback, i added this to the readme.