Skip to content

Commit

Permalink
Update plugin_solis.py
Browse files Browse the repository at this point in the history
Adjust scaling "House Load Today", "House Load Total" & "House Load Yesterday"
  • Loading branch information
wills106 committed Nov 9, 2022
1 parent 28e3c90 commit 33cc775
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion custom_components/solax_modbus/plugin_solis.py
Expand Up @@ -1024,6 +1024,8 @@ def value_function_gen23time(initval, descr, datadict):
register = 33177,
register_type = REG_INPUT,
unit = REGISTER_U32,
scale = 0.1,
rounding = 1,
allowedtypes = HYBRID,
icon="mdi:home",
),
Expand All @@ -1035,6 +1037,8 @@ def value_function_gen23time(initval, descr, datadict):
state_class=STATE_CLASS_TOTAL_INCREASING,
register = 33179,
register_type = REG_INPUT,
scale = 0.1,
rounding = 1,
allowedtypes = HYBRID,
icon="mdi:home",
),
Expand All @@ -1046,6 +1050,8 @@ def value_function_gen23time(initval, descr, datadict):
state_class=STATE_CLASS_TOTAL_INCREASING,
register = 33180,
register_type = REG_INPUT,
scale = 0.1,
rounding = 1,
allowedtypes = HYBRID,
icon="mdi:home",
),
Expand All @@ -1055,8 +1061,8 @@ def value_function_gen23time(initval, descr, datadict):
native_unit_of_measurement=ELECTRIC_POTENTIAL_VOLT,
device_class=DEVICE_CLASS_VOLTAGE,
register = 33251,
scale = 0.1,
register_type = REG_INPUT,
scale = 0.1,
rounding = 1,
allowedtypes= HYBRID | X1,
),
Expand Down

0 comments on commit 33cc775

Please sign in to comment.