ljmerza / light-entity-card

Control any light or switch entity
MIT License
233 stars 41 forks source link

color selection no displayed #55

Open mstumpel opened 3 years ago

mstumpel commented 3 years ago

Hello,

I have defined a group for a lamp in the study which contains 2 G10 mulitcolor led lamps. Since they are color led lamp I expected that the color temp would be displayed by default, however it is NOT.

resources:

light:

views:

What Am I doing wrong?

ljmerza commented 3 years ago

is the color wheel showing up when you open the details of the entities in the developer tools? ha will give a supported_features attribute for all entities to tell cards what features it has. What value is this for those entities?

mstumpel commented 3 years ago

The values for both entities are:

1 brightness: 255 2 friendly_name: Spotter 330 color 3 3 supported_features: 1

This suggest that they do not have a color capability. (which they do have) If I control them with Smartlife or Google home the color feature can be controlled.

Can it be an issue with the Tuya component not passing the right values?

Regards

Marcel Stumpel

From: Leonardo Merza notifications@github.com Sent: 19 November 2020 17:00 To: ljmerza/light-entity-card light-entity-card@noreply.github.com Cc: Marcel Stumpel Marcel.Stumpel@diasemi.com; Author author@noreply.github.com Subject: Re: [ljmerza/light-entity-card] color selection no displayed (#55)

is the color wheel showing up when you open the details of the entities in the developer tools? ha will give a supported_features attribute for all entities to tell cards what features it has. What value is this for those entities?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/ljmerza/light-entity-card/issues/55#issuecomment-730470794, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIRFSPTEQCBNYM7WCMBN6BLSQU6H3ANCNFSM4T3NZLNQ.

yashmulgaonkar commented 2 years ago

+1 on the issue. Under Developer Options, I see the following:

min_mireds: 153
max_mireds: 370
supported_color_modes:
  - color_temp
color_mode: color_temp
brightness: 255
color_temp: 370
hs_color:
  - 28.391
  - 65.659
rgb_color:
  - 255
  - 166
  - 87
xy_color:
  - 0.526
  - 0.387
friendly_name: 100W Tune + Color
supported_features: 3
ljmerza commented 2 years ago

Something is misconfigured as the supported color modes should also say "color" if color is supported.

supported_features: 3 is saying color mode isn't supported.