logo elektroda
logo elektroda
X
logo elektroda

Domoticz and the Vents VUT R 600 VE EC A21 recuperator: communication via Modbus and Raspberry Pi

Daro1003 2946 61
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 20558215
    Daro1003
    Level 33  
    Hello
    I have a Vents VUT R 600 VE EC A21 recuperator
    Domoticz set up on a Raspberry.

    I would like to communicate the domoticz with the recuperator. For this I bought:

    Domoticz and the Vents VUT R 600 VE EC A21 recuperator: communication via Modbus and Raspberry Pi

    I connected in parallel to the A+ B- and GND to the keypad.

    Domoticz and the Vents VUT R 600 VE EC A21 recuperator: communication via Modbus and Raspberry Pi

    How do I now handle this programmatically so that domoticz can see the available options ? E.g. temperatures ?

    Here are all the documentation downloads that Vents provides maybe something will help:

    https://vents-group.pl/oferta/wentylacja-prof...lna-centrale/rekuperatory-domowe/vutr-v-ve-ec

    I have installed various plugins which I found somewhere on the net but I have no idea which one should be added and how to set it up.

    Domoticz and the Vents VUT R 600 VE EC A21 recuperator: communication via Modbus and Raspberry Pi

    In one of the manuals provided by Vents I found something about RS485:

    Domoticz and the Vents VUT R 600 VE EC A21 recuperator: communication via Modbus and Raspberry Pi
    Do you have a problem with Raspberry? Ask question. Visit our forum Raspberry.
  • ADVERTISEMENT
  • #2 20559413
    xury
    Automation specialist
    There is no word in the DTRka or other files about the modbus protocol. If you find it somewhere, let us know.
  • #3 20559714
    Daro1003
    Level 33  
    In the product card file there is some information that only this air handling unit has Modbus communication. When I bought the AHU about 1,5 years ago the Vents technical department assured me that Modbus communication is in this AHU.

    Domoticz and the Vents VUT R 600 VE EC A21 recuperator: communication via Modbus and Raspberry Pi
    Domoticz and the Vents VUT R 600 VE EC A21 recuperator: communication via Modbus and Raspberry Pi

    What information exactly do you need ? I will send an e-mail to the technical department of Vents and maybe they will say something more, just what to ask ?

    Product card:
  • Helpful post
    #4 20559763
    zuhjk
    Level 22  
    I want to read the temperature and humidity sensors integrated into the rs 485 using domoticz. I buy these sensors on Ali.... To start with, I have mastered the readings with a PC+ USB/RS485 converter. You have to learn the specifics of the RS485 standard. It is not like the RS232. The frame has a proper structure
    and contains in it a read or write command. This can be done using a PC. The
    PC is the master and the rest are slaves. The slaves have their addresses in the frame, theoretically there can be 254 (I omit the FF address) but so up to 32 without any problem. The manufacturer has probably limited them to 16 devices which seems reasonable. Knowing the default address, you can read data from the device. You are unlikely to write to rs. Integration with domoticz is another matter. You can use USB and you can also use
    the RS485/ETHERNET converter.
    First of all, it is necessary to run the readings via a PC,
  • Helpful post
    #5 20559769
    starob
    Level 29  
    Daro1003 wrote:
    Product card:


    The BMS functions cat is Modbus TCP, so you probably don't even need a converter.
    You need to get the modbus protocol specification (register addresses). You can also "tentatively" try to read with some tool directly over the network from Windows on port 502.
    e.g. https://en.radzio.dxp.pl/modbus-master-simulator/


    ...edit from the search on the official manufacturer's website.
    https://ventilation-system.com/uploads/download/v55_8_1en_a4_02_preview2.pdf
    There is a base from which you can start the tests.
  • #6 20560473
    Daro1003
    Level 33  
    starob wrote:
    The BMS function is Modbus TCP, so you probably don't even need a converter.
    If the recuperator is connected via Wi-Fi to the home network, I can already read something on the PC ?

    zuhjk wrote:
    It is possible via USB and it is also possible via an RS485/ETHERNET converter.

    Is it to be connected differently or do I connect to A and B of the recuperator and to the LAN via some converter ?
  • #7 20560537
    starob
    Level 29  
    It seems that this "magic" A21 module is such a "window to the world" and it is the one that has the modbus built in.
    I don't know enough about the Vents philosophy to answer anything specific (I don't know at all) ;)
    Enclose some papers for the devices you have then maybe something will become clear.
  • ADVERTISEMENT
  • #8 20560994
    Daro1003
    Level 33  
    starob wrote:
    Enclose some paperwork for the equipment you have then maybe something will become clear.

    Ok I am attaching everything I have. But please write colleagues what to ask at vents for what data exactly. I will send them an email on this to the technical department.

    It seems to me that this A21 only embedded on the motherboard and other controllers plugged into the board work on this.

    zuhjk wrote:
    I want to read the temperature and humidity sensors integrated into rs 485 using domoticz. I buy these sensors on Ali...


    Can you drop a link to such a sensor ?
  • Helpful post
    #9 20561989
    starob
    Level 29  
    Daro1003 wrote:
    what to ask at vents for what data exactly.




    Basically it's about nothing :) in the document linked earlier is everything.

    1. If you already have any control device connected after RS485, you are only left with WiFi or Eth.
    2. To start - as @zuhjk wrote - fire it up on your PC, Download the subliked MasterSimulator.
    and configure in it the ModusTCP connection Ip:recuperator port:502

    Domoticz and the Vents VUT R 600 VE EC A21 recuperator: communication via Modbus and Raspberry Pi

    3. Now you can try to read the InputRegister from address 0.
    Domoticz and the Vents VUT R 600 VE EC A21 recuperator: communication via Modbus and Raspberry Pi

    If you manage to read something meaningful and compatible with this table - you can try to integrate it with Domoticz.
  • #10 20561992
    Daro1003
    Level 33  
    starob wrote:
    1. If after RS485 you have already connected any control device,


    Yes I have connected such a keypad with data as shown on the screen:
    Domoticz and the Vents VUT R 600 VE EC A21 recuperator: communication via Modbus and Raspberry Pi

    So if there is one keypad then nothing else will work ??

    starob wrote:
    you are left only with WiFi or Eth.


    How to connect to a computer via e.g. Wi-Fi remotely via LAN through an IP address ? Here is the problem because I do not know the IP address of the recuperator connected via Wi-Fi gets some from the pool, I can not find it anywhere, neither on the router nor with a network scanner I can not find out which IP address it is, but this is rather a bad solution because after restarting the power supply it already gets a different address and it will not work.

    On the other hand, when connecting via ETH I can set a fixed IP address in the options, so I have to start with a cable connection and setting a fixed IP further on:
    starob wrote:
    Download the MasterSimulator.
    and configure in it the ModusTCP connection Ip:rekuperator port:502

    Thanks colleagues for your help until then I will work.
  • #11 20562002
    starob
    Level 29  
    Daro1003 wrote:
    Here is the problem because I don't know the IP address of the recuperator connected via Wi-Fi it gets some there from the pool


    Try to ;) It must be saved somewhere in the router! In addition there will be somewhere an option p.t. about "Mac filter", which allows by mac address to assign a fixed IP.
    If there is not then it is time to change the router ;)

    Beyond that probably here changes the address type Static<>DHCP
    Domoticz and the Vents VUT R 600 VE EC A21 recuperator: communication via Modbus and Raspberry Pi .
  • ADVERTISEMENT
  • #12 20567213
    Daro1003
    Level 33  
    starob wrote:
    Other than that, probably here changes the address type Static<>DHCP



    It is at this point that a fixed IP is set, but a wired connection I tried this and after saving the settings returns itself to DHCP if I do not have a LAN connected but Wi-Fi but LAN is not a problem.

    Is this how a configured connection should look like:

    Domoticz and the Vents VUT R 600 VE EC A21 recuperator: communication via Modbus and Raspberry Pi Domoticz and the Vents VUT R 600 VE EC A21 recuperator: communication via Modbus and Raspberry Pi

    Something should show up in the table ? Any data ?


    It looks like something is flying:

    Domoticz and the Vents VUT R 600 VE EC A21 recuperator: communication via Modbus and Raspberry Pi Domoticz and the Vents VUT R 600 VE EC A21 recuperator: communication via Modbus and Raspberry Pi [img-0].
  • ADVERTISEMENT
  • #13 20580590
    Daro1003
    Level 33  
    And if colleagues manage to come up with something
  • #14 20582420
    starob
    Level 29  
    What more does the colleague expect? ...From the test it appears that you can connect and read the registers correctly. Now do the same in domoticz via modbus (as its documentation says).

    [
  • #15 20582515
    Daro1003
    Level 33  
    starob wrote:
    What more does the colleague expect?


    I just don't know how to set this up in domoticz and whether I have the right plugins.
    When I try to add and change the settings, domoticz crashes for a few minutes and I also can not remove the added plugins:
    Domoticz and the Vents VUT R 600 VE EC A21 recuperator: communication via Modbus and Raspberry Pi

    I don't know if both READ and WRITE are to be added or just one of them and option settings:
    Domoticz and the Vents VUT R 600 VE EC A21 recuperator: communication via Modbus and Raspberry Pi

    Domoticz and the Vents VUT R 600 VE EC A21 recuperator: communication via Modbus and Raspberry Pi

    Domoticz and the Vents VUT R 600 VE EC A21 recuperator: communication via Modbus and Raspberry Pi


    Domoticz and the Vents VUT R 600 VE EC A21 recuperator: communication via Modbus and Raspberry Pi
  • #16 20582549
    starob
    Level 29  
    You have to decide what you are trasmitting over (what converter you are using).

    Till now it was mentioned about the LAN converter, so you set as in the program RTU over TCP. Then you don't define serial - because it is defined in the converter.

    If you use USB then you set only RTU and omit TCP settings.
    If you only read then READ, if read write then READ and WRITE.

    These are universal rules, I don't remember the details of domoticz itself.
  • #17 20582633
    Daro1003
    Level 33  
    Yes after the LAN.
    Reading as much as possible mainly the temperature of the air vents, because what else can be read unless the options are also available.
    Recording also fits as if from Domoticz e.g. would like to change something in the air vents.

    I wonder if this is possible at all.
  • #18 20582734
    starob
    Level 29  
    It can be done... because from your picture (from radio) you can see the input registers read some temperatures at the level of 19.9C.
    First of all focus on getting the readings in domoticz from one register.

    Comunication mode: RTU over TCP
    Modbus Function: Read Input register

    This must be the same parameters as in the radio program.... remember that other programs communicating via modbus should be switched off while domoticz is running


    .edit ..just what protocol did you get these readings in radio?!
    Because the documentation says it should be Modbus TCP and your pictures suggest Modbos RTU over TCP.
  • #19 20585026
    zuhjk
    Level 22  
    A colleague got confused between rs485 transmission over lan and modbas rtu. This is due to lack of knowledge about this protocol. But he is on the right track.
  • #20 20687973
    zuhjk
    Level 22  
    Daro1003 wrote:
    So after the LAN.
    Reading as much as possible mainly the temperature of the air vents because what else can be read unless the options are also available.
    Writing also fits as if from Domoticz for example would like to change something in the air vents.

    I wonder if this is possible at all.

    And how are your readings in domoticz?
  • #21 20688058
    Daro1003
    Level 33  
    The topic lies lack of knowledge.
    I don't know if I have the right plugins for this and if they are set up properly.
  • #22 20688079
    zuhjk
    Level 22  
    I guess you have to hire a more savvy one then the subject will move on.
  • #23 20697972
    Daro1003
    Level 33  
    zuhjk wrote:
    I guess you have to hire a more savvy one then the topic will get off the ground.

    What do you mean ?

    I can figure it out myself but I can't do without the help of other domoticz users because with every domoticz update there are some circuses and something doesn't work. If someone does it for me it will probably work until.
  • #24 21008396
    Daro1003
    Level 33  
    Hey mate @zuhjk are you able to help configure this connection ?
  • #25 21057609
    zuhjk
    Level 22  
    Daro1003 wrote:
    Hey mate @zuhjk are you able to help configure this connection ?
    No looks like maybe I can. There are several methods. Swap rtu and publish MQTT to any broker. I domoticz on a dell terminal, debian, I have a broker there too. I hired a specialist what in node red glued the frames together and integrated with domoticz. Generally there are specialists everywhere but no one will help. I am now testing wireless temperature and humidity sensors ela bluetooh. https://www.youtube.com/watch?v=vhXgPCjX-Vk
    Such a thing only I still have humidity. I have the readings in domoticz. I collect data using teltonik's rutx10.
  • #26 21060502
    Daro1003
    Level 33  
    So it won't be that simple if NodeRed comes into play, which I've read something about but have no idea what or how.
  • Helpful post
    #27 21064102
    zuhjk
    Level 22  
    These plugins are working and not working. I tested one of them but it didn't work. Then someone wrote that there was a bug and the author fixed it. Generally
    to make domoticz read you need to know the principle of how it reads them. Node red is a flow-based programming language. It concatenates data from rs485 with commands understood by domoticz. It also generates queries over rs485 according to rtu standards.
    Then you can also collect data from any devices. I have, for example: in domoticz, the signal strength from the mikrotik router, the temperature from the thermocouple after rs 485, and you can measure the temperature of the flue gas from the boiler. Another thing with MQTT. The gateway I have allows rs485 rtu to be converted to mqtt. If I can manage in json to add commands to domoticz on it, then all I need is it and the mqtt broker to make domoticz suck data. But that's in the queue waiting to be investigated.
  • #28 21064119
    Daro1003
    Level 33  
    That is, what is necessary to delve into NodeRed I see.
    Are there any instructions on how to get started ? How to install get up and running ? You have to start somewhere.

    I currently have a Sofar photovoltaic inverter which also has RS485 communication for the computer and this could be used cool I see, for this recuperator and also Vailant EcoTEC also probably has RS485.

    How do you suggest how to get started?
  • #29 21064579
    zuhjk
    Level 22  
    Collect some money and ask a person who knows these topics. I have advertised on smart home and here and it sucks. All the smart people and the topic
    lies and withers. Maybe soon I will be able to sell this gateway with node red embedded. To write in node red, it is best to know java script.
    Now the topic is being embraced. Screenshot of Node-RED with a Modbus flow.
    From blutocz to MQTT and to domoticz
    Graph showing changes in temperature and humidity over the last 24 hours, marked in degrees Celsius and humidity percentage. .
  • #30 21064990
    Daro1003
    Level 33  
    Can you recommend someone who could take care of this for me?

    The only downside to outsourcing everything is that I want to add something and then have to outsource again.

    Are you already working with this yourself or are you outsourcing ? All in all, I would have a recuperator, and a sofar inverter, maybe a Vailant if possible, and that's it.

Topic summary

The discussion focuses on integrating the Vents VUT R 600 VE EC A21 recuperator with Domoticz running on a Raspberry Pi via Modbus communication. The recuperator supports Modbus TCP over RS485, accessible through an embedded A21 module or via LAN/Wi-Fi with a converter. Initial steps involve establishing communication using Modbus master simulators on PC to read input registers, primarily temperature and humidity data. Challenges include identifying the correct IP address for Wi-Fi connections, setting fixed IPs for stable communication, and understanding Modbus RTU over TCP versus Modbus TCP protocols. Domoticz configuration requires appropriate plugins and correct setup of communication parameters (RTU over TCP or RTU via USB), with read-only or read-write modes depending on needs. Node-RED is recommended as a middleware to parse Modbus frames, convert data to JSON, and publish via MQTT to Domoticz, facilitating both data reading and control commands. Users share Node-RED flow examples for data scaling and device control, emphasizing the need for knowledge in JavaScript and Modbus protocol specifics. The community highlights the scarcity of ready-made plugins and suggests seeking expert assistance for complex integration. The discussion also touches on similar RS485 integrations with other devices like Sofar photovoltaic inverters and Vaillant EcoTEC boilers.
Summary generated by the language model.
ADVERTISEMENT