-
-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add entity Main Breaker Current Limit #1140
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -803,6 +803,18 @@ def value_function_battery_voltage_cell_difference(initval, descr, datadict): | |
allowedtypes = AC | HYBRID | GEN4 | GEN5, | ||
icon = "mdi:battery-charging-high", | ||
), | ||
SolaxModbusNumberEntityDescription( | ||
name = "Main Breaker Current Limit", | ||
key = "main_breaker_current_limit", | ||
register = 0x71, | ||
fmt = "i", | ||
native_min_value = 10, | ||
native_max_value = 250, | ||
native_step = 1, | ||
native_unit_of_measurement = UnitOfElectricCurrent.AMPERE, | ||
device_class = NumberDeviceClass.CURRENT, | ||
allowedtypes = AC | HYBRID | GEN4 | GEN5, | ||
), | ||
SolaxModbusNumberEntityDescription( | ||
name = "Feedin On Power", | ||
key = "feedin_on_power", | ||
|
@@ -2842,6 +2854,13 @@ def value_function_battery_voltage_cell_difference(initval, descr, datadict): | |
allowedtypes = HYBRID | GEN4 | GEN5, | ||
internal = True, | ||
), | ||
SolaXModbusSensorEntityDescription( | ||
name = "Main Breaker Current Limit", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. name = Isn't actually required on Internal entities, only the key is required. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do you want me to remove it then so that it is consistent with other Internal entities? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK, will do. :) Should I also add X1 and X3 in the list of allowedtypes? |
||
key = "main_breaker_current_limit", | ||
register = 0xD7, | ||
allowedtypes = AC | HYBRID | GEN4 | GEN5, | ||
internal = True, | ||
), | ||
SolaXModbusSensorEntityDescription( | ||
name = "Battery Install Capacity", | ||
key = "battery_install_capacity", | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the Inverter allow you to set 250A? As the docs only mention 100A
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My pull request was intended for X3, but does my pull request apply to X1?
From Solax Modbus spec (V3.24):
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was actually looking at 0xD7, where it only mentions 32-100A. It's common for there to be a difference within the docs...
I would keep it at 10-250, people can then set it to what suits.
Or we could have an X1 0x71 with 10-100 and an X3 0x71 with 10-250?