πͺ Webhooks Feature Request πͺ π Lightening the Load on the Rate Limits π
Webhooks are a way for an app to provide other apps with real-time information. When a specific event occurs in an app, it can trigger a βpayloadβ of data to be sent to another app via a URL. This URL is called a βwebhook.β
Webhooks are essential because they allow for near-instant communication between apps, which can be crucial for certain types of integrations. For example, with webhooks, an app could receive a notification as soon as a new device is bound to your Govee account rather than having to check for new devices periodically.
Thatβs cool, I guess, but why is this important?
Govee implemented a strict API rate limit for their Developer API. More specifically, users are only allowed to make 10 API calls per minute. More details on the rate limits can be found here: Unofficial Govee Developer API Portal. If you own more than ten devices and want to control them, you can only send ten commands per minute. Remember that a command consists of turning the device on or off, changing its color, and changing its brightness or temperature. You can see how this can quickly become problematic.
Therefore, one way to improve on this rate limit requirement would be to release the capability to create/subscribe to a webhook. This would help with automation that polls the deviceβs status very frequently.
Webhooks can also help with API rate limits by allowing apps only to receive the information they need when needed. For example, an app/automation/user only needs to know when a deviceβs status changes or when a new device is bound to the account. In that case, you can set up a webhook to only receive that information rather than constantly requesting data through the API, which would count against the rate limit.
@GOVEE I have experience with webhooks: designing them from a product perspective and using them as a consumer. Let me know if you have additional questions.
Until Next Timeβ¦ Josue.Today ππΌ
Create Custom Govee Themes in Seconds
Design dynamic gradients and sideload them directly into your Govee Home app using the DIY Theme Studio.