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

Remove redundant else statements & add 3phase check #105

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ryanm101
Copy link
Contributor

@ryanm101 ryanm101 commented Sep 14, 2022

Remove the additional phases if you have single phase supply.. #103

This should also be auto-configurable based on the C_SUNSPEC_DID (40069/40070); 101 = SinglePhase, 102=Split Phase (seems to be a USA thing), 103 = 3phase

@ryanm101 ryanm101 changed the title Remove redundant else statements & andd 3phase check Remove redundant else statements & and add 3phase check Sep 14, 2022
@ryanm101 ryanm101 changed the title Remove redundant else statements & and add 3phase check Remove redundant else statements & add 3phase check Sep 14, 2022
Copy link
Contributor

@mpredfearn mpredfearn left a comment

Choose a reason for hiding this comment

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

You should also split the 3 phase sensors out of SENSOR_TYPES and only register them in https://github.com/binsentsu/home-assistant-solaredge-modbus/blob/master/custom_components/solaredge_modbus/sensor.py#L48 if hub.read_3phase == True

That way single phase systems won't have all of the redundant additional sensors.

@bouwew
Copy link
Contributor

bouwew commented Jan 22, 2024

This is a really good PR! Why was it never finished?

@ryanm101
Copy link
Contributor Author

ryanm101 commented Jan 23, 2024

I started to use: https://github.com/WillCodeForCats/solaredge-modbus-multi instead as it did everything i wanted and didnt block the TCP connection to the modbus as it polls instead of holding the connection.

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.

3 participants