This script allows you to control a Govee smart device using their API. It provides a simple interface to turn the device on or off.
Before using this script, ensure you have the following:
- API key from Govee API (You can get it from Govee Developer Portal)
- Device SKU: SKU (Stock Keeping Unit) of your Govee device
- Device ID: Unique identifier of your Govee device
- Set your API key, device SKU, and device ID in the script.
- Run the script with the following command:
Replace
./light.sh [options]
[options]
with:- No option: Turns the device on.
-off
: Turns the device off.
./light.sh # Turns the device on
./light.sh -off # Turns the device off