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

[velux] Add an action to simultaneously set main and vane positions #13199

Merged
merged 12 commits into from
Aug 15, 2022

Conversation

andrewfg
Copy link
Contributor

@andrewfg andrewfg commented Jul 31, 2022

Background

In PR #12618 we added support for vane/slat position on shutters that have vanes.

On such shutters, if one sends a main position command followed quickly by a vane position command (or vice-versa) while the shutter is still moving to the position given in the first command, then the second command causes the movement of the first command to stop, and starts the movement of the second command.

Requirement

As described in #13049 there is a need to issue simultaneous main and vane position commands from within a rule, so that both positions will be set without the one cancelling the other.

Solution

This PR adds a moveMainAndVane() action that can be triggered by a rule to simultaneously set both main position and vane position.

Fixes #13049

Note: this PR also includes some extra clarifications in the ReadMe about initial configuration of devices in the KLF200 hub. And concerning the hub's temporary Wi-Fi access point.

Signed-off-by: Andrew Fiddian-Green software@whitebear.ch

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
@andrewfg andrewfg added enhancement An enhancement or new feature for an existing add-on additional testing preferred The change works for the pull request author. A test from someone else is preferred though. labels Jul 31, 2022
@andrewfg andrewfg requested a review from gs4711 as a code owner July 31, 2022 14:53
@andrewfg andrewfg marked this pull request as draft July 31, 2022 14:53
andrewfg added 8 commits July 31, 2022 18:28
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
@andrewfg andrewfg removed the additional testing preferred The change works for the pull request author. A test from someone else is preferred though. label Aug 12, 2022
@andrewfg
Copy link
Contributor Author

User has confirmed functionality. => Converting from draft to active PR.

@andrewfg andrewfg marked this pull request as ready for review August 12, 2022 16:07
@andrewfg andrewfg requested review from jlaur and lolodomo August 12, 2022 16:35
Copy link
Contributor

@lolodomo lolodomo left a comment

Choose a reason for hiding this comment

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

Review all except README

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
@andrewfg andrewfg added rebuild Triggers Jenkins PR build and removed rebuild Triggers Jenkins PR build labels Aug 14, 2022
@andrewfg andrewfg requested a review from lolodomo August 14, 2022 12:49
Copy link
Contributor

@lolodomo lolodomo left a comment

Choose a reason for hiding this comment

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

README review

bundles/org.openhab.binding.velux/README.md Outdated Show resolved Hide resolved
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Copy link
Contributor

@lolodomo lolodomo left a comment

Choose a reason for hiding this comment

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

LGTM, thank you

@lolodomo lolodomo merged commit 41fcdd6 into openhab:main Aug 15, 2022
@lolodomo lolodomo added this to the 3.4 milestone Aug 15, 2022
marcelGoerentz pushed a commit to marcelGoerentz/openhab-addons that referenced this pull request Aug 18, 2022
…penhab#13199)

* [velux] add moveMainAndVane action
* [velux] add claridications to read me
* [velux] refactor actions and translate
* [velux] fix thing lookup

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Marcel Goerentz <m.goerentz@t-online.de>
@andrewfg andrewfg deleted the 13049-velux-action branch September 26, 2022 16:23
leifbladt pushed a commit to leifbladt/openhab-addons that referenced this pull request Oct 15, 2022
…penhab#13199)

* [velux] add moveMainAndVane action
* [velux] add claridications to read me
* [velux] refactor actions and translate
* [velux] fix thing lookup

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
andan67 pushed a commit to andan67/openhab-addons that referenced this pull request Nov 6, 2022
…penhab#13199)

* [velux] add moveMainAndVane action
* [velux] add claridications to read me
* [velux] refactor actions and translate
* [velux] fix thing lookup

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
andrasU pushed a commit to andrasU/openhab-addons that referenced this pull request Nov 12, 2022
…penhab#13199)

* [velux] add moveMainAndVane action
* [velux] add claridications to read me
* [velux] refactor actions and translate
* [velux] fix thing lookup

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andras Uhrin <andras.uhrin@gmail.com>
psmedley pushed a commit to psmedley/openhab-addons that referenced this pull request Feb 23, 2023
…penhab#13199)

* [velux] add moveMainAndVane action
* [velux] add claridications to read me
* [velux] refactor actions and translate
* [velux] fix thing lookup

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
nemerdaud pushed a commit to nemerdaud/openhab-addons that referenced this pull request Feb 28, 2023
…penhab#13199)

* [velux] add moveMainAndVane action
* [velux] add claridications to read me
* [velux] refactor actions and translate
* [velux] fix thing lookup

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
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
Development

Successfully merging this pull request may close these issues.

[velux] Add action to set shade and vane tilt positions simultaneously
2 participants