Josue.Today Logo Mark
Josue.todayAMBIENT LUMENS // DIY
BACK TO ALL ARTICLES
APIs & AutomationsOriginal Govee Post
❀️ 14 likesπŸ’¬ 1 replies

πŸͺ Webhooks Feature Request πŸͺ πŸ“ˆ Lightening the Load on the Rate Limits πŸ“‰

Josue Negron
Josue Negron2023 Govee Ambassador
Smart Home Automation • Georgia Tech CE

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 πŸ‘‹πŸΌ

Tags:#API#HomeAssistant#IoT
Try The New Tool

Create Custom Govee Themes in Seconds

Design dynamic gradients and sideload them directly into your Govee Home app using the DIY Theme Studio.

🎨 Launch Theme Studio β†—