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

Transition to Object Oriented Model + Therminator Unique Register Support #7

Merged
merged 17 commits into from
Oct 16, 2022

Conversation

LLukas22
Copy link
Contributor

This is my first draft of the changes to make the api more modular.

All Holding and Input registers were moved into classes abstracting the components of the heating system.
Holdingregisters are now also read as a range instead of single values.

The init() of the api now accepts a system parameter which defines what and how componenets are initialized.

These are a lot of changes, i could only verify the buffer, pelletsboiler and heating_circuit componenets of the Therminator.
I could not test any of the writing api functions. I expect there to be some errors, please test it on your system before merging it.

I also added an example to the readme.

README.md Outdated Show resolved Hide resolved
pysolarfocus/const.py Outdated Show resolved Hide resolved
pysolarfocus/const.py Outdated Show resolved Hide resolved
LLukas22 and others added 4 commits October 14, 2022 12:09
Co-authored-by: Jeroen Laverman <LavermanJJ@users.noreply.github.com>
Co-authored-by: Jeroen Laverman <LavermanJJ@users.noreply.github.com>
Co-authored-by: Jeroen Laverman <LavermanJJ@users.noreply.github.com>
Co-authored-by: Jeroen Laverman <LavermanJJ@users.noreply.github.com>
Co-authored-by: Jeroen Laverman <LavermanJJ@users.noreply.github.com>
@LavermanJJ
Copy link
Owner

LavermanJJ commented Oct 14, 2022

I did a sanity check with the values (except heating circuit holding), and it looks good 👍 Great work!

README.md Outdated Show resolved Hide resolved
@LLukas22
Copy link
Contributor Author

Alright, 🤞 this should probably work now.

@LavermanJJ
Copy link
Owner

The skipping of registers is not fully working for me. It works for the first gap (between 32600 and 32602), but it does not recognize the subsequent gap between 32603 and 32605. Would you mind having a second look? Thanks!

btw. I like the enhanced print 👍

@LLukas22
Copy link
Contributor Author

Yeah, i forgot to offset the count after a gap was already detected. I created a test for this case, should work now.

@LavermanJJ
Copy link
Owner

LGTM!

@LavermanJJ LavermanJJ merged commit 33fb8c7 into LavermanJJ:main Oct 16, 2022
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.

None yet

2 participants