Matter device commissioning via another app

I have created my own Android app, and I have implemented the commissioning process using Google Play Services. The commissioning process succeeded when trying to add the matter device.
passed all the steps below in Google Play Services.

  • searching device,
  • connecting device,
  • generating Matter credentials,
  • device connected to the network,
  • device connected to the <app_name>,
  • And finally device is connected.

After completing these steps, I can control this Matter device from my own Android app, but I need to run HA automations and scripts on this device also. For that, I need to add this device to Home Assistant after the commissioning has succeeded. Now, how to insert this Matter device into Home Assistant server, I need to see this device in the devices list (Settings → devices & services). How to achieve this?

What Matter fabric have you commissioned to? Google’s or HA (Python matter server)?

Once you add the HA integration for Matter and connect it to your Python Matter server instance, all devices on that fabric automatically appear in HA. If the device is on another fabric, you can get a sharing code to also add it to the HA matter server fabric.

1 Like

I have tried with Google’s Matter Fabric. But I would like to use HA (Python Matter Server). How to add the device using HA (Python Matter server) fabric from my own Android app?

I’m not familiar with the details, but I believe the official HA companion app for android Matter also uses Google Play Services for commissioning, so perhaps you could refer to that code for examples.

Once you’ve commissioned to that fabric, it will appear in HA as long as the integration is connected.