Yeelight Configuration with Custom_Card

HI,

I found on this forum a button configuration with Button Card.
These buttons allow me to turn on or turn off my lights but I would like to set the brightness and temperature for each bulb. I already carry out this operation with physical buttons.

I am still looking for the right configuration. Do you have any ideas?

See code below:

cards:
  - cards:
      - entity: light.light_table
        brightness: 76
        color_temp: 319
        icon: 'mdi:ceiling-light'
        type: 'custom:button-card'
        name: Table
        hold_action:
          action: more-info
      - entity: light.light_sofa
        icon: 'mdi:ceiling-light'
        brightness: 47
        color_temp: 346
        name: sofa
        hold_action:
          action: more-info
        type: 'custom:button-card'
    type: horizontal-stack
  - cards:
      - entity: light.door
        brightness: 67
        color_temp: 285
        icon: 'mdi:ceiling-light'
        name: door
        hold_action:
          action: more-info
        type: 'custom:button-card'
      - entity: light.stairs
        brightness: 86
        color_temp: 335
        icon: 'mdi:ceiling-light'
        name: Stairs
        hold_action:
          action: more-info
        type: 'custom:button-card'
    type: horizontal-stack
type: vertical-stack

Thank you for your help :grinning:

It’s when you ask your question that you find your answer …

cards:
  - cards:
      - entity: light.table
        icon: 'mdi:ceiling-light'
        type: 'custom:button-card'
        name: Table
        tap_action:
          action: call-service
          service: light.toggle
          service_data:
            entity_id: light.table
            brightness: 76
            color_temp: 319
        hold_action:
          action: more-info
      - entity: light.light_sofa
        icon: 'mdi:ceiling-light'
        name: Sofa
        tap_action:
          action: call-service
          service: light.toggle
          service_data:
            entity_id: light.light_sofa
            brightness: 47
            color_temp: 346
        hold_action:
          action: more-info
        type: 'custom:button-card'
    type: horizontal-stack
  - cards:
      - entity: light.Door
        icon: 'mdi:ceiling-light'
        name: Door
        tap_action:
          action: call-service
          service: light.toggle
          service_data:
            entity_id: light.Door
            brightness: 67
            color_temp: 285
        hold_action:
          action: more-info
        type: 'custom:button-card'
      - entity: light.Stairs
        icon: 'mdi:ceiling-light'
        name: Stairs
        tap_action:
          action: call-service
          service: light.toggle
          service_data:
            entity_id: light.Stairs
            brightness: 86
            color_temp: 335
        hold_action:
          action: more-info
        type: 'custom:button-card'
    type: horizontal-stack
type: vertical-stack