Skip to content

wiltodelta/homeassistant-govee-smart-heater-h7131

Repository files navigation

Govee Smart Heater H7131 Integration for Home Assistant

Overview

This guide provides step-by-step instructions for integrating the Govee Smart Heater H7131 into Home Assistant using the Govee Developer API.

Features

  • Turn heater on/off through Home Assistant
  • Monitor heater state
  • Automatic state updates every 30 seconds
  • Support for multiple heaters (optional)

Prerequisites

Before you begin, make sure you have the following:

Integration Steps

1. Obtain Govee Developer API Key

Use the Apply Govee-API-Key instructions to get your API key.

2. Get device ID using Govee Developer API

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'

3. Configure Home Assistant

Add lines from configuration.yaml, scripts.yaml, automations.yaml and secrets.yaml to your configuration files. You should replace YOUR_GOVEE_API_KEY and YOUR_GOVEE_DEVICE_1_ID in these files beforehand. If you need to add a second device, uncomment the appropriate lines in scripts.yaml, configuration.yaml and automations.yaml.

4. Restart Home Assistant

Restart Home Assistant to apply the changes made to the configuration.

5. Add a button to the Home Assistant panel

Screenshot

Contributing

Feel free to submit issues and pull requests to improve this integration.

Happy automating! 🏡✨

About

Govee Smart Heater H7131 Integration for Home Assistant

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published