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.1.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.1-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pygovee-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 96f5299601b5b77f71dd4e77a13a783f3532beaf6625de913bfa7088b502d21c
MD5 4c63f2f5ae572aa31dd40840fa463dae
BLAKE2b-256 8a903facbd9f5919ae19cb82ffc8ccccf0e2b6d3d30b384c00c78753abf2910a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pygovee-1.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3b69eba210595c84ee6830c39e8b3ab22cab701308e6585a6b44a7eca525390c
MD5 c20611313b9206a66b3bae02dae9a3e4
BLAKE2b-256 f83fd72e5d6c554ee659f7dae6b74a792a9b7fbe925782953720daa8ca00ae65

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