bokub / rgb-light-card

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

Dimmer integration #10

Closed Sanderbloem050 closed 4 years ago

Sanderbloem050 commented 4 years ago

Is there an possibility to add a dimmer to the card so you can set color and brightness apart?

bokub commented 4 years ago

Yes, you can have some icons that only change the color, and some others that only change the brightness.

Example:

type: custom:rgb-light-card
entity: light.example_light
colors:
# The 2 following will change the color
- hs_color:
  - 0
  - 100
- hs_color:
  - 180
  - 100
# The 2 following will change the brightness
- brightness: 255
- brightness: 100
Sanderbloem050 commented 4 years ago

Awesome thank you!