Skip to content

Commit

Permalink
Merge pull request #496 from canton7/feature/star-h3
Browse files Browse the repository at this point in the history
Add support for STAR-H3 inverter
  • Loading branch information
canton7 authored Jan 6, 2024
2 parents ebd3671 + 31ff443 commit ef05fdd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions custom_components/foxess_modbus/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
AIO_H3 = "AIO-H3"
KUARA_H3 = "KUARA-H3"
SK_HWR = "SK-HWR"
STAR_H3 = "STAR-H3"

# Platforms
SENSOR = "sensor"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
from ..const import KH
from ..const import KUARA_H3
from ..const import SK_HWR
from ..const import STAR_H3
from .charge_periods import CHARGE_PERIODS
from .entity_factory import EntityFactory
from .inverter_model_spec import EntitySpec
Expand All @@ -38,7 +39,7 @@

H1_SET = [H1, AIO_H1, AC1]

H3_SET = [H3, AIO_H3, AC3, KUARA_H3, SK_HWR]
H3_SET = [H3, AIO_H3, AC3, KUARA_H3, SK_HWR, STAR_H3]

# TODO: There should be equivalent registers for the H3 somewhere
BMS_CONNECT_STATE_ADDRESS = [
Expand Down
5 changes: 5 additions & 0 deletions custom_components/foxess_modbus/inverter_profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
from .const import KUARA_H3
from .const import LAN
from .const import SK_HWR
from .const import STAR_H3
from .entities import invalid_ranges
from .entities.charge_periods import CHARGE_PERIODS
from .entities.entity_descriptions import ENTITIES
Expand Down Expand Up @@ -200,6 +201,10 @@ def add_connection_type(
AUX,
RegisterType.HOLDING,
),
# STAR
# STAR-H3-12.0-E: H3-12.0-E
# (presumably there are other sizes also)
InverterModelProfile(STAR_H3, r"^STAR-H3-").add_connection_type(AUX, RegisterType.HOLDING),
]
}

Expand Down

0 comments on commit ef05fdd

Please sign in to comment.