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

Aeon SmartDimmer 6 DTHs not implementing Color Control properly #29

Open
andrewsayre opened this issue Feb 20, 2019 · 0 comments
Open

Comments

@andrewsayre
Copy link

The three DTHs supporting Aeon SmartDimmer 6 implement Color Control (to change the LED color), but do not implement all of the required attributes and commands of the capability. The capability reference identifies attributes hue and saturation as required as well as supporting setHue and setSaturation. Currently, the DTHs are only supporting color and setColor.

There are built-in utilities to convert to/from color to hue/saturation:

From color hex to hue/sat:

def hsv = colorUtil.hexToHsv("#FFFFFF")
def hue = hsv[0]
def saturation = hsv[1]

From hue/sat to color hex:

def hue = 100
def saturation = 100
def color = colorUtil.hsvToHex(hue, saturation)
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