Skip to content

light_store.py and RGBW lights-problem #157

@aracdin

Description

@aracdin

Hi,
Thanks for the useful routine. I tried using this with an RGBW light in Home-Assistant and it would restore the brightness, but not the colour. Python isn't one of my languages yet, but I eventually tracked the problem to "they will be saved: brightness, effect, and one of the following (in order of precedence): white_value, color_temp, hs_color" - an RGBW has both white level AND the RGB/HS value - and light_store only brings back the first it finds. I temporarily fixed my problem by altering the precedence to COLOR_ATTRS = [ATTR_HS_COLOR, ATTR_COLOR_TEMP, ATTR_WHITE_VALUE], but unfortunately my python isn't good enough for a full fix :-(

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