-
Notifications
You must be signed in to change notification settings - Fork 14
[Feature]: group entities to one device including additional sensors #130
Comments
Like air quality sensor, temperature sensor, humidity sensor, I noticed Matterbridge could support this type sensor, thus hoping matterbridge-home-assistant plugin supporting them. |
@akatsuki-meigetsu @bassrock Let's proceed the sensor discussion over here. |
@t0bst4r The homekit and alexa integrations use the device registry to grab all linked sensors/entities as needed for things like Battery state https://github.com/home-assistant/core/blob/dev/homeassistant/components/homekit/__init__.py#L1152 As far as I can tell, it looks like the homeassistant js websocket library doesn't support grabbing device ids or linked devices |
Okay, i am also using the device registry. So we could group entities by their related device and build matter-devices from those groups. But that's definetly a larger change 😁 |
Oh i totally missed that you are pulling that info! So probably in the bootup where things are ignored there needs to be a "linking" of sorts based on device id. Then the matter devices could get more hardware info, battery state, energy usage etc! |
I tested 1.5.0 version, however, it crushed on docker type Matterbridge(1.3.7), seemed caused by light. |
Just released a bug fix. Please test with 1.5.1 |
now working successfully, thanks ! |
I just saw the Example 1: smart plug
Example 2: security camera
and let’s not even think about media players. i don’t think we can make it with patterns like „if it has those 5 entities“. This definitely needs further investigations. |
Yea. In my experience you pick a base one, and add aspects/or other things together and matter or homekit will auto join it all. But it def needs testing |
Yes, but how do we detect which is the base one? |
I think thats done by looking at the primary identifiers field https://developers.home-assistant.io/docs/device_registry_index#categorizing-to-device-info Looks like the HomeKit integration assumes the entities the user allowlists is the main one, and then they grab all the linked ones https://github.com/home-assistant/core/blob/dev/homeassistant/components/homekit/__init__.py#L1089 |
i just noticed that i confused device registry and entity registry 🙃 i am still not 100% sure about this. |
Domain
No response
What is actually missing?
sensor is important in IoT, if matterbridge support sensor, we can use it to create more various automations in different platforms.
The text was updated successfully, but these errors were encountered: