Unrelated, but if you have any Openwrt device around and don’t want to buy the bridge:
You can install the kmod-usb-serial-ch341 and use the usb port on your device to connect to the usb port in the srne inverter, then install mbusd on openwrt and it will act as a brige for you.
I happened to have one traveler router that I didn’t use anymore, so I set it up as a wifi client, and viola, I’m getting my metrics with the configuration that @Mattie posted above.
I actually got the Waveshare RS485 to ETH converter but I realized late that I would need to connect it to a router’s ethernet port. I use a Starlink device and I do not want to spend more money for an ethernet adapter, so I’m going the SRNE to HA through ESPHome route. Let’s see how it goes.
If it still matters you could buy a Unifi AP ac pro or another accesspoint able to wirelessly connect to a WiFi the Unifi AP then has a Ethernet port where you can plug in a waveshare gw.
I too have the ASF10K I’m using a QinHeng Electronics CH340 serial converter rs485 to usb.
Connected pins 7,8 the converter.
When i connect HA with the following code
hi @Mattie thanks so much for sharing this. I have a PowMr 3k 24v AIO inverter and was going to hook up dc and ac monitors to get the readings because I couldn’t figure out how to get the data from the AIO itself, and now problem solved thanks to you; I ended up using an EW11. I was wondering if you made tweaks to the config file, I’ve been struggling with the following data attributes and other things and wondering if you figured them out:
AC output load (Power, Current, Amps) - do you know the address for it, address 61501 I think is for load consumption from Mains only rather than all AC consumption for PV, Mains and battery. Did you use the inverter power to derive that?
Can you reshare the modbus index again? I’ll share my config when I’m done to help contribute for future users
Do you have all of the modbus tcp sensors in your HA configuration.yaml itself or did you create a different yaml file and reference it somehow?
Were you able to get PV Voltage to work as a sensor? What was the address you used?
thanks again for sharing this, I was almost going to change about my AIO due to the lack of data visiblity or add a bunch of dc and ac clamps to the input and outputs
Hello @Koshman! I’m glad that you found this useful! I’m a bit surprised that you made it work with my code on a different manufacturer tho? Maybe those Chinese brands have these indexes in common. It will probably be better if you try to find the accurate index list for your specific device. Or else you risk wasting your time trying to get my SRNE translations to work
I have a specific sensor in my device that gives me the AC Load output without the need for calculations. I did calculations for the battery use however. It isn’t totally accurate tho, but close enough.
I have put all my modbus code in my main configuration file. I find it easier to work with when I build templates and search for sensors. Not that esthetic maybe.
Yes I just asked for the modbus index file and that I needed it to fetch data through a network gateway. If you’re curious I uploaded the srne index here, you could fiddle with it while you wait for the proper one
I just got PowMr hybrid inverter 6.5K 48V (POW-HVM6.5K-48V) and sadly discovered that as soon as the AV input is turned on, it switches to Bypass mode and uses grid power to feed the output no matter how much solar or battery power. So SBU configuration has no effect.
PowMr told me this is a known error with the model and can’t be fixed. They suggested that I use a time-controlled relay to control the ac input.
This is a no-go, as it should take the available solar and battery power into consideration.
Now I am thinking that if can integrate it to HA, then I can do much better control of when to switch the ac input on/off.
I’m using a shelly 16A plug for each of my inverters to monitor the AC consumption. That also gives me the possibility to cut the power to the inverters. Sometimes when the inverter is waiting for the battery voltage to rise and I quickly wanna change to inverter powered mode I turn the AC to the inverter to off thus making the inverter switch from AC to solar/battery power. Could easily be used in automations as long as you can trust your connection to the inverter to 100%. Things can easily go wrong if you for example loose the connection to the inverter after the AC power has been cut making it possible to draw the batterybank to 0%