Skip to main content

Python Wrapper for Govee API

Project description

pygovee

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

Installation

pip3 install pygovee

or 
```bash
pip install pygovee

Usage

**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>")
client.login()

Get Device List

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

client.get_device_list()
# 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!

client.change_device_brightness(
	"<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!

client.change_device_color(
	"<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.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pygovee-1.0.0-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file pygovee-1.0.0.tar.gz.

File metadata

  • Download URL: pygovee-1.0.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.5

File hashes

Hashes for pygovee-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1d5ca52a4ecbb8aaa06aa5f3c8e23892ea3d8dfb5ff8b32f5c6595f8b5a56453
MD5 69fa9f98b8fc3770bd9910e0de10d575
BLAKE2b-256 d70e0da04adae7972c2b5f565e9ee9a82b1b47e6ae3f0863b9d87cb33b5ad941

See more details on using hashes here.

File details

Details for the file pygovee-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pygovee-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.5

File hashes

Hashes for pygovee-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 741254edc3a81a1a62e0bd134882297cf218c5b9a05967f9c11395e95a72957d
MD5 3452fb39d82c52105222c9cd23a86824
BLAKE2b-256 577ed82498a0e5f6dc3960c858ec50515b43154b5166e595806382e03c93269a

See more details on using hashes here.

Supported by

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