gree-remote icon indicating copy to clipboard operation
gree-remote copied to clipboard

Multiple commands with Python script

Open dulemis opened this issue 3 years ago • 1 comments

Hi,

How can one send multiple commands in one request? Like the gree apps scenes-feature. One press can turn on the device, set a specific mode and temp.

dulemis avatar Nov 03 '21 12:11 dulemis

@dulemis

I've updated the PythonCLI script to accept multiple parameters in both Get and Set mode, like this:

python3 gree.py -i <id> -k <key> -c <ip> set Lig=1 Mod=4 SetTem=26
python3 gree.py -i <id> -k <key> -c <ip> get Lig Mod SetTem

tomikaa87 avatar Jan 09 '22 10:01 tomikaa87