govee-lights
Control Govee smart lights via the Govee API. Supports turning lights on/off, adjusting brightness, setting colors, and scenes. Use for: (1) Controlling individual lights or groups by name, (2) Setting colors and brightness, (3) Managing device states
Installation
Pick a client and clone the repository into its skills directory.
Installation
About this skill
Control Govee smart lights via the Govee API. Supports turning lights on/off, adjusting brightness, setting colors, and scenes. Use for: (1) Controlling individual lights or groups by name, (2) Setting colors and brightness, (3) Managing device states
How to use
Przejdź do Govee Developer Portal i utwórz klucz API, następnie zapisz go w zmiennej środowiskowej poleceniem
export GOVEE_API_KEY="twój-klucz".Zainstaluj wymagane zależności:
pip3 install requests.Wyświetl listę wszystkich dostępnych urządzeń Govee poleceniem
python3 scripts/govee.py list, aby poznać dokładne nazwy lamp i grup.Steruj światłami za pomocą naturalnych poleceń — możesz włączyć urządzenie (
python3 scripts/govee.py on "nazwa"), wyłączyć je (python3 scripts/govee.py off "nazwa") lub regulować jasność (python3 scripts/govee.py brightness "nazwa" 75).Zmieniaj kolory, podając wartości RGB (0-255) — na przykład
python3 scripts/govee.py color "lampa" 255 0 0ustawia kolor czerwony, apython3 scripts/govee.py color "lampa" 0 255 0zielony.Jeśli napotkasz problemy, sprawdź plik TROUBLESHOOTING.md w repozytorium, gdzie znajdują się rozwiązania dla typowych błędów.