Hey all,
First of all, I’m still learning about Modbus, sorry if some questions are stupid. It even might be that my whole plan becomes impossible because of my misconception. Please tell me if that’s the case, I’m still trying to fully understand Modbus and the possibilites.
I would like some help/advice with my new project.
In short (VERY short):
Is it possible to control (read and write) data on a existing Modbus network (heatpump with 3 thermostats) using a Modbus Gateway?
Desired outcome of project:
- Stop using webinterface and cloudservice of Orca Energy
- Use Home Assistant to automate heatpump, thus making it smart
- Use Home Assistant to set temperatures (set value in thermostats or bypass thermostats altogether)
- Read Modbus data from controller, containing information about heatpump
Elaborate explanation and Background:
I would like to control our Orca Energy heatpump, using Home Assistant, which works via Modbus RTU RS485, so I dove into Modbus to try and understand it, but several questions came up since I’ve yet found a direct comparable situation with our Modbus network.
I’ve also read about people configuring their Nibe heatpump in Home Assistant here on the forums, so I thought it would be possible to configure a heatpump from a different brand which also communicates via Modbus. This brings me to question #1.
The Nibe heatpump has the ability to turn on Modbus TCP/IP in it’s settings while, as far as I know, the Orca Energy heatpump’s interface doesn’t have the ability to enable it. So I came up with the idea to connect a Modbus Gateway (ZLAN 5143D) in the Modbus network to communicate using IP with the Modbus network, to eventually control it via Home Assistant.
The Orca Energy Heatpump is based on a Carel pCO Controller connected to a Carel pGD Touch panel. I’ve understood that the touchpanel and controller are two seperate Modbus devices. The touchpanel has two ethernet ports and according to the datasheet it supports Modbus TCP/IP, but using that is a project for another time. Question #2.
Currently, 1 ethernet port is used to connect the heatpump to the internet, so we can control it via a less-than-optimal cloud webinterface, no app. This is exactly why I’d like to control it via Home Assistant.
Our heatpump communicates using Modbus with the thermostats, 1 per floor, 3 in total (Slaves 11, 12 and 13). Modbus RTU uses a master-slave protocol, where only one device can be the master. This brings me to question #3.
Orca Energy doesn’t provide much detail about their use of the Carel pCO controller. Frankly, they never mention they use a Carel controller. So that gives question #4.
Questions:
- Can I read/write data using a Modbus Gateway on an existing Modbus RTU network, already containing a master?
- Which device is the actual master of the network or how do I find the master?
- I thought I understood that only 1 device could be the master, and thus requesting data. Does that mean that it’s impossible to read/write data from the heatpump (which probably is the master) using the gateway?
- Is there a way to create a Modbus registry table without Orca Energy supplying it to me?
Any advice and/or tips are welcome!
Kind regards,
Bob