| commit | faa1643b94a5168224f7a3da312c455aa8969357 | [log] [tgz] |
|---|---|---|
| author | Kate Hsieh <yuchihsieh@google.com> | Wed Jun 04 00:32:19 2025 -0700 |
| committer | Copybara-Service <copybara-worker@google.com> | Wed Jun 04 00:33:00 2025 -0700 |
| tree | 19e431daf7bcc83396089435f899ea558fdb7db4 | |
| parent | ec114cba2c169eed8d33606261ce08c3c0852209 [diff] |
1.0.5 PiperOrigin-RevId: 767014622
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.