Skip to main content

Python Wrapper for Govee API

Project description


A Python wrapper for the HTTP Govee Developer API to control Govee WiFi supported devices. Developed by Shravan Prasanth (c) 2022. python os


pip3 install pygovee==1.0.2


pip install pygovee==1.0.2


**Retreive API Key from Govee Home App (Profile → About Us → Apply for API Key)

***10 requests per minute per device

from pygovee import Govee

client = Govee.GoveeClient(apiKey="<your api key>")

Get Device List

**Mock MAC Address and Model, THIS DATA WON'T WORK!

# Kitchen Lights: MAC_ADDRESS: 3E-C7-8A-95-A5-40, MODEL:: H6159
# Bedroom Lights: MAC_ADDRESS: 23-14-96-F0-0D-58, MODEL:: H6159

Replace <DEVICE_MAC_ADDRESS> and <DEVICE_MODEL> with your device information when running the command above.

Turn Devices On and Off

client.device_on("<DEVICE_MAC_ADDRESS>", "<DEVICE_MODEL>")
client.device_off("<DEVICE_MAC_ADDRESS>", "<DEVICE_MODEL>")

Change Device Brightness

brightness_level should be an int!

	"<DEVICE_MAC_ADDRESS>", "<DEVICE_MODEL>", brightness_level

Change Device Color using R,G,B Values

r_value, g_value, b_value should all be an int!

	"<DEVICE_MAC_ADDRESS>", "<DEVICE_MODEL>", r_value, g_value, b_value

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pygovee-1.0.2.tar.gz (2.9 kB view hashes)

Uploaded source

Built Distribution

pygovee-1.0.2-py3-none-any.whl (3.0 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page