A lightweight Java Wrapper for Govee API calls and interacting with Govee lights.
- Log into your account on the Govee Home mobile application
- Navigate to the Profile tab
- Select "About Us" and then Request API Key
- Fill out the form and your API key should be sent in the next few minutes
- Follow the steps above for obtaining an API Key
- Fill the
API_KEY
string with your API key - Add a breakpoint after line 21 to select your device's MAC and Model information
- Fill the
DEVICE_MODEL
andDEVICE_MAC
fields in the code - Run!
The Govee API limits requests to 100 per minute. If you exceed this limit, you must wait until your calls reset. You can check your current usage using the getRateLimit()
method.
Before utilizing any API calls, check the documentation provided when you requested your API Key to check which operations are supported by what devices. This information can be found on page 1 (as of API Version 1.1) under "Getting Started with the Govee API". Example: Don't use setRGB()
for a Wi-Fi plug
Please visit the Wiki page for coding examples
Simply implement the govee-java-wrapper-1.0.jar in your project in order to use the included features.