ljmerza / light-entity-card

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

Color Wheel Not Displaying #30

Closed dac21 closed 4 years ago

dac21 commented 4 years ago

I have lights that support the color wheel (on the Smart Life App) but the color wheel does not appear in this card. Thoughts?

image

ljmerza commented 4 years ago

Hello, sorry, I did see this but have been busy with my real projects. HA uses a supported_features attribute as a number that represents bits. If you look here you'll see what bits represent a feature. In this case color (the color wheel) is 16. For the entity that does not show the color wheel, find the supported_features attribute. If you do bit wise and entity_attr 16 & entity_attr_value and it equals 1 then that means the entity supports color wheel. If 0 then it does not. I would assume HA is reporting your entity does not support color wheel and that's why the wheel is not showing up.

Send me a picture of the full state/attributes of the entity in question and I can check the bits myself

dac21 commented 4 years ago

So the light shows supported feature of 1. But see the picture in the app. How do I get the supported features updated.

Dennis Conrad

On Feb 26, 2020, at 9:45 AM, Leonardo Merza notifications@github.com wrote:

 Hello, sorry, I did see this but have been busy with my real projects. HA uses a supported_features attribute with is a number that represents bits. If you look here you'll see what bits represent a feature. In this case color (the color wheel) is 16. For the entity that does not show the color wheel, find the supported_features attribute. If you do bit wise and entity_attr 16 & entity_attr_value and it equals 1 then that means the entity supports color wheel. If 0 then it does not. I would assume HA is reporting you entity does not support color wheel and that's why the wheel is not showing up.

Send me a picture of the full state/attributes of the entity in question and I can check the bits myself

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

ljmerza commented 4 years ago

There's nothing I can do then. HA is reporting the only feature this entity has is to turn on and off. If you believe it should be able to do more than that, then you'll need to open a ticket with HA. This card can't force HA to do something it says can't be done. If support is added in HA, then this card should work automatically.

dac21 commented 4 years ago

Thanks

Sent from my iPhone

On Feb 26, 2020, at 6:28 PM, Leonardo Merza notifications@github.com wrote:

 There's nothing I can do then. HA is reporting the only feature this entity has is to turn on and off. If you believe it should be able to do more than that, then you'll need to open a ticket with HA. This card can't force HA to do something it says can't be done. If support is added in HA, then this card should work automatically.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.