Skip to content

Lights JSON broken on recent home assistant #2539

@mcspr

Description

@mcspr

Noticed in gitter
https://gitter.im/tinkerman-cat/espurna?at=632e273b9d3c186299170be1

Based on updated docs
https://www.home-assistant.io/integrations/light.mqtt/#json-schema

"white_value" is deprecated and replaced with ["color"]["w"] and ["color"]["c"] combined with "color_mode"

// {
// "brightness": 255,
// "color_temp": 155,
// "color": {
// "r": 255,
// "g": 180,
// "b": 200,
// "x": 0.406,
// "y": 0.301,
// "h": 344.0,
// "s": 29.412
// },
// "effect": "colorloop",
// "state": "ON",
// "transition": 2,
// "white_value": 150
// }

https://www.home-assistant.io/integrations/light.mqtt/#color_mode

Flag that defines if the light supports color modes.

https://www.home-assistant.io/integrations/light.mqtt/#supported_color_modes

A list of color modes supported by the list. This is required if color_mode is True. Possible color modes are onoff, brightness, color_temp, hs, xy, rgb, rgbw, rgbww, white.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions