andyblac / UI-Minimalist-Custom-Cards

A modified version of Minimalist Room Card.
60 stars 3 forks source link

FR: More options for ulm_custom_card_andyblac_room_color_on possible? #9

Closed FelixArndt closed 1 year ago

FelixArndt commented 1 year ago

Hey Andy,

which entity is decisive/crucial for this option: ulm_custom_card_andyblac_room_color_on?

It would be awesome, if the room-color changes if a light in a room is turned on and it would grey again if all lights in a room goes off.

Example light turned on: grafik

Example light turned off: grafik

Thanks in advance! Felix

andyblac commented 1 year ago

hi, for this to work the room needs an entity, like this

  - type: custom:button-card
    view_layout:
      grid-area: room10
    template:
      - custom_card_andyblac_room
    name: Office
    icon: mdi:desk
    entity: light.office_dimmer
    variables:
      ulm_custom_card_andyblac_room_color_on: blue
FelixArndt commented 1 year ago

Thank you so much!!!