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

Initial version of a definitions file for the 3phase inverters #93

Merged
merged 8 commits into from
Feb 5, 2023

Conversation

kababoom
Copy link
Contributor

Not remembering last time I created a pull request so hope all went well..

As discussed in issue #63 here's a separate file with registeres for the 3 phase inverters. There are sensors removed and sensors added like the different phase values (credits to @archi for these).

The program 'mode options' I'm not sure of, might be there's a difference between inverters in this menu.
I can set the time, charge options, power and voltage/soc. Enable/disable global time-of use and set the battery max charge/discharge amps. Which was my goal. There are a couple of optional sensors, they work and someone might be interested in these.

The 3 phase inverters don't have a SD Card but if the sensor is removed it crashes because of filter line 201 so I left it.
(btw, you should remove register 107 for fault sensor, it's 'corrected Ah' not a fault register)

The way I see it there are two ways of implementing, simple drop-down list selecting single-phase / 3-phase definitions file. Or automatically by reading register 0. This will give 3 for a hybrid inverter and 5 for a 3 phase hybrid inverter. Based on that value the 'correct' definitions file can be loaded.

I will be able to add the drop-down option, it will work but I'm not a python programmer so probably will not be the correct way.

I'm using a Waveshare rs485-eth converter, and it's working great so far. It's cheap (around 25eur inc shipping) https://www.waveshare.com/product/rs232-to-eth-b.htm If you want I can take a screenshot of the settings page to add to the readme.

If there's anything wrong in the file, am forgetting or any other comments please let me know.

Thanks for creating this great plugin...

@kellerza
Copy link
Owner

kellerza commented Feb 5, 2023

Thanks for the PR @kababoom !

I reverted definitions.py and will accept definitions3ph.py and the switch sensor

Register 107 might solve #71

@kellerza kellerza merged commit 0480082 into kellerza:main Feb 5, 2023
@bruceborrett
Copy link

Can anyone confirm how to use this definitions file? Do I have to create a local copy of the addon and rename definitions3ph.py to definitions.py?

@bruceborrett
Copy link

So I cloned the repo and renamed the file as per my previous comment, but with debug turned on I can see its still requesting the same registers from the original definitions file 😕

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