Skip to content

Commit a17af1f

Browse files
committed
X1-IES Inverter Temperature Incorrectly Scaled
On my X1-IES the inverter temperature was showing as 1/10th of the actual temperature. It seems a new entry with 'scale=0.1' was added for the Gen 5 inverters which is doing this scaling. However this is incorrect for my inverter. I am guessing this scaling is only needed for the X3-IES variant, so adding a patch to split them up.
1 parent 0bb3bcf commit a17af1f

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

custom_components/solax_modbus/plugin_solax.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4204,6 +4204,18 @@ def value_function_battery_voltage_cell_difference(initval, descr, datadict):
42044204
allowedtypes=AC | HYBRID | GEN2 | GEN3 | GEN4,
42054205
entity_category=EntityCategory.DIAGNOSTIC,
42064206
),
4207+
SolaXModbusSensorEntityDescription(
4208+
name="Inverter Temperature",
4209+
key="inverter_temperature",
4210+
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
4211+
device_class=SensorDeviceClass.TEMPERATURE,
4212+
state_class=SensorStateClass.MEASUREMENT,
4213+
register=0x8,
4214+
register_type=REG_INPUT,
4215+
unit=REGISTER_S16,
4216+
allowedtypes=AC | HYBRID | GEN5 | X1,
4217+
entity_category=EntityCategory.DIAGNOSTIC,
4218+
),
42074219
SolaXModbusSensorEntityDescription(
42084220
name="Inverter Temperature",
42094221
key="inverter_temperature",
@@ -4214,7 +4226,7 @@ def value_function_battery_voltage_cell_difference(initval, descr, datadict):
42144226
register_type=REG_INPUT,
42154227
scale=0.1,
42164228
unit=REGISTER_S16,
4217-
allowedtypes=AC | HYBRID | GEN5,
4229+
allowedtypes=AC | HYBRID | GEN5 | X3,
42184230
entity_category=EntityCategory.DIAGNOSTIC,
42194231
),
42204232
SolaXModbusSensorEntityDescription(

0 commit comments

Comments
 (0)