Putting KNX lights in a group

So far I managed to connect HA with my KNX interface to control the lights.
This works fine, configuration is below. However I can’t manage to create a group of KNX lights.
I’ve tried this:
light:

  • platform: group
    name: Kitchen Lights
    entities:
    • light.inkom
    • light.wandverlichting_boven

But it doesn’t create a group. How can I solve this?

configuration.yaml

light: !include knx.yaml

knx.yaml

   - platform: knx
     name: Inkom
     address: '1/1/1'
     state_address: '1/4/1'
   - platform: knx
     name: Wandverlichting Boven
     address: '1/1/33'
     state_address: '1/4/33'

ui-lovelace.yaml

views:
   - badges: null
     cards:
       - entities:
           - entity: light.inkom
           - entity: light.bureau
           - type: custom:slider-entity-row
             entity: light.eetkamer
             toggle: true
           - entity: light.berging
         title: Verlichting beneden
         type: entities

it doesn’t create a group, it creates a light group. It will be named light.kitchen_lights

Thats fine for me. But I can’t get it to work. I Want to control multiple lights with a button.

Ok? Then use the correct entity, i.e. light.kitchen_lights

You’re not using that. You only configured all the lights in the group in lovelace.

I guess I need to spell it out 100%

light:
  - platform: group
    name: kitchen lights
    entities:
      - light.inkom
      - light.bureau
      - light.eetkamer
      - light.berging
views:
   - badges: null
     cards:
       - entities:
           - entity: light.kitchen_lights
         title: Verlichting beneden
         type: entities

Thank you for your time and answers. I added the configuration to my files but the entity light.kitchen_lights doesn’t appear. Copy and pasted it :frowning:

you have to restart when you edit configurations and you can’t have 2 light sections. All bullets go under 1 light section. views goes in ui-lovelace.yaml like all other lovelace configuration unless you are using the gui to generate the lovelace. Then you just configure it like a normal entity.

1 Like

After reboot of the system it works! Thanks for helping me out man!

Hi,

Have you considered using node-red? I am in the same boat as you (maybe?), since at home there is a knx instalation with actors for almost everything. Using node-red, connecting and controlling your knx installation is easy. I managed to integrate my knx with some hue lamps and alexa, for example.