Skip to content

Commit

Permalink
Merge pull request #617 from cewbdex/disable-entities-by-default
Browse files Browse the repository at this point in the history
Disable sensor entities that have a control entity
  • Loading branch information
wills106 authored Nov 13, 2023
2 parents 5683b66 + 9e227be commit c1021f9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions custom_components/solax_modbus/plugin_solax.py
Original file line number Diff line number Diff line change
Expand Up @@ -1970,6 +1970,7 @@ def value_function_remotecontrol_autorepeat_remaining(initval, descr, datadict):
name = "Battery Charge Max Current",
key = "battery_charge_max_current",
native_unit_of_measurement = UnitOfElectricCurrent.AMPERE,
entity_registry_enabled_default = False,
register = 0x90,
scale = 0.01,
allowedtypes = GEN2,
Expand All @@ -1979,6 +1980,7 @@ def value_function_remotecontrol_autorepeat_remaining(initval, descr, datadict):
name = "Battery Charge Max Current",
key = "battery_charge_max_current",
native_unit_of_measurement = UnitOfElectricCurrent.AMPERE,
entity_registry_enabled_default = False,
register = 0x90,
scale = 0.1,
allowedtypes = GEN3 | GEN4,
Expand Down Expand Up @@ -2020,6 +2022,7 @@ def value_function_remotecontrol_autorepeat_remaining(initval, descr, datadict):
key = "selfuse_discharge_min_soc",
register = 0x93,
unit = REGISTER_U8H,
entity_registry_enabled_default = False,
allowedtypes = GEN4,
),
SolaXModbusSensorEntityDescription(
Expand All @@ -2028,6 +2031,7 @@ def value_function_remotecontrol_autorepeat_remaining(initval, descr, datadict):
register = 0x93,
unit = REGISTER_U8L,
scale = { 0: "Disabled", 1: "Enabled", },
entity_registry_enabled_default = False,
allowedtypes = GEN4,
),
SolaXModbusSensorEntityDescription(
Expand All @@ -2046,6 +2050,7 @@ def value_function_remotecontrol_autorepeat_remaining(initval, descr, datadict):
key = "selfuse_nightcharge_upper_soc",
register = 0x94,
native_unit_of_measurement = PERCENTAGE,
entity_registry_enabled_default = False,
allowedtypes = GEN4,
),
SolaXModbusSensorEntityDescription(
Expand All @@ -2054,6 +2059,7 @@ def value_function_remotecontrol_autorepeat_remaining(initval, descr, datadict):
register = 0x95,
unit = REGISTER_U8H,
native_unit_of_measurement = PERCENTAGE,
entity_registry_enabled_default = False,
allowedtypes = GEN4,
),
SolaXModbusSensorEntityDescription(
Expand All @@ -2062,6 +2068,7 @@ def value_function_remotecontrol_autorepeat_remaining(initval, descr, datadict):
register = 0x95,
unit = REGISTER_U8L,
native_unit_of_measurement = PERCENTAGE,
entity_registry_enabled_default = False,
allowedtypes = GEN4,
),
SolaXModbusSensorEntityDescription(
Expand All @@ -2081,6 +2088,7 @@ def value_function_remotecontrol_autorepeat_remaining(initval, descr, datadict):
register = 0x96,
unit = REGISTER_U8H,
native_unit_of_measurement = PERCENTAGE,
entity_registry_enabled_default = False,
allowedtypes = GEN4,
icon = "mdi:battery-sync",
),
Expand All @@ -2090,6 +2098,7 @@ def value_function_remotecontrol_autorepeat_remaining(initval, descr, datadict):
register = 0x96,
unit = REGISTER_U8L,
native_unit_of_measurement = PERCENTAGE,
entity_registry_enabled_default = False,
allowedtypes = GEN4,
icon = "mdi:battery-sync",
),
Expand Down

0 comments on commit c1021f9

Please sign in to comment.