pygovee
A Python wrapper for the HTTP Govee Developer API to control Govee WiFi supported devices.
Developed by Shravan Prasanth (c) 2022.
Installation
pip3 install pygovee==1.0.2
or
pip install pygovee==1.0.2
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
)
Metadata
Release files for pygovee 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pygovee-1.0.2.tar.gz | 2.9 kB | Without provenance | Details for pygovee-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pygovee-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for pygovee-1.0.2-py3-none-any.whl |
Total release size: 5.9 kB
Release files / pygovee-1.0.2.tar.gz
| Download URL | pygovee-1.0.2.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9283b6ff74c2feeece4cdf2b18a1518d6415092c48a3b32e243f1764acb33624
|
|
BLAKE2b-256 checksum How to use checksums |
b4ad904862ffbbefb4ebc1bea79d8b88c387d0c974d3cc80560cc9741eb59f00
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.5
|
Release files / pygovee-1.0.2-py3-none-any.whl
| Download URL | pygovee-1.0.2-py3-none-any.whl |
|---|---|
| Size | 3.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aa58441fd3e94933cb21e744e2c6e610befd34c8a112cc8c110ccf61ab32961b
|
|
BLAKE2b-256 checksum How to use checksums |
24b7272f303e10540272dbe551a51a6f116a7246cbdfccc8b74a472282157823
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.5
|
Security for pygovee 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.