Skip to content

Commit f0f0354

Browse files
authored
Merge pull request #1463 from TCWORLD/dev-x1-ies-temp
Solax X1-IES Gen5 Inverter Temperature Incorrectly Scaled
2 parents 3124a2f + a17af1f commit f0f0354

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
@@ -4374,6 +4374,18 @@ def value_function_battery_voltage_cell_difference(initval, descr, datadict):
43744374
allowedtypes=AC | HYBRID | GEN2 | GEN3 | GEN4,
43754375
entity_category=EntityCategory.DIAGNOSTIC,
43764376
),
4377+
SolaXModbusSensorEntityDescription(
4378+
name="Inverter Temperature",
4379+
key="inverter_temperature",
4380+
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
4381+
device_class=SensorDeviceClass.TEMPERATURE,
4382+
state_class=SensorStateClass.MEASUREMENT,
4383+
register=0x8,
4384+
register_type=REG_INPUT,
4385+
unit=REGISTER_S16,
4386+
allowedtypes=AC | HYBRID | GEN5 | X1,
4387+
entity_category=EntityCategory.DIAGNOSTIC,
4388+
),
43774389
SolaXModbusSensorEntityDescription(
43784390
name="Inverter Temperature",
43794391
key="inverter_temperature",
@@ -4384,7 +4396,7 @@ def value_function_battery_voltage_cell_difference(initval, descr, datadict):
43844396
register_type=REG_INPUT,
43854397
scale=0.1,
43864398
unit=REGISTER_S16,
4387-
allowedtypes=AC | HYBRID | GEN5,
4399+
allowedtypes=AC | HYBRID | GEN5 | X3,
43884400
entity_category=EntityCategory.DIAGNOSTIC,
43894401
),
43904402
SolaXModbusSensorEntityDescription(

0 commit comments

Comments
 (0)