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

Lamp Power? #20

Open
autolog opened this issue Nov 14, 2016 · 1 comment
Open

Lamp Power? #20

autolog opened this issue Nov 14, 2016 · 1 comment

Comments

@autolog
Copy link

autolog commented Nov 14, 2016

The documentation states:

The power level can be either standby (0) or enabled (65535).

I note that when I brighten or dim a lamp over say 10 seconds and query the lamp every second (via a Get - 101) that the Power Level is coming back as a slowly increasing (or decreasing) value.

The documentation states:

There are a duplicate set of device power related messages, Device::GetPower, Device::StatePower and Device::SetPower, which are extended for lights by adding a duration field to Light::SetPower.

This implies there have been changes in this area. Passing back a variable value for Power Level is actually quite useful - is the documentation out of date or is this an unsupported feature?

@autolog
Copy link
Author

autolog commented Nov 14, 2016

It seems the Power Level (from 0% - 100%) represents the percentage of the actual brightness selected. For example, if you set the brightness level to 80%, then when the Power Level = 50% (32,768) this equates to a brightness level of 40%.

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

No branches or pull requests

1 participant