| commit | 37864ccd66a118b29fb3beaadad3609e558e57d3 | [log] [tgz] |
|---|---|---|
| author | Kate Hsieh <yuchihsieh@google.com> | Tue Oct 07 20:01:13 2025 -0700 |
| committer | Copybara-Service <copybara-worker@google.com> | Tue Oct 07 20:01:48 2025 -0700 |
| tree | 255ccd4c0e6887e6afb6d546488ab5a7d52abef3 | |
| parent | 0f267d84de676ee46bc107bdf14c3e71414946b0 [diff] |
Update APK to support recent UI changes for auto-commissioning PiperOrigin-RevId: 816493503
Google Home Automator can help you automate your Google Home App.
You need a python 3 environment to run the script. Google Home UI Automator requires python 3.11 or newer.
3.1.1.14 and 3.32.126.2. Dogfood version 3.32.192.0-dog-food is also supported.NOTE: Please select the correct Google account on Google Home App.
NOTE: This tool only works with the English version of the Google Home App.
$ pip install google-home-ui-automator
clone this repo.
$ git clone https://testsuite-smarthome-matter.googlesource.com/ui-automator
cd to the folder.
Run pip install .
Follow the steps below to automatically commission a matter device.
$ ui-automator --commission DEVICE_NAME,PAIRING_CODE,ROOM_NAME [--google_account <GOOGLE_ACCOUNT>]
DEVICE_NAME: desired Matter device, e.g. m5stackPAIRING_CODE: pairing code of your Matter device, e.g. 34970112332ROOM_NAME: room that is going to be assigned, e.g. OfficeGOOGLE_ACCOUNT: Optional. Account to use in Google Home App, e.g. test@gmail.comFollow the steps below to decommission a matter device.
$ ui-automator --decommission DEVICE_NAME [--google_account <GOOGLE_ACCOUNT>]
DEVICE_NAME: display name of commissioned Matter device on GHA, e.g. m5stackGOOGLE_ACCOUNT: Optional. Account to use in Google Home App, e.g. test@gmail.comFollow the steps below to run a regression test.
$ ui-automator --commission DEVICE_NAME,PAIRING_CODE,ROOM_NAME --regtest [--repeat <REPEAT_TIMES>] [--hub <HUB_VERSION>] [--dut <MODEL>,<TYPE>,<PROTOCOL>] [--fw <DEVICE_FIRMWARE>] [--google_account <GOOGLE_ACCOUNT>]
DEVICE_NAME: desired Matter device, e.g. m5stackPAIRING_CODE: pairing code of your Matter device, e.g. 34970112332ROOM_NAME: room that is going to be assigned, e.g. Office--repeat: Optional. Specifies the number of times to repeat the regression test.REPEAT_TIMES: Number of times to repeat the regression test, e.g., 10.--hub: Optional. Includes the hub version in the test report.HUB_VERSION: Version of the hub controlling the devices in GHA, e.g., 1.0.0--dut: Optional. Includes the device under test information in the test report.MODEL: Model of the device. e.g. X123123TYPE: Type of the device. e.g. LIGHTPROTOCOL: Protocol used by the device. e.g. MATTER--fw: Optional. Includes the device firmware in the test report.DEVICE_FIRMWARE: Firmware of test device.GOOGLE_ACCOUNT: Optional. Account to use in Google Home App, e.g. test@gmail.comThis project is not an official Google project. It is not supported by Google and Google specifically disclaims all warranties as to its quality, merchantability, or fitness for a particular purpose.