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

[velbus] New functionality and bug fix #15661

Merged
merged 44 commits into from
Apr 28, 2024
Merged

[velbus] New functionality and bug fix #15661

merged 44 commits into from
Apr 28, 2024

Conversation

Rosen01
Copy link
Contributor

@Rosen01 Rosen01 commented Sep 27, 2023

New functionality :

Fix bug :

  • No access to sub-address modules when adding manually the modules : VMBELO, VMBGPO, VMBGPOD, VMBGPOD-2 (fixes [Velbus] Button Modules with multiple adressess not fully working #12702)
  • Thermostat event wrongly fired when using push button on sub-address for modules VMBELO, VMBGPO, VMBGPOD, VMBGPOD-2.
  • Wrong typeId for bridge alarms management.
  • Trigger all the channels present in a packet. (bug reported here)

Signed-off-by: Daniel Rosengarten github@praetorians.be

New functionnality :
- Add output channel for modules : VMBEL1, VMBEL2, VMBEL4, VMBELO, VMBELPIR. (openhab#14179)
- Add module VMBDALI. (openhab#14654)

Fix bug :
- No access to sub-address modules when adding manually the modules : VMBELO,VMBGPO, VMBGPOD, VMBGPOD-2 (openhab#12702)
- Thermostat event wrongly fired when using push button on sub-address for modules VMBELO, VMBGPO, VMBGPOD, VMBGPOD_2.
- Wrong typeId for bridge alarms management.

Signed-off-by: Daniel Rosengarten <github@praetorians.be>
@openhab-bot
Copy link
Collaborator

This pull request has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/velbus-vmbpirm-only-ch3-supported/147834/4

Changed the management of VMBDALI white channel.

Signed-off-by: Daniel Rosengarten <github@praetorians.be>
@lsiepel lsiepel added the enhancement An enhancement or new feature for an existing add-on label Sep 30, 2023
Copy link
Contributor

@nagisa nagisa left a comment

Choose a reason for hiding this comment

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

Initial pass, still didn’t look at VMBDALI and need more time to grok subaddress changes.

Copy link
Contributor

@nagisa nagisa left a comment

Choose a reason for hiding this comment

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

Reviewed the rest of this. Thanks for going through the implementation effort here (I’m sure people will appreciate it when this finally lands.)

As a broader comment, I truly wonder if having VirtualLight be configured through a parameter on VMBDALI is the right thing. My view of this is that making it a proper thing (perhaps a child of the VMBDALI Thing, much like VMBDALI is itself a child of the network bridge) would make it much much easier to expand the concept in the future if the need arised. Now with VL=CH1,CH2,CH3,CH4 configuration that's pretty much the extent that can exist. If we wanted to add additional functionality that requires configuration, we wouldn’t be able to do so without introducing a breaking change.

@nagisa
Copy link
Contributor

nagisa commented Sep 30, 2023

One thing to keep in mind as you peruse my review comments: I haven’t contributed to OpenHAB code in the past (so e.g. my knowledge of conventions in this project is non-existent), and the last time I have written any Java was also many, many years ago (so my knowledge of conventions in this entire ecosystem are also non-existent.)

If the comments don’t make sense or they suggest to do something the wrong way around, feel free to simply resolve that comment and forget ever seeing it :)

@wborn wborn changed the title [velbus] New functionnality & Bug fix [velbus] New functionality and bug fix Oct 2, 2023
Rosen01 and others added 13 commits October 4, 2023 09:27
…inding/velbus/internal/VelbusBindingConstants.java

Co-authored-by: Simonas Kazlauskas <github@kazlauskas.me>
Signed-off-by: Daniel Rosengarten <rosengarten01@hotmail.com>
…inding/velbus/internal/VelbusBindingConstants.java

Co-authored-by: Simonas Kazlauskas <github@kazlauskas.me>
Signed-off-by: Daniel Rosengarten <rosengarten01@hotmail.com>
Co-authored-by: Simonas Kazlauskas <github@kazlauskas.me>
Signed-off-by: Daniel Rosengarten <rosengarten01@hotmail.com>
Co-authored-by: Simonas Kazlauskas <github@kazlauskas.me>
Signed-off-by: Daniel Rosengarten <rosengarten01@hotmail.com>
…inding/velbus/internal/discovery/VelbusThingDiscoveryService.java

Co-authored-by: Simonas Kazlauskas <github@kazlauskas.me>
Signed-off-by: Daniel Rosengarten <rosengarten01@hotmail.com>
Co-authored-by: Simonas Kazlauskas <github@kazlauskas.me>
Signed-off-by: Daniel Rosengarten <rosengarten01@hotmail.com>
Co-authored-by: Simonas Kazlauskas <github@kazlauskas.me>
Signed-off-by: Daniel Rosengarten <rosengarten01@hotmail.com>
Co-authored-by: Simonas Kazlauskas <github@kazlauskas.me>
Signed-off-by: Daniel Rosengarten <rosengarten01@hotmail.com>
…inding/velbus/internal/VelbusVirtualColorChannel.java

Co-authored-by: Simonas Kazlauskas <github@kazlauskas.me>
Signed-off-by: Daniel Rosengarten <rosengarten01@hotmail.com>
…inding/velbus/internal/VelbusVirtualColorChannel.java

Co-authored-by: Simonas Kazlauskas <github@kazlauskas.me>
Signed-off-by: Daniel Rosengarten <rosengarten01@hotmail.com>
…inding/velbus/internal/VelbusVirtualColorChannel.java

Co-authored-by: Simonas Kazlauskas <github@kazlauskas.me>
Signed-off-by: Daniel Rosengarten <rosengarten01@hotmail.com>
* VelbusVirtualColorChannel class
Permits different values (CH0 or A0) to configure the virtual light's channels.
* VelbusColorChannel class
Makes color transformation easy with the rescale function.
* onPacketReceived interface
Stops processing packets when handler is disposed.

Signed-off-by: Daniel Rosengarten <github@praetorians.be>
@nagisa
Copy link
Contributor

nagisa commented Oct 5, 2023

This looks really nice so far. Unfortunately I haven’t the capabilities to help with driving the PR further. Hopefully my reviews have been helpful and whenever somebody with merge button powers comes along, they’ll be happy enough with the changes to be able to press it without further questions :)

Signed-off-by: Daniel Rosengarten <github@praetorians.be>
@lsiepel lsiepel requested a review from a team November 12, 2023 19:42
Copy link
Contributor

@lsiepel lsiepel left a comment

Choose a reason for hiding this comment

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

As the thing configuration has been altered, i think it would be needed to add thing upgrade instructions:
https://www.openhab.org/docs/developer/bindings/thing-xml.html#updating-thing-types

Rosen01 and others added 2 commits November 14, 2023 12:14
Thing upgrade instructions for VMBEL1, VMBEL2, VMBEL4, VMBELO.

Signed-off-by: Daniel Rosengarten <github@praetorians.be>
Rosen01 and others added 4 commits January 17, 2024 23:24
Signed-off-by: Daniel Rosengarten <github@praetorians.be>
Added missing bundle reference in channel type.

Signed-off-by: Daniel Rosengarten <github@praetorians.be>
@Rosen01
Copy link
Contributor Author

Rosen01 commented Jan 30, 2024

@cedricboon is there any chance you find time to check the code and accept the pull request ?

@Rosen01
Copy link
Contributor Author

Rosen01 commented Mar 8, 2024

It seems that @cedricboon has no time to do the review.
It would be nice if a maintainer (@lsiepel, @jlaur, @lolodomo, @fwolter) can review and, if it's OK, merge this pull request.

Rosen01 and others added 4 commits March 24, 2024 22:30
Copy link
Contributor

@lsiepel lsiepel left a comment

Choose a reason for hiding this comment

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

Thanks, left some comments. Overall it looks good, thanks for the fixes. Hopefully future PR's are a bit smaller :-)

Rosen01 and others added 7 commits April 28, 2024 21:39
Co-authored-by: lsiepel <leosiepel@gmail.com>
Signed-off-by: Daniel Rosengarten <rosengarten01@hotmail.com>
…inding/velbus/internal/handler/VelbusVMBELHandler.java

Co-authored-by: lsiepel <leosiepel@gmail.com>
Signed-off-by: Daniel Rosengarten <rosengarten01@hotmail.com>
…inding/velbus/internal/handler/VelbusVMBELOHandler.java

Co-authored-by: lsiepel <leosiepel@gmail.com>
Signed-off-by: Daniel Rosengarten <rosengarten01@hotmail.com>
…inding/velbus/internal/handler/VelbusVMBDALIHandler.java

Co-authored-by: lsiepel <leosiepel@gmail.com>
Signed-off-by: Daniel Rosengarten <rosengarten01@hotmail.com>
…inding/velbus/internal/handler/VelbusVMBDALIHandler.java

Co-authored-by: lsiepel <leosiepel@gmail.com>
Signed-off-by: Daniel Rosengarten <rosengarten01@hotmail.com>
Signed-off-by: Daniel Rosengarten <github@praetorians.be>
@lsiepel lsiepel merged commit bd2dcba into openhab:main Apr 28, 2024
5 checks passed
Copy link
Contributor

@lsiepel lsiepel left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM

@lsiepel lsiepel added this to the 4.2 milestone Apr 28, 2024
lo92fr pushed a commit to lo92fr/openhab-addons that referenced this pull request Apr 30, 2024
* [velbus] New functionnality & Bug fix

Signed-off-by: Daniel Rosengarten <github@praetorians.be>
Co-authored-by: Simonas Kazlauskas <github@kazlauskas.me>
Co-authored-by: lsiepel <leosiepel@gmail.com>
psmedley pushed a commit to psmedley/openhab-addons that referenced this pull request Jun 15, 2024
* [velbus] New functionnality & Bug fix

Signed-off-by: Daniel Rosengarten <github@praetorians.be>
Co-authored-by: Simonas Kazlauskas <github@kazlauskas.me>
Co-authored-by: lsiepel <leosiepel@gmail.com>
Signed-off-by: Paul Smedley <paul@smedley.id.au>
pgfeller pushed a commit to pgfeller/openhab-addons that referenced this pull request Sep 29, 2024
* [velbus] New functionnality & Bug fix

Signed-off-by: Daniel Rosengarten <github@praetorians.be>
Co-authored-by: Simonas Kazlauskas <github@kazlauskas.me>
Co-authored-by: lsiepel <leosiepel@gmail.com>
Signed-off-by: Patrik Gfeller <patrik.gfeller@proton.me>
joni1993 pushed a commit to joni1993/openhab-addons that referenced this pull request Oct 15, 2024
* [velbus] New functionnality & Bug fix

Signed-off-by: Daniel Rosengarten <github@praetorians.be>
Co-authored-by: Simonas Kazlauskas <github@kazlauskas.me>
Co-authored-by: lsiepel <leosiepel@gmail.com>
matchews pushed a commit to matchews/openhab-addons that referenced this pull request Oct 18, 2024
* [velbus] New functionnality & Bug fix

Signed-off-by: Daniel Rosengarten <github@praetorians.be>
Co-authored-by: Simonas Kazlauskas <github@kazlauskas.me>
Co-authored-by: lsiepel <leosiepel@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature for an existing add-on
Projects
None yet
4 participants