I have developed the Flutter app and I have implemented the matter commissioning process using Google Play services. after completing the commissioning process, how do I add this device to Home Assistant devices from my Flutter app?
I’m not a iOS/Android developer but for comparison, my understanding of the way the HA Android Companion App (and also iOS) work is mostly a two step process:
- The App tells the underlying Android framework to commission a device onto its own Matter fabric with the mobile device as the Matter Controller.
- The Companion App automatically will next set up the device to be shared to another fabric and then tell HA to add/commission the device using a sharing code. When completed, HA/Matter-Server will control the device on HA’s Matter Fabric.
I’m not sure but maybe what you have done is step #1. However if you commissioned it to another Matter fabric (say to Google Home then it’s slightly different).
For #2, you could next go to HA’s UI to add a matter device and you will be asked if its a device already in use and when you say yes, and pick “Other controller” and then you supply it with a sharing code. I think all you need in your app is a way to tell Android to setup sharing for a device and get a sharing code.
Having said all of that, you may want to post your question on Discord where the developer’s mostly hang out for questions like this.