Skip to content

Provide some more core utility classes for lighting #4994

@andrewfg

Description

@andrewfg

Would it be possible to provide some core utility classes to make this easy for developers to adapt and/or contribute?
It might be useful to mention or provide a link to the helpers.

What do you have in mind? Maybe conversion between color HSBType B part <=> Percentype brightness <=> OnOffType brightness != 0 ?? Or do you have something else in mind? Alternatively maybe a link to sample implementation ??

Yes, an implementation example is really helpfull. I'm not that familiair to core helpers regarding color, but i guess developers face the same problems. Conversion helpers between individual channels and HSBType, with or without warm/cold white. I have to look at what you did for the zwavejs binding, it did envolve some logic that many developers are not immediate familiar with.

Originally posted by @lsiepel in openhab/openhab-docs#2552 (comment)

Resolved by #4995

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementAn enhancement or new feature of the Core

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions