bokub / rgb-light-card

💡 A Lovelace custom card for RGB lights
MIT License
412 stars 24 forks source link

Insert 'spacer' between icons to group them #58

Closed deepcoder closed 2 years ago

deepcoder commented 2 years ago

Thanks for your work on this project, very useful!

I would like to break the row of icons into two parts: day temperatures and night colors.

If I put the following in:

            colors:
                - color_temp: 153
                  brightness: 255
                - color_temp: 500
                  brightness: 255
                - icon_color : black
                - hs_color:
                  - 216
                  - 24
                  brightness: 13

the black icon still executes the on/off call for the light. I would like it to do nothing if possible. Or if you have another way you could recommend to 'group' the icons.

Thx!

bokub commented 2 years ago

Hi! I you want to "do nothing", you can call a service that runs an empty script:

- type: call-service
  service: script.turn_on
  service_data:
      entity_id: script.do_nothing
  icon_color: black
deepcoder commented 2 years ago

Thank you! I will give it a try. Again, thanks for your work creating this helpful Home Assistant UX element!