Change picture associated with group 'person'

All of the threads in my searching so far have been about a dynamic changing of the picture.
I just want the picture, for the group ‘Person Nancy and Paul’ to be like the actual person.

image

Looking at https://www.home-assistant.io/integrations/group/
In particular this part …
image
All this makes me think it is possible. What am I misreading?

So here is what I was trying to do, with all the variations remarked out.

group:
  person:
    name: Person Nancy and Paul
    # entity_picture: "/local/pictures/paulpic.jpg"
    # entity_icon: "/local/pictures/paulpic.ico"
    # icon: "/local/pictures/paulpic.ico"
    entities:
      - person.paul
      - person.nancy

Edit:
@CentralCommand answer pointed me in the right direction. I editing this post so the next person can see my final configuration that worked.

 device_tracker:
  - platform: google_maps
    username: !secret locator_paul_username

group:
  person:
    name: Person Nancy and Paul
    entities:
      - person.paul
      - person.nancy
      
homeassistant:
  customize:
    device_tracker.sm_g955u:
      picture: "/local/pictures/paulpic.jpg"
      image: "/local/pictures/paulpic.jpg"
      entity_picture: "/local/pictures/paulpic.jpg"
      entity_icon: "/local/pictures/paulpic.ico"
    device_tracker.moto_z4 :
      picture: "/local/pictures/nancypic.jpg"
      image: "/local/pictures/nancypic.jpg"
      entity_picture: "/local/pictures/nancypic.jpg"
      entity_icon: "/local/pictures/nancypic.ico"      
    group.person:
      entity_picture: "/local/pictures/nancypic.jpg"

Groups do not support pictures. Only MDI icons.

Not exactly what I wanted to hear, but it is what it is. :slight_smile:
I may add that to the doc and do a pull request. I am sure someone will double-check it. :slight_smile:

I had a look to see if you could use a group as the tracker for a person (which you could then apply the picture to). You cant. You can only use tracker entities.

You can add more than one tracker to a person though. So I suggest you create a new person (Paul and Nancy) with all the trackers that both you and Nancy use. Then delete the group.

You can do this if you customize the group, just not an option in its configuration. Add this to your group in the customize menu (or in customize.yaml if you prefer):
Screen Shot 2021-01-21 at 12.44.33 PM

Then you can see this:
Screen Shot 2021-01-21 at 12.45.44 PM
Screen Shot 2021-01-21 at 12.45.53 PM

entity_picture is a generic attribute that the UI recognizes which can be added to anything via customization. Just not all types of integrations have a direct configuration option for it.

1 Like

Nice. Thanks Mike. I did not know that.

1 Like

I thought that would be the solution, but will it behave as a group. There is an order to the device trackers.
https://www.home-assistant.io/integrations/person/

TBH I don’t know, I don’t use the person integration. Go with Mike’s suggestion.

The UI will not let me change it.

I added it to my custom where I do the device trackers. When it did not work I try other settings that worked with the person.
Am I still missing something?


device_tracker:
  - platform: google_maps
    username: !secret locator_paul_username

group:
  person:
    name: Person Nancy and Paul
    entities:
      - person.paul
      - person.nancy
      
homeassistant:
  customize:
    device_tracker.sm_g955u:
      picture: "/local/pictures/paulpic.jpg"
      image: "/local/pictures/paulpic.jpg"
      entity_picture: "/local/pictures/paulpic.jpg"
      entity_icon: "/local/pictures/paulpic.ico"
    device_tracker.moto_z4 :
      picture: "/local/pictures/nancypic.jpg"
      image: "/local/pictures/nancypic.jpg"
      entity_picture: "/local/pictures/nancypic.jpg"
      entity_icon: "/local/pictures/nancypic.ico"      
    group.person:
      picture: "/local/pictures/nancypic.jpg"
      image: "/local/pictures/nancypic.jpg"
      entity_picture: "/local/pictures/nancypic.jpg"
      entity_icon: "/local/pictures/nancypic.ico"

Just check under the developer tab. Looks like they are loaded.

While I was typing this, I was going to get a screenshot of the output, and it was there. I hit refresh with the ctrl key + f5.
Anyway, it works now. Don’t ask what I was smoking. :slight_smile:

When you change customizations in YAML and then hit the “reload customizations & location” option in server controls those customizations don’t take effect until the next state change of those entities. Assuming you did that what probably happened is they did correctly load but didn’t take effect until the next time group.person had any state change.

The UI avoids this I believe by auto-reloading the state of the entity you customized. Also restarting HA avoids this because it recreates state and uses the new customizations it found.