commit | 6ed2f8dc639051be1cd937b4bbc64a2a1555f7a1 | [log] [tgz] |
---|---|---|
author | Timmatt <timmatt@google.com> | Sat Feb 17 02:27:57 2024 -0800 |
committer | Copybara-Service <copybara-worker@google.com> | Sat Feb 17 02:28:36 2024 -0800 |
tree | 8be62d5e8815b121ea9b18eb69cfc775c155fd60 | |
parent | 5e897f7bd9bebd967052df3bb8318746508704ff [diff] |
copy branch master from staging to prod PiperOrigin-RevId: 607926563
Google Home Automator can help you automating 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.10.1.6
(latest public version). Or 3.12.4.1
, 3.13.46.1
.NOTE: Please select the correct Google account on Google Home App.
clone this repo.
$ git clone https://testsuite-smarthome-matter.googlesource.com/ui-automator
cd
to the folder.
Run pip install .
$ 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
$ ui-automator --decommission DEVICE_NAME
DEVICE_NAME
: display name of commissioned Matter device on GHA, e.g. m5stack
$ 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.