-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[vallox] Vallox Binding initial contribution #6459
Conversation
This pull request has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/new-vallox-binding-wip/86425/1 |
Hi, As you can see I made a new commit and I'm almost done. I finalized the serial connection part but haven't had a chance to test it properly. Getting serial port over ethernet to work has given me headaches. When setting serial port parameters the implementation is throwing /Miika Edit:Looks like serial port parameters are in the wrong order 🤦♂️ |
I never implemented a fix in the DSMR binding. I stranded in a discussion on how this should be implemented eclipse-archived/smarthome#6280 I still think this should be handled in core. In another binding they simply wrapped the problematic methods. See #4372 |
Hmm I got this working with: Vallox ->RS485 ->USB -> RPi3 -> ser2net -> My desktop running Win 10 with HW Virtual serial port VSP3 -> Eclipse IDE. I'm quite unfamiliar with low level serial implementation in java but looks like it's using RxTx and both |
@bjoernbrings could you take a look at this and see if you approve the way that I combined these two bindings. I also formatted all channels and groups to lowerCamelCase. Should this also be done to MV channels or is it a breaking change? Check also the README and valloxmv_de.properties. |
08bb923
to
d49c873
Compare
I'm done so far and ready for reviews. I'll leave UoM implementation for later. Edit: |
Seems to me like a merge of a new binding (for the old system) with 'my' old binding (for the new system) without any change in or reuse of overlapping functionality. I'm totally fine with it. Though I'm in principle a bit unsure what should should apply when there should be one binding or several
I'm personally happy with both solutions |
The binding count only increases over time and merging these two keeps the count one less? |
4d8166c
to
1fab8f3
Compare
@bjoernbrings what is the potential issue with backwards compatibility? |
The thing id changes from The additions between this binding and the valloxmv binding doesn't seem to share much code. So it's not conclusive if this should be combined. However if it's going to be shared I would prefer to first move the |
Understood but who makes the decision then? Might be better to leave these separated. |
Travis tests were successfulHey @gitMiguel, |
Signed-off-by: Miika Jukka <miikajukka@gmail.com>
Signed-off-by: Miika Jukka <miikajukka@gmail.com>
Signed-off-by: Miika Jukka <miikajukka@gmail.com>
Signed-off-by: Miika Jukka <miikajukka@gmail.com>
- Fix log statement and remove null check suppressions Signed-off-by: Miika Jukka <miikajukka@gmail.com>
- ChannelMapper from Map to Enum (ChannelDescriptor) - Remove excess null suppressions - Remove ByteBuffer - Remove leftover try-catch clauses - Change cache map key from Byte to ChannelDescriptor - Change runnables to private methods and apply method reference - Convert to primitives where applicable - Logging and thing status fixes - Bump version to 2.5.4-SNAPSHOT Signed-off-by: Miika Jukka <miikajukka@gmail.com>
Signed-off-by: Miika Jukka <miikajukka@gmail.com>
Signed-off-by: Miika Jukka <miikajukka@gmail.com>
... null check suppression from sendTelegram() Signed-off-by: Miika Jukka <github@lantee.eu>
- Remove scheduler from connectors and use dedicated threads - Switch to atomic booleans - Remove efficiency channels. Calculation formula outdated. - Address ChannelDescriptor with static maps - Pass ValloxConnector from HandlerFactory and remove ConnectorFactory - Remove unused methods and constants - Ensure that Cache returns null where values are missing - Other smaller fixes Signed-off-by: Miika Jukka <github@lantee.eu>
...temperature, humidity and DC fan adjustment channels. Signed-off-by: Miika Jukka <github@lantee.eu>
Signed-off-by: Miika Jukka <github@lantee.eu>
Signed-off-by: Miika Jukka <github@lantee.eu>
Signed-off-by: Miika Jukka <github@lantee.eu>
- Clean constants file Signed-off-by: Miika Jukka <github@lantee.eu>
Signed-off-by: Miika Jukka <github@lantee.eu>
Signed-off-by: Miika Jukka <github@lantee.eu>
Signed-off-by: Miika Jukka <github@lantee.eu>
Signed-off-by: Miika Jukka <github@lantee.eu>
Signed-off-by: Miika Jukka <github@lantee.eu>
Signed-off-by: Miika Jukka <github@lantee.eu>
Signed-off-by: Miika Jukka <github@lantee.eu>
Travis tests were successfulHey @gitMiguel, |
Sorry but I don't have any time to finish this. Still hoping to get back and finish it somewhere in the future. |
This pull request has been mentioned on openHAB Community. There might be relevant details there: |
Vallox Binding initial contribution.
Continuing https://github.com/openhab/openhab2-addons/pull/1560. See also discussion about different models of vallox units https://github.com/openhab/openhab2-addons/pull/2990.
This is a partial rewrite from #1560 and my goal is to have the Vallox MV binding combined to this so then we would have a single Vallox binding. Work is still in progress but as a beginner with java I would like a maintainers review/opinion and guide me to the right direction if needed.
@SuperOok can you take a look and give your comments as this is your original work.
Also tagging @bjoernbrings to get some comments about combining these two.
Download from jfrog: org.openhab.binding.vallox-2.5.7-SNAPSHOT.jar
Or install from marketplace: Exlipse Markeplace Vallox binding
Discussion: community.openhab.org/t/new-vallox-binding-wip/86425
Todo:
ReadmeIntegrate Vallox MV BindingTest serial communicationFinalize serial communication.Modify cache.Provide download link for testing. Eclipse marketplace and direct link.Signed-off-by: Miika Jukka miikajukka@gmail.com (github: gitMiguel)
Closes #1559