I see. It looks to me that you do not describe OpenHAB integration issue, but rather issue in your PV’s connection architecture itself.
Sorry for the very long response. I hope at least some of it will help you.
My second PV is on the garage and to install a cable is almost impossible. That is why the RS485-Wifi solution came into place.
The X3 uses the CTs for monitoring currents to/from grid. So i think the setup is safe because the RS485-Wifi connection is only for the secondary PV.
I patched a cable to use the RS485 PINs (4,5) on the Meter/CT Connector of the X3 for the second PV.
Which works in principle, so i can see power values of 3 phases from the smart meter of the second PV (over the RS485-Wifi Connection) on the X3 display.
If I understood you well, you have 2x PV inverters. One being in the house and one on the garage. One does not have smart meter, but uses 3x CT for measing current to/from grid. Second is having smart meter on their power connection.
Your issue is, that you want meter data from the second PV inverter to be available to the first PV inverter.
If this is correct, than I suggest you speak with your PV vendor. I cannot test it as I do not have setup like this at home. However, my understanding is that this is not how Solax X3 inverters are designed to work in parallel connection mode (= two or more inverters connected in parallel to the same power network).
Take a look to the user manual chapter 5.5.3 and Master/Slave mode. From what I understood in the manual + some installations I have seen, there shall be only one master inverter that is connected to the smart meter/CT’s on connection of the house network to the grid. It is logical as you need to see overall current flow to/from the grid to the house. Slave invertors do not have meter/CT’s connected at all. Instead, they are connected via CAN bus with the master, who is controlling them. In this mode you can ensure that all the inverters work in sync. On the other hand, if the master is down or in error state, all other inverters shut down as well.
Yes, you have an option to run your two PV inverters also in independent mode. But it is not ideal, as the inverters control system will not have way, how to sync both inverters and e.g. avoid energy flow back to the network in case you do not consume all generated energy. Or communicate with the grid authority in case you are obliged to do so for grid stability purposes.
You will have to make other system (e.g. OpenHAB) to act as a master syncing both your PV inverters. It is not ideal and if you have 2x Solax X3 G4, I would use the CAN bus connection and Master/Slave mode.
I patched a cable to use the RS485 PINs (4,5) on the Meter/CT Connector of the X3 for the second PV.
Which works in principle, so i can see power values of 3 phases from the smart meter of the second PV (over the RS485-Wifi Connection) on the X3 display.
Even if you want to run both PV inverters in independent mode, you shall not be sharing any of the meters between them. Again, this is not what the Solax fw is expecting as otherwise, you would have two Modbus RTU master as one RS485. In my view, you have three options:
- PREFERED: Master/Slave mode with 1 Smarter meter/3xCT connected the Master inverter. No meter connected to Slave PV, but it is connected via CAN bus to Master and controlled by it.
- Independent mode, but the PV in the house is aware of the second PV inverter. In this mode you will actually need 3 Smart meters/CT sets. One will be connected to you PV in the garage. This PV inverted will not controll at all flow to/from the grid. This meter will be there just to see energy produced by second PV (i.e. would not be needed, but Solax inverter do require meter to connected otherwise it goes into “meter failure” alarm.
Your PV inverter in the house will have 2 smart meters/CT’s connected. One at the connection of the house to the grid for measuring overall flow to/from the grid. And secondary meter at the output from your PV at garage. You PV inverter in the house will be able to control it’s own energy production and reduce it in case enough energy comes from PV at garage. However, it will not be able to control it or shut-down energy production when needed.
From the graphs above, this is the way, how you have it set-up at this moment. Your graphs and screen shots looks to be from the PV inverter in the house. See section 5.5.2 in the manual for Meter 2 connection. Be sure that you do not share any of the meters between those inverters.
- Both PV’s are independendent and not aware of each other. I do not recomend this set-up at all as in this way control system in PV will be quite confused with the energy flow in your home network. If you go this way, than you shall shut down all optimization algorithms in both PV inverters. Actually, I even do not think any of the standard Solax modes would work well for you (Self use/Feed-in/Backup/EPS). You will have to use other system to sync and controll them.
You will have two meters/CT sets in this mode. One for each inverter. However, they will rather than for the Solax fw be used as source to the overall control system.
But every 10-15 seconds there are only zero values for 1-2 seconds on the display.
I tried to optimize the Wifi-Connection but with no change. I tried to play around with buffer sizes and some other parameters on the PW11 devices, but no change.
If you are not sharing any of the meters (=you actually have 3 meters/CT sets) than the most probable failure point shall be the communication between your PV in the house and this meter. I’m afraid it is really back to the WiFI connection you use. PW11 is using 2,4GHz band. That is very busy band with only few channels and lot of interference. I’m afraid that you will have these problems forever with this device. Using 2,4GHz band and b/g/n standard is probably the worst choice you can make if the communication shall be reliable.
My strong recommendation is to put there a cable connection. Nothing will be more failure resistant. If you have no other choice than WiFI, look at least for RS485 bridge that uses 5GHz band or licensed band. There will be much less interference with AP’s around you, toy controller, microwaves etc. which you othervise have in the 2,4GHz band.
Actually, Solax is selling their own RS485 WiFI bridge that is designed for the Smart meter connection and from the manual seems to use 5GHz band and a/h WiFI standard. Look here.
Do not use the same AP and WiFI channel for the RS485 WiFI bridge as you are using for other WiFI devices at home. By design WiFI is collision communication, so for PV to Meter bridge it is better to you peer-to-peer connection or at least dedicated channel, so you are not slowing down your Meter communication when watching football. Sure, you can play with QoS and priorities, but why when separating it is even better. Except for setting it up, you will not need to access this connection and bridge devices anyway.
I use a CAT.5 cable to connect the CTs and the RS485 connection. The PW11’s RS485 port is connected via this CAT.5 cable to the X3. Do i have to add a 120 Ohm resistor somewhere in this point-to-point connection?
If the CAT.5 cable is 1-2 meters long and it is shielded, than 120Ohm resistors will likely not make a difference. At the same time, there is no harm when you put them at both ends between A+/B-. It shall be used for any RS485 bus according to the standard. I put them to every RS485 bus I have. Also, I always use shielded cable for any RS485 (grounded at one end only). So, in your case, you shall use 4 resistors (DTSU666,PW11,PW11,PV Meter port). At the same time, at the Meter/CT port connect only pins 4 and 5 to this CAT.5 cable. I understand that you are using CT’s as well for the Meter1 at this port of the PV in house. Do not use the same cable for it as otherwise you have 50Hz current of CT’s next to your RS485, which will cause interference.
Also, double check that you are having all the communication parameters set consistently for all devices at the same RS485. I do not see anywhere in the Solax settings, what communication parameters are used for the Meter RS485 connection. Settings you have there are for the COM port, not for the Meter port. If you have not changed any of the communication parameters at DTSU666 delivered to you with the inverter, it is pre-set with the Solax setting. Factory default is 9600bps, 1 stop bit, no parity. So, use those for your PW11 setting as well. Turn off Flow control, your meters are not using it. I would also play with the buffer size of PW11. Actually, try to make it smaller. Your PW11 shall really act as bridge only in this set-up. Any caching is actually not helping. Try to even put both your PW11’s to Transparent mode. You are trying to “replace cable”, so why to make Modbus RTU → Modbus TCP → Modbus RTU conversion, when you do not need it. But you have to check, if two PW11’s in Transparent mode can really act a bridge.
There is no point having different setting at the Meter to PW11 connection and Inverter to PW11 connection. As set, the baud rate in Solax setting shall be for COM port, not for the Meter port. If you use the Transparent mode of PW11, it is even a must to have everything set the same.
Good idea. I currently use a HTTP-Binding to read almost all inverter parameter via Solax Wifi-Dongle into OpenHab. I was also able to read the Power and Energy from the second PV (“other inverter”) which comes from the RS485/Wifi connection. But of course the zero values are there, too. Which i can monitor in OpenHab (blue: Power reported from the second inverter; green: Power reported via RS485/Wifi to X3.
It is fine to use the HTTP-Binding and Solax WiFI dongle. I do not like it personally as I do not want my data to be sent to the Solax cloud and used by this China company. However, for sure it is easier. Feel free to use it if the data provided are sufficient to you.
Just be sure that you do not mix the PV inverter to Smart meter communication with your OpenHAB to PV inverter communication. Use either the ModbusRTU at COM port or your WiFI dongle to connect PV inverter with OpenHAB. Do not connect anything else to your RS485 Wifi bridge devices, let them work solely for the Meter to PV communication.