t0bst4r / home-assistant-matter-hub

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

Problems adding devices with Include/Exclude #14

Closed joacim69 closed 3 days ago

joacim69 commented 5 days ago

Hi! I've been trying for hours now to add more than lights. To be able to use Flic buttons I successfully, with the old bridge, use input_boolean switches and use automations for each one, which worked great. however, when trying to populate them I seem to do something wrong.

I've tried with patterns, labels, domains to find either just input, input_boolean* or the specific entity, but I can just find the lights entitites. What am I doing wrong?

Like this:

{
  "name": "My Hub 3",
  "port": 5543,
  "filter": {
    "include": [
      { "type": "domain", "value": "light" },
      { "type": "label", "value": "input*" }
    ],
    "exclude": [

    ]
  }
}

Or this:

{
  "name": "My Hub ny",
  "port": 5543,
  "filter": {
    "include": [
      {
        "type": "domain",
        "value": "light"
      },
      {
        "type": "domain",
        "value": "Switch ändra all belysning",

    ],
    "exclude": []
  }
}
t0bst4r commented 5 days ago

In your first example you are using the "label" type, but use a pattern as value. If you have type "label", you have to use an existing label from home assistant. In your second example you are using type "domain" and the value seems to be the name of an entity.

To solve your problem use one of the following:

{ "type": "domain", "value": "input_boolean" }

or

{ "type": "pattern", "value": "input_boolean.*" }

or

{ "type": "pattern", "value": "input_boolean.my_specific_entity" }
joacim69 commented 5 days ago

Thanks for your help. I created a very simple one, but it finds nothing anyways. Do I have to restart the addon each time or is there anything else to try? Skärmbild 2024-10-28 113938

{ "name": "testing", "port": 5541, "filter": { "include": [ { "type": "domain", "value": "input_boolean" } ], "exclude": [] } }

joacim69 commented 5 days ago

This is the Boolean switch I'd like to populate Skärmbild 2024-10-28 114159

nehasjains commented 5 days ago

I think input_boolean entities are not getting imported. For me input_boolean entities are not getting imported

nehasjains commented 5 days ago

In your first example you are using the "label" type, but use a pattern as value. If you have type "label", you have to use an existing label from home assistant. In your second example you are using type "domain" and the value seems to be the name of an entity.

To solve your problem use one of the following:

{ "type": "domain", "value": "input_boolean" }

or

{ "type": "pattern", "value": "input_boolean.*" }

or

{ "type": "pattern", "value": "input_boolean.my_specific_entity" }

Tried these... but input_boolean entities not getting imported

t0bst4r commented 4 days ago

yep you are right, forgot about that. i missed some domains during the refactoring (scene, automation, script, input_boolean).

joacim69 commented 4 days ago

I'm just happy that I wasn't totally lost 😎

truongbber commented 4 days ago

pattern switch, light and climate not working

t0bst4r commented 4 days ago

I created a new issue for the missing domains: #21

@truongbber what is your issue about? Do you see any error logs?

joacim69 commented 4 days ago

Yay, now Input_booleans work with alpha 10 :-)

pana800 commented 4 days ago

Is there any way to modify the filter rules for the created bridge? At the moment, I only delete an create new one for adding or removing rules. Thanks

t0bst4r commented 4 days ago

At the moment editing is not possible. I'll create a new issue for that to track.

joacim69 commented 4 days ago

For what it's worth, here's a working config file:

{ "name": "matterhub new", "port": 5531, "filter": { "include": [ { "type": "domain", "value": "input_boolean" }, { "type": "domain", "value": "light" }, { "type": "domain", "value": "automation" } ], "exclude": [] } }

truongbber commented 4 days ago

I created a new issue for the missing domains: #21

@truongbber what is your issue about? Do you see any error logs?

can't add specific entities, after configuration it doesn't show any devices 3 Config: 1 Or 2

4

t0bst4r commented 3 days ago

wow... it could be caused by this 🤣

grafik

t0bst4r commented 3 days ago

I'll close this issue, since #30 is more specific.