t0bst4r / home-assistant-matter-hub

Publish your Home-Assistant Instance using Matter.
Apache License 2.0
158 stars 10 forks source link

exclude entity via a label not working? #176

Closed Rolfgithub2 closed 3 days ago

Rolfgithub2 commented 4 days ago
          Hi,

Nice peace of software you have made!!

I want to use a label to exclude devices or entities. I have labeled the entity but this didn't work, so I labeled the device as well, but it just doesn't seem to work. Screenshot 2024-11-21 at 16 14 36

I checked the name in dev-tools Screenshot 2024-11-21 at 16 00 45 I have excluded it in the config of the Bridge :

"exclude": [

  {
    "type": "label",
    "value": "nomatter"
  },

But whatever I try, it is still being exposed: Screenshot 2024-11-21 at 16 26 08

I can exclude it when I use a pattern instead of a label. But with a label I can simplify the config and manage the exclusions in HA.

Is this a bug? Or am I doing something wrong??

Originally posted by @Rolfgithub2 in https://github.com/t0bst4r/home-assistant-matter-hub/issues/51#issuecomment-2491515910

t0bst4r commented 4 days ago

You need to add the label to the entity, not the device. Additionally you need to restart the addon after doing changes to entities (e.g. adding a label).

I need to add it to the docs.

Rolfgithub2 commented 3 days ago

Thank You! restarting the addon did the trick. its working fine now.