Support for the Resol VBUS protocol?

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.
User avatar
bbqkees
Posts: 429
Joined: Sunday 17 August 2014 21:01
Target OS: Linux
Domoticz version: 3.8x
Location: The Netherlands
Contact:

Re: Support for the Resol VBUS protocol?

Post by bbqkees » Saturday 16 January 2016 1:41

Serial debug output looking good:
Image

Still need a bit of bit-shifting or masking regarding the temp values because sometimes the value is reported as negative, which should not happen.

I also used the floorplan option in Domoticz to show the diagram of my system:
Image
Intel NUC-> Philips Hue, Aeon Zwave stick V2, Qubino, Fibaro, Everspring, Philio, RFXCom, X10, Harmony Hub, Xiaomi Flora + Gateway, BS440. And P1 / Resol VBus / Nefit EMS bus / DHT21 / DS18B20 / Sonoff / I2C display, all via Arduino/ESP8266.

User avatar
nayr
Posts: 430
Joined: Tuesday 11 November 2014 19:42
Target OS: Linux
Domoticz version: github
Location: Denver, CO - USA
Contact:

Re: Support for the Resol VBUS protocol?

Post by nayr » Saturday 16 January 2016 3:57

Check out the MQTT interface before getting into a bunch of http gets, it was designed for these tasks..

I am in the midst of rewriting all my custom apps to interface via MQTT, its much cleaner and makes scripting on the domoticz side friendly when your not creating logic loops.

Its still json, but the workflow is better with two way communication... the http gets are cheap and easy, but better suited for one unidirectional input/output.. your not setting up and tearing down connections repeatedly for starters... it keeps an open connection running between the two continuously, really shines when you have multiple devices your updating at the same time.

Wish I would have found it before I wrote all these json get interfaces, just some advice.
Debian Jessie: CuBox-i4 (Primary) w/Static Routed IP and x509 / BeagleBone with OpenSprinkler / BeagleBone Planted Aquarium / 3x Raspbery Pi2b GPIO Slaves
Elemental Theme - node-domoticz-mqtt - Home Theatre Controller - AndroidTV Simple OSD Remote - x509 TLS Auth

User avatar
bbqkees
Posts: 429
Joined: Sunday 17 August 2014 21:01
Target OS: Linux
Domoticz version: 3.8x
Location: The Netherlands
Contact:

Re: Support for the Resol VBUS protocol?

Post by bbqkees » Sunday 17 January 2016 23:23

nayr wrote:Check out the MQTT interface before getting into a bunch of http gets, it was designed for these tasks..
Ok thanks for the tip. Will have a look at it.
Intel NUC-> Philips Hue, Aeon Zwave stick V2, Qubino, Fibaro, Everspring, Philio, RFXCom, X10, Harmony Hub, Xiaomi Flora + Gateway, BS440. And P1 / Resol VBus / Nefit EMS bus / DHT21 / DS18B20 / Sonoff / I2C display, all via Arduino/ESP8266.

User avatar
bbqkees
Posts: 429
Joined: Sunday 17 August 2014 21:01
Target OS: Linux
Domoticz version: 3.8x
Location: The Netherlands
Contact:

Re: Support for the Resol VBUS protocol?

Post by bbqkees » Monday 18 January 2016 11:25

I solved the issues I had with incorrect temperature values.
Everything looks fine now.
There were also a number of gaps in the reporting, they appear to be solved too.

Image

Image

The code needs a bit of cleanup, additional commenting and removal of my IP's and IDX'es before I can publish it.

This is my temporary setup:
Image
Intel NUC-> Philips Hue, Aeon Zwave stick V2, Qubino, Fibaro, Everspring, Philio, RFXCom, X10, Harmony Hub, Xiaomi Flora + Gateway, BS440. And P1 / Resol VBus / Nefit EMS bus / DHT21 / DS18B20 / Sonoff / I2C display, all via Arduino/ESP8266.

User avatar
bbqkees
Posts: 429
Joined: Sunday 17 August 2014 21:01
Target OS: Linux
Domoticz version: 3.8x
Location: The Netherlands
Contact:

Re: Support for the Resol VBUS protocol?

Post by bbqkees » Tuesday 19 January 2016 1:23

Code has been published here: https://github.com/bbqkees/vbus-arduino-domoticz
If someone has some improvements let me know.

Also made a Wiki page: http://www.domoticz.com/wiki/VBusDecoder
Intel NUC-> Philips Hue, Aeon Zwave stick V2, Qubino, Fibaro, Everspring, Philio, RFXCom, X10, Harmony Hub, Xiaomi Flora + Gateway, BS440. And P1 / Resol VBus / Nefit EMS bus / DHT21 / DS18B20 / Sonoff / I2C display, all via Arduino/ESP8266.

Henos
Posts: 1
Joined: Wednesday 03 February 2016 23:44
Target OS: Raspberry Pi
Domoticz version:
Location: Joure
Contact:

Re: Support for the Resol VBUS protocol?

Post by Henos » Wednesday 20 April 2016 16:08

I am in possession of a solar water heater with Resol BX controller with VBus output. Try the VBus read with UART and Arduino Mega and the program of bbqkees. What should I omit in this program to read out only S1, S2, S3, S4, P1 and P2 via serial Pc? 0x7421 is the code for my Resol BX. Who can help me?

User avatar
bbqkees
Posts: 429
Joined: Sunday 17 August 2014 21:01
Target OS: Linux
Domoticz version: 3.8x
Location: The Netherlands
Contact:

Re: Support for the Resol VBUS protocol?

Post by bbqkees » Thursday 21 April 2016 9:30

If you only want to interface it with a pc you would only need to load a serial copy sketch in the arduino (See the examples in the Arduino IDE).
You can then use the Arduino als serial input for the default Resol software.
The Resol software will decode the datagrams.

If you want the data in Domoticz via serial, you would need to add a (Python) script on the Pi combined with vbusdecode.cpp to decode the data and send it to Domoticz. You can remove the Arduino and connect the UART circuit directly to the Pi.

By the way, the sketch and setup I made is running for a few months now without a single hickup.
Intel NUC-> Philips Hue, Aeon Zwave stick V2, Qubino, Fibaro, Everspring, Philio, RFXCom, X10, Harmony Hub, Xiaomi Flora + Gateway, BS440. And P1 / Resol VBus / Nefit EMS bus / DHT21 / DS18B20 / Sonoff / I2C display, all via Arduino/ESP8266.

MarceldeJongNL
Posts: 40
Joined: Tuesday 03 May 2016 10:07
Target OS: Raspberry Pi
Domoticz version: 3.5108
Location: Barendrecht
Contact:

Re: Support for the Resol VBUS protocol?

Post by MarceldeJongNL » Tuesday 03 May 2016 12:20

Great work, bbqkees.
I went the easy way and bought a DL2. In the topic below I wrote down how I read the values to my Domoticz setup:
viewtopic.php?f=34&t=11818&p=84886#p84886
Hardware: Raspberry Pi 2B | RFXCOM RFXtrx433E v1 | Synology DS213+ | KaKu Clones | Conrad RSL switches | KAKu Doorbell Clone | USB Webcam | ICY Thermostat | Resol DL2 | Imatic Relay Board | Eminent 6230 | Eminent 6220 | iMatic 16 ports Relay Board

User avatar
bbqkees
Posts: 429
Joined: Sunday 17 August 2014 21:01
Target OS: Linux
Domoticz version: 3.8x
Location: The Netherlands
Contact:

Re: Support for the Resol VBUS protocol?

Post by bbqkees » Wednesday 04 May 2016 16:05

MarceldeJongNL wrote:Great work, bbqkees.
I went the easy way and bought a DL2.
Indeed an easier method, I will update the wiki page to include youe method too.
Intel NUC-> Philips Hue, Aeon Zwave stick V2, Qubino, Fibaro, Everspring, Philio, RFXCom, X10, Harmony Hub, Xiaomi Flora + Gateway, BS440. And P1 / Resol VBus / Nefit EMS bus / DHT21 / DS18B20 / Sonoff / I2C display, all via Arduino/ESP8266.

bwbboot
Posts: 1
Joined: Saturday 18 June 2016 21:05
Target OS: Linux
Domoticz version: 3.5262
Location: The Netherlands
Contact:

Re: Support for the Resol VBUS protocol?

Post by bwbboot » Saturday 18 June 2016 21:15

Yes!! Just got my system installed yesterday. It comes with a Deltasol CS plus controller from Resol. Already monitoring my pv system using raspberry PI and looking at logging the boiler and collector data as well.

I am not good at building circuit boards. Anyone willing to sell me a complete stacked board for reading vbus data that I can connect to a raspberry PI serial port?

Thanks!

Met vriendelijke groet
Bjorn

Sandman79
Posts: 24
Joined: Wednesday 30 September 2015 20:30
Target OS: NAS (Synology & others)
Domoticz version:
Location: Belgium
Contact:

Re: Support for the Resol VBUS protocol?

Post by Sandman79 » Friday 22 July 2016 15:59

I think Kees planned to make a few originally. I still hope he does. :)

mochel
Posts: 2
Joined: Monday 18 July 2016 14:42
Target OS: -
Domoticz version:
Contact:

Re: Support for the Resol VBUS protocol?

Post by mochel » Saturday 23 July 2016 11:37

hi,
I'm French , ....

I need help for connect my Domoticz Pi 2 of my Resol / Viessmann solar with a RS485/usb adapteur.

Cann You help me ?

Thank a lot

User avatar
bbqkees
Posts: 429
Joined: Sunday 17 August 2014 21:01
Target OS: Linux
Domoticz version: 3.8x
Location: The Netherlands
Contact:

Re: Support for the Resol VBUS protocol?

Post by bbqkees » Tuesday 16 August 2016 14:06

Sandman79 wrote:I think Kees planned to make a few originally. I still hope he does. :)
It is still in my planning, but no real date yet.
I am working on a board that works for all my uses but if equipped with just the VBUS circuit it will plug into both the Pi and the Arduino Mega/Uno.
Intel NUC-> Philips Hue, Aeon Zwave stick V2, Qubino, Fibaro, Everspring, Philio, RFXCom, X10, Harmony Hub, Xiaomi Flora + Gateway, BS440. And P1 / Resol VBus / Nefit EMS bus / DHT21 / DS18B20 / Sonoff / I2C display, all via Arduino/ESP8266.

drego
Posts: 3
Joined: Friday 28 April 2017 8:10
Target OS: OS X
Domoticz version:
Contact:

Re: Support for the Resol VBUS protocol?

Post by drego » Friday 28 April 2017 8:33

Hi @all. Yesterday I got a resol controller, the DeltaSol BX PLUS. I found these posts about VBUS and arduino. Can anyone show me a detail documentation/circuit diagram to connect the vbus to an arduino. I saw the image from bbqkees, but a couldnt see the components.
@bbqkees, is it possible to contact me or show the circuit or parts?

Iam not so firm with hardware, maybe there is a simple solution?

Thanks

User avatar
bbqkees
Posts: 429
Joined: Sunday 17 August 2014 21:01
Target OS: Linux
Domoticz version: 3.8x
Location: The Netherlands
Contact:

Re: Support for the Resol VBUS protocol?

Post by bbqkees » Friday 28 April 2017 10:28

drego wrote:Hi @all. Yesterday I got a resol controller, the DeltaSol BX PLUS. I found these posts about VBUS and arduino. Can anyone show me a detail documentation/circuit diagram to connect the vbus to an arduino. I saw the image from bbqkees, but a couldnt see the components.
@bbqkees, is it possible to contact me or show the circuit or parts?

Iam not so firm with hardware, maybe there is a simple solution?

Thanks
Please check my Github page: https://github.com/bbqkees/vbus-arduino-domoticz for all the details.
Intel NUC-> Philips Hue, Aeon Zwave stick V2, Qubino, Fibaro, Everspring, Philio, RFXCom, X10, Harmony Hub, Xiaomi Flora + Gateway, BS440. And P1 / Resol VBus / Nefit EMS bus / DHT21 / DS18B20 / Sonoff / I2C display, all via Arduino/ESP8266.

delphi
Posts: 1
Joined: Sunday 23 July 2017 1:46
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Support for the Resol VBUS protocol?

Post by delphi » Sunday 23 July 2017 2:01

Hi, I have one DeltaSol SL, and want to use with an esp8266 (some as arduino but with wifi).
Do you have any "extra" board, that want to sell?

Thanks a lot and congratulations by your excelent work.

User avatar
bbqkees
Posts: 429
Joined: Sunday 17 August 2014 21:01
Target OS: Linux
Domoticz version: 3.8x
Location: The Netherlands
Contact:

Re: Support for the Resol VBUS protocol?

Post by bbqkees » Monday 24 July 2017 11:54

delphi wrote:
Do you have any "extra" board, that want to sell?
I still have not made them yet, no time.
If you would order the components from Aliexpress/Ebay etc and buy a small breadboard it is not that hard to put it together.

The schematic is quite simple:
Image
Intel NUC-> Philips Hue, Aeon Zwave stick V2, Qubino, Fibaro, Everspring, Philio, RFXCom, X10, Harmony Hub, Xiaomi Flora + Gateway, BS440. And P1 / Resol VBus / Nefit EMS bus / DHT21 / DS18B20 / Sonoff / I2C display, all via Arduino/ESP8266.

FatBeard
Posts: 2
Joined: Friday 25 August 2017 1:25
Target OS: -
Domoticz version:
Contact:

Re: Support for the Resol VBUS protocol?

Post by FatBeard » Friday 25 August 2017 1:34

Hi bbqkees,

I've been using your resol vbus code to get my barebones arduino to interface with my deltasol. I've contributed some of the code to your github site. However, I have re-jigged your code locally to work as a library so that ultimately i can integrate with mysensors too. So my question is can i contribute this library to your github page, or if you wish to maintain your code as a standalone domoticz program can I get permission to create my own github project with my adaptation of your code.

While I've taken some stuff out such as http requests, networking etc. I think you could easily rewrite your code to use the library to get the best of both worlds. ie. you host the library and the ino program using the library which does all that your code does now.

Forgive me if i'm being rude but i'm not able to contact you on git hub.

Also, thanks for writing the code in the first place.

manbade
Posts: 11
Joined: Saturday 19 December 2015 22:01
Target OS: -
Domoticz version:
Contact:

Re: Support for the Resol VBUS protocol?

Post by manbade » Saturday 26 August 2017 20:20

Hello fatbeard.
Exactly github is for this that you are talking about.
One guy have an idea and orher people contribute for improve the performance, caracteristics or whatever.
If you have only a comment then open an issue but in case of your contribution is big or absolutely different, then usually the people write his own github page.
The best option is ever tell everybody where has you forked the idea.
In this case, mentioning our friend bbqkees.
Usually other people take an old idea and improve it to share with the world.

F


enviado desde mi Sinclair Spectrum 16k


manbade
Posts: 11
Joined: Saturday 19 December 2015 22:01
Target OS: -
Domoticz version:
Contact:

Re: Support for the Resol VBUS protocol?

Post by manbade » Saturday 26 August 2017 20:21

I have the components for do this but i havent the time for do it.


enviado desde mi Sinclair Spectrum 16k


Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests