yangqian/hass-cozylife

Scene with invalid values stored in scene.yaml

Opened this issue · 0 comments

When I use the scene editor, I can add the entities, adjust the attributes of the color temp in Kelvin, save the scene but when I use the scene, it gives invalid values in the hs_color (HA error saying the value in hs_color needs to be within 360), the editor does not set the color_mode to color_temp or set the color_temp_Kelvin to any value. This is the section of the scene.yaml after using the editor to setup a two cozyLife lights:

  • id: '1701500756356'
    name: Twins on
    entities:
    light.cozylife_smart_bulb_light_2:
    min_color_temp_kelvin: 2000
    max_color_temp_kelvin: 6535
    min_mireds: 153
    max_mireds: 500
    supported_color_modes:
    - brightness
    - color_temp
    - hs
    - onoff
    color_mode: hs
    brightness: 250
    color_temp_kelvin:
    color_temp:
    hs_color:
    - 65535
    - 6553
    rgb_color:
    - 255
    - -12277
    - -16455
    xy_color:
    - 0.086
    - 0.293
    icon: mdi:floor-lamp-torchiere
    friendly_name: North Lamp
    supported_features: 0
    state: 'on'
    light.cozylife_smart_bulb_light_3:
    min_color_temp_kelvin: 2000
    max_color_temp_kelvin: 6535
    min_mireds: 153
    max_mireds: 500
    supported_color_modes:
    - brightness
    - color_temp
    - hs
    - onoff
    color_mode: hs
    brightness: 247
    color_temp_kelvin:
    color_temp:
    hs_color:
    - 65535
    - 6553
    rgb_color:
    - 255
    - -12277
    - -16455
    xy_color:
    - 0.086
    - 0.293
    icon: mdi:floor-lamp-torchiere
    friendly_name: South Lamp
    supported_features: 0
    state: 'on'
    metadata:
    light.cozylife_smart_bulb_light_2:
    entity_only: true
    light.cozylife_smart_bulb_light_3:
    entity_only: true

I tried a manual setup of the scene with the following, the config is valid but the lights do not adjust when the scene is activated. I have reloaded the configs after each edit of the scene and also restart HA after edits but the light wont respond.

  • id: "1701500756356"
    name: Twins on
    entities:
    light.cozylife_smart_bulb_light_2:
    min_color_temp_kelvin: 2000
    max_color_temp_kelvin: 6535
    supported_color_modes:
    - brightness
    - color_temp
    - hs
    - onoff
    color_mode: color_temp
    color_temp_kelvin: 2000
    icon: mdi:floor-lamp-torchiere
    friendly_name: North Lamp
    supported_features: 0
    state: "on"
    light.cozylife_smart_bulb_light_3:
    min_color_temp_kelvin: 2000
    max_color_temp_kelvin: 6535
    supported_color_modes:
    - brightness
    - color_temp
    - hs
    - onoff
    color_mode: color_temp
    color_temp_kelvin: 2000
    icon: mdi:floor-lamp-torchiere
    friendly_name: South Lamp
    state: "on"
    metadata:
    light.cozylife_smart_bulb_light_2:
    entity_only: true
    light.cozylife_smart_bulb_light_3:
    entity_only: true