Simple bash script to control my Elgato Key Light Air
Depends on: avahi-resolve, curl, awk, jq
./keylights -h <hostname> <action>
Using hostname resolution:
./keylights -h=elgato-key-light-air-12ab.local on
./keylights -h=elgato-key-light-air-12ab.local off
./keylights -h=elgato-key-light-air-12ab.local toggle
Using IP address:
./keylights -h=192.168.0.10 on
./keylights -h=192.168.0.10 off
./keylights -h=192.168.0.10 toggle
Using hostname resolution:
./keylights -h=elgato-key-light-air-12ab.local b+
./keylights -h=elgato-key-light-air-12ab.local b-
Using IP address:
./keylights -h=192.168.0.10 b+
./keylights -h=192.168.0.10 b-
Using hostname resolution:
./keylights -h=elgato-key-light-air-12ab.local t+
./keylights -h=elgato-key-light-air-12ab.local t-
Using IP address:
./keylights -h=192.168.0.10 t+
./keylights -h=192.168.0.10 t-
Find hostnames of your devices using the following command:
avahi-browse -r -t _elg._tcp