Grouping issue

I’m trying to create a group with a light (mqtt), and it doesn’t seem to be recognizing that the light is listed in the group. I’ve tried view: yes and view: no to no avail… the light continues to appear only in the “home” default view.

here is the section of the configuration.yaml:

light Cree_LR:
  platform: mqtt
  name: "lr lamp"
  state_topic: "smartthings/Cree LR/switch"
  command_topic: "smartthings/Cree LR/switch"
  payload_on: "on"
  payload_off: "off"
  brightness_state_topic: "smartthings/Cree LR/level"
  brightness_command_topic: "smartthings/Cree LR/level"
  brightness_scale: 100
  retain: true

group:
    mylights:
        name: Lighting
        view: no
        entities:
          - light.Cree_LR

Entity ids are all lower case

~Cheers

Just tried this, no difference:

light cree_lr:
  platform: mqtt
  name: "lr lamp"
  state_topic: "smartthings/Cree LR/switch"
  command_topic: "smartthings/Cree LR/switch"
  payload_on: "on"
  payload_off: "off"
  brightness_state_topic: "smartthings/Cree LR/level"
  brightness_command_topic: "smartthings/Cree LR/level"
  brightness_scale: 100
  retain: true

group:
    mylights:
        name: Lighting
        view: no
        entities:
          - light.cree_lr

look at the following link

https://home-assistant.io/components/light.mqtt/

your definition should probably be

light:
  platform: mqtt
  name: "lr lamp"
  state_topic: "smartthings/Cree LR/switch"
etc etc etc

I’m confused… the configuration for the light itself is correct, and it works.

The group simply won’t pick it up.

Unfortunately all I have to go by is the documentation. What does HA think the light is called? in the left hand menu click on the <> symbol at the bottom, scroll down and find the light and see what name HA has given it internally. That’s the name you need to use in the group as the entity.

Bingo. It seems that this whole time I’ve thought it was basing the entity name on the “sensor :” or “light :” identifier… turns out up until now I’ve ‘accidentally’ been setting the "name: " to be the same as the id, and thus it has worked.

Thank you so much… I should know better than to assume :frowning:

If you aren’t bald already, working with Yaml will get you there. LOL