bokub / rgb-light-card

💡 A Home Assistant card for RGB lights
MIT License
427 stars 24 forks source link

Switch between color and white #11

Closed Sanderbloem050 closed 4 years ago

Sanderbloem050 commented 4 years ago

Is there a possibility to switch between color and white mode a possibility to switch between color and white mode?

bokub commented 4 years ago

I don't understand your question, please explain what you have in mind

Sanderbloem050 commented 4 years ago

In this case it is a RGB W strip and in the native app it had 3 modes; White, Color, Scenes. Seen attachment below.

What would be great if there is a switch or an "Color" icon that goes to the white mode.

IMG_20200203_100900

bokub commented 4 years ago

This card is nothing more than an interface for the light.turn_on service.

The first thing you have to do is trying to achieve what you want using the light.turn_on service, and I can't help you because I don't know how your light works

When you figure the right options, you can start configuring the card

bokub commented 4 years ago

Maybe white_value or color_temp are the options you need, but I can't be sure of that

Sanderbloem050 commented 4 years ago

Your the best! I will look in to that. It already solved the issue that I couldn't control my Tuya RGB lights with HA 😉

Sanderbloem050 commented 4 years ago

brightness: 100 color_temp: 1000

This is what worked for me. switch between colors and in this example white mode..

Thank you!