darth-hp / yeelight-shell-scripts

Control Xiaomi Mi Yeelight (RGB) with bash scripts
Apache License 2.0
130 stars 23 forks source link

All Yeelights? #2

Closed wowwood closed 6 years ago

wowwood commented 6 years ago

Hi,

Is there any way to apply a script to all yeelights at once?

Thanks

darth-hp commented 6 years ago

I could think of several ways but one might be the easiest:

Adjust the yeelight.sh to not start from 0 but 1 and if 0 is given you iterate over all instances

darth-hp commented 6 years ago

@wowwood Changed with https://github.com/hphde/yeelight-shell-scripts/commit/8010f270ea5d9b57ec6428ae77d60063d7187cb6

Note: IDs now start with 1