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

[lutron] Add setLevel thing action to dimmer #8153

Merged
merged 4 commits into from
Jul 29, 2020

Conversation

bobadair
Copy link
Member

@bobadair bobadair commented Jul 18, 2020

This update adds a setLevel(level, fadeTime, delayTime) thing action to the dimmer thing. This allows a level command to be sent with associated fade and delay times.

As discussed previously in openhab/openhab-core#1298, I think it is unfortunate that there isn't a more standard way to add this functionality. Even some attempt at defining a standard set of thing actions might be useful here, so that common actions across different things could be somewhat consistent. In the absence of that, I just picked an action name that I thought logical.

This update also includes a new LutronDuration class for time durations, which will eventually be useful for other coming improvements to the binding.

Signed-off-by: Bob Adair [email protected]
Also-by: Austin Guiswite

bobadair and others added 4 commits July 16, 2020 15:39
* Fix NPE when setting fadeInTime and fadeOutTime variables prior to handler initialization

Signed-off-by: Austin Guiswite <[email protected]>
(cherry picked from commit f2533fe)
@bobadair bobadair added the enhancement An enhancement or new feature for an existing add-on label Jul 18, 2020
@bobadair
Copy link
Member Author

This PR already contains the workaround for issue openhab/openhab-core#1265 suggested in #8116.

Copy link
Member

@Hilbrand Hilbrand left a comment

Choose a reason for hiding this comment

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

LGTM

@Hilbrand Hilbrand merged commit a818e63 into openhab:2.5.x Jul 29, 2020
@Hilbrand Hilbrand added this to the 2.5.8 milestone Jul 29, 2020
@bobadair
Copy link
Member Author

Thanks @Hilbrand, and thanks @aguiswite!

@bobadair bobadair deleted the lutronactions branch July 29, 2020 17:47
MPH80 pushed a commit to MPH80/openhab-addons that referenced this pull request Aug 3, 2020
* [lutron] Workaround for thing actions bug
* [lutron] Fix NPE
* Fix NPE when setting fadeInTime and fadeOutTime variables prior to handler initialization

Also-by: Austin Guiswite <[email protected]>
Signed-off-by: Bob Adair <[email protected]>
Signed-off-by: MPH80 <[email protected]>
andrewfg pushed a commit to andrewfg/openhab-addons that referenced this pull request Aug 31, 2020
* [lutron] Workaround for thing actions bug
* [lutron] Fix NPE
* Fix NPE when setting fadeInTime and fadeOutTime variables prior to handler initialization

Also-by: Austin Guiswite <[email protected]>
Signed-off-by: Bob Adair <[email protected]>
andrewfg pushed a commit to andrewfg/openhab-addons that referenced this pull request Aug 31, 2020
* [lutron] Workaround for thing actions bug
* [lutron] Fix NPE
* Fix NPE when setting fadeInTime and fadeOutTime variables prior to handler initialization

Also-by: Austin Guiswite <[email protected]>
Signed-off-by: Bob Adair <[email protected]>
andrewfg pushed a commit to andrewfg/openhab-addons that referenced this pull request Aug 31, 2020
* [lutron] Workaround for thing actions bug
* [lutron] Fix NPE
* Fix NPE when setting fadeInTime and fadeOutTime variables prior to handler initialization

Also-by: Austin Guiswite <[email protected]>
Signed-off-by: Bob Adair <[email protected]>
andrewfg pushed a commit to andrewfg/openhab-addons that referenced this pull request Aug 31, 2020
* [lutron] Workaround for thing actions bug
* [lutron] Fix NPE
* Fix NPE when setting fadeInTime and fadeOutTime variables prior to handler initialization

Also-by: Austin Guiswite <[email protected]>
Signed-off-by: Bob Adair <[email protected]>
DaanMeijer pushed a commit to DaanMeijer/openhab-addons that referenced this pull request Sep 1, 2020
* [lutron] Workaround for thing actions bug
* [lutron] Fix NPE
* Fix NPE when setting fadeInTime and fadeOutTime variables prior to handler initialization

Also-by: Austin Guiswite <[email protected]>
Signed-off-by: Bob Adair <[email protected]>
Signed-off-by: Daan Meijer <[email protected]>
CSchlipp pushed a commit to CSchlipp/openhab-addons that referenced this pull request Sep 12, 2020
* [lutron] Workaround for thing actions bug
* [lutron] Fix NPE
* Fix NPE when setting fadeInTime and fadeOutTime variables prior to handler initialization

Also-by: Austin Guiswite <[email protected]>
Signed-off-by: Bob Adair <[email protected]>
markus7017 pushed a commit to markus7017/openhab-addons that referenced this pull request Sep 19, 2020
* [lutron] Workaround for thing actions bug
* [lutron] Fix NPE
* Fix NPE when setting fadeInTime and fadeOutTime variables prior to handler initialization

Also-by: Austin Guiswite <[email protected]>
Signed-off-by: Bob Adair <[email protected]>
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.

3 participants