commit | 69a49b0b64d5756ca13c62d7ff8ef2296f030cad | [log] [tgz] |
---|---|---|
author | Kate Hsieh <yuchihsieh@google.com> | Mon May 12 00:28:59 2025 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Mon May 12 00:29:39 2025 -0700 |
tree | 4ded214976361d80d5379f9b3915eaa1e40346ea | |
parent | 6668dc5d8e912aa611f5abcf0b9b7314a0280a5c [diff] |
1.0.5-rc.1 PiperOrigin-RevId: 757628921
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.25.1.4
.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. m5stack
PAIRING_CODE
: pairing code of your Matter device, e.g. 34970112332
ROOM_NAME
: room that is going to be assigned, e.g. Office
GOOGLE_ACCOUNT
: Optional. Account to use in Google Home App, e.g. test@gmail.com
Follow 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. m5stack
GOOGLE_ACCOUNT
: Optional. Account to use in Google Home App, e.g. test@gmail.com
Follow 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. m5stack
PAIRING_CODE
: pairing code of your Matter device, e.g. 34970112332
ROOM_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. X123123
TYPE
: Type of the device. e.g. LIGHT
PROTOCOL
: 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.com
This 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.