wills106 / homeassistant-solax-modbus

SolaX Power Modbus custom_component for Home Assistant (Supports some Ginlong Solis, Growatt, Sofar Solar, TIGO TSI & Qcells Q.Volt Hyb)
313 stars 98 forks source link

Enhancement of entities supported by integration for Solax X3-PRO-xxK-G2 #1049

Open MiRe-CZ opened 1 week ago

MiRe-CZ commented 1 week ago

Description

Currently the integration supports some 30-40 read-only entities for string Solax inverters X3-PRO-xxK-G. Generally there is no need to manage this type of inverters, with one exclusion - when delivery of energy into a grid follows spot prices. In such case it is crucial to limit export when spot price is negative.

Switch "Lock State", Number "Active Power Limit" and Select "Q Curve", added in 2024.08.x releases indicate possibility to enhance integration for switches/numbers/selections needed for better management of those inverters.

Suggested Solution

Enhance the integration by these entities (and whatever additional if considered as useful):

1) From the Write single register group:

Register Name Type Unit Comment
0x65B ExportCheckEnable Switch
0x65C Uservalue Number 1W Max. value should be limited to max performance of inverter (but it is anyway limited by the ExportPowerHard /UservalueHard parameter)

2) From the Read holding register group:

Register Name Comment
0x371 wExportPower I only guess this entity is related to the "Uservalue" above. Display name can be e.g. "Grid Export Limit"
0x373 ExportCheckEnable_t Display name can be e.g. "Grid export limit switch"

Alternatives

No response

Additional Context

No response

wills106 commented 2 days ago

Register Name Comment 0x371 wExportPower I only guess this entity is related to the "Uservalue" above. Display name can be e.g. "Grid Export Limit" 0x373 ExportCheckEnable_t Display name can be e.g. "Grid export limit switch"

Is this something that can be set in the cloud app or on the Inverter? Especially 0x371 (I know this is the read element of it)

MiRe-CZ commented 2 days ago

Register Name Comment 0x371 wExportPower I only guess this entity is related to the "Uservalue" above. Display name can be e.g. "Grid Export Limit" 0x373 ExportCheckEnable_t Display name can be e.g. "Grid export limit switch"

Is this something that can be set in the cloud app or on the Inverter? Especially 0x371 (I know this is the read element of it)

I am not aware about possibility to set these two items.

BTW honestly I can see in the remote Setting via cloud under Export Control only item "UserValue": image

I do not see item "ExportCheckEnable" anywhere, but considering its type is switch, for export management it can be very useful (if it is really implemented in X3-PRO inverters as per provided documentation and if it really controls export as it is so in other brands...)

MiRe-CZ commented 1 day ago

"ExportControl/Mode_Select" in the cloud remote Setting seems(?) to be item "ExportCheckEnable" referenced in the Modbus documentation:

image

It supports also this part of inverter documentation:

Export Control With this function the inverter can control energy exported to the grid. Whether having this function is based on user’s wishes. Choose ”Meter” in ”Meter/Disable” means user must install a meter to monitor energy exported to the grid. There are user value and factory value. The factory value is default which can not be changed by user. The user value must be less than the factory value. Choose ”Disable” means the function will be shut off.