Zigbee2MQTT group lights and Home assistant

I have created a group of lights in Z2M

  '2':
    friendly_name: Luz_cocina
    optimistic: false
    devices:
      - 0x90fd9ffffe31e3cc/1
      - 0xd0cf5efffe2ece8b/1
      - 0xd0cf5efffe2fbf4e/1

Then I added it to home assistant

light:
  - platform: mqtt
    schema: json
    name: Luz_cocina
    command_topic: "zigbee2mqtt/[Luz_cocina]/set"
    state_topic: "zigbee2mqtt/[Luz_cocina]"
    color_temp: false
    brightness: true
    rgb: false

So it appears as an entity


But then doesn’t work and when I do this
imagen

I get this in the Zigbee2MQTT log

INFO: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":{"friendly_name":"[Luz_cocina]"},"type":"entity_not_found"}'
ERROR: Entity '[Luz_cocina]' is unknown

What I’m doing wrong?
And how can I use this entity from a lovelace card and report the status of the group correctly?

Take the brackets out of the mqtt topics

1 Like

Thanks, I was breaking my head

1 Like