Light Group - Different Brightness Levels

I have a light group setup with a light control card that allows me to quickly adjust the brightness of the lights in the group from the frontend.

However, I’d like an option to set a different brightness level for each light. For example, if I set the brightness of the light group to 50%, the individual brightness of each light are: Ceiling Light: 25%, Table Lamp: 50%, Reading Lamp: 100%.

To accomplish this, there could be a setting for each light in the group that would represent the point on the light group brightness scale where that individual light reaches 100% brightness. For the example above, the settings would be: Ceiling Light: 200%, Table Lamp: 100%, Reading Lamp: 50%

You could use Template lights for that, map each light 1:1 (e.g. value_template: {{states(light.kitchen)}}, then multiply the brightness in set_level

1 Like

Thanks… It works!.. Here’s the code


  - platform: template
    lights:
      fr_scene_table_lamp:
        friendly_name: "FR Scene Table Lamp"     
        value_template: "{{states(light.table_lamp)}}"
        turn_on:
          service: light.turn_on
          entity_id: light.table_lamp
        turn_off:
          service: light.turn_off
          entity_id: light.table_lamp
        set_level:
          service: light.turn_on
          data:
              entity_id: light.table_lamp
              brightness: "{{ brightness * 1 }}"

  - platform: template
    lights:
      fr_scene_reading_lamp:
        friendly_name: "FR Scene Reading Lamp"     
        value_template: "{{states(light.reading_lamp)}}"
        turn_on:
          service: light.turn_on
          entity_id: light.reading_lamp
        turn_off:
          service: light.turn_off
          entity_id: light.reading_lamp
        set_level:
          service: light.turn_on
          data:
              entity_id: light.reading_lamp
              brightness: "{{ brightness * 2 }}"

  - platform: template
    lights:
      fr_scene_ceiling_light:
        friendly_name: "FR Scene Ceiling Light"     
        value_template: "{{states(light.ceiling_light)}}"
        turn_on:
          service: light.turn_on
          entity_id: light.ceiling_light
        turn_off:
          service: light.turn_off
          entity_id: light.ceiling_light
        set_level:
          service: light.turn_on
          data:
              entity_id: light.ceiling_light
              brightness: "{{ brightness * 0.5 }}"
3 Likes