commit | adbfa03c44ee80d169c0d41912644b9d9bc3ef7b | [log] [tgz] |
---|---|---|
author | Kate Hsieh <yuchihsieh@google.com> | Fri Nov 29 00:02:23 2024 -0800 |
committer | Copybara-Service <copybara-worker@google.com> | Fri Nov 29 00:03:58 2024 -0800 |
tree | be37dbfbfe8be9a7babb2da1bed6221852e277eb | |
parent | 86d22469fa5f67014e40b0eada572e0e92942ca2 [diff] |
Add third party license PiperOrigin-RevId: 701197181
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
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
Follow the steps below to decommission a matter device.
$ ui-automator --decommission DEVICE_NAME
DEVICE_NAME
: display name of commissioned Matter device on GHA, e.g. m5stack
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>]
--regtest
is required--commission
--repeat
to run regression test in limited timesREPEAT_TIMES
: repeated times for regression test--hub
to include hub version in produced test reportHUB_VERSION
: version of hub for controlling devices on GHA--dut
to include device under test in produced test reportMODEL
: Model of the device. e.g. X123123
TYPE
: Type of the device. e.g. LIGHT
PROTOCOL
: Used protocol of the device. e.g. MATTER
--fw
to include device firmware in produced test reportDEVICE_FIRMWARE
: Firmware of test device.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.