This guide provides step-by-step instructions for integrating the Govee Smart Heater H7131 into Home Assistant using the Govee Developer API.
Before you begin, make sure you have the following:
- Govee Smart Heater H7131
- Govee Home app (iOS, Android) with already added device
- Home Assistant installed and running
Use the Apply Govee-API-Key instructions to get your API key.
Make a request to the Govee Developer API to get the list of devices, replacing YOUR_GOVEE_API_KEY with the API key obtained in the previous step.
curl --location 'https://openapi.api.govee.com/router/api/v1/user/devices' \
--header 'Content-Type: application/json'
--header 'Govee-API-Key: YOUR_GOVEE_API_KEY'
wget --no-check-certificate --quiet \
--method GET \
--timeout=0 \
--header 'Govee-API-Key: YOUR_GOVEE_API_KEY' \
--header 'Content-Type: application/json' \
'https://openapi.api.govee.com/router/api/v1/user/devices'
Add lines from configuration.yaml, scripts.yaml and secrets.yaml to your configuration files. You should replace YOUR_GOVEE_API_KEY and YOUR_DEVICE_ID in these files beforehand.
Restart Home Assistant to apply the changes made to the configuration.
Happy automating! 🏡✨