Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mikael-andersson
Copy link

NB Tested only on G4, can someone please look into G5?

@wills106
Copy link
Owner

wills106 commented Dec 4, 2024

I can't test on a G5, but according to the docs it's the same as the G4.

register = 0x71,
fmt = "i",
native_min_value = 10,
native_max_value = 250,
Copy link
Owner

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

Copy link
Author

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):

image

Copy link
Owner

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?

@@ -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",
Copy link
Owner

Choose a reason for hiding this comment

The 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.

Copy link
Author

Choose a reason for hiding this comment

The 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?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please

Copy link
Author

Choose a reason for hiding this comment

The 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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants