Skip to content

Aeon SmartDimmer 6 DTHs not implementing Color Control properly #29

Description

@andrewsayre

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions