Hi Piotr,
Like your goals, especially the third one, but I haven’t seen any implementation doing this so far. Also, for your second one, you can find all (?) the MODBUS commands for DEYE inverters in the PDF attached here: Solarman modbus integration - #17 by giorginus80.
I’ve got a couple of hours of free time and improved the binding a bit, most importantly to use one TCP connection per inverter pool and add partial support for user defined reads. The thinking behind this is that not all codes are included in the HA definitions. One notable example is the frequency of the grid or the inverter.
So, somebody who is interested in this, like yourself, can add it to the other dynamically defined channels, like this:
Thing solarman:logger:local [ hostname="a.b.c.d", inverterType="deye_sg04lp3", serialNumber="1234567890", additionalRequests="0x03:0x27D-0x27E" ] {
Channels:
Type number : Inverter_Frequency [scale="0.01", uom="Hz", rule="3", registers="0x27E"]
}
I assumed writing is possible by looking at the APIs exposed by this library: pysolarmanv5 documentation - never tried it though.
I plant to invest as much time as I can in this, but considering how things are looking, it will probably not be much. Keep it up to date with OpenHAB releases, fix occasional bugs, and hopefully very slowly implement the features mentioned above.
Reinhard – due to limited time I’ll not bring this to 3.x. Please give it a try once you migrate to 4.0
Regards,
Catalin