- Posted on
Wed Dec 14, 2022 10:10 pm
-
Different Computers
offline
-
- Posts: 2579
- Joined: Jan 02, 2016
- Location: East Coast
-
Seems like **maaaaybeeee** external servers don't need to be involved.
Here's what ChatGPT has to say:
can you assist me in using python scripts to integrate Govee lights with Indigo?Yes, I can provide some guidance on how to use Python scripts to integrate Govee lights with Indigo. Here are the general steps that you would need to follow:Install the Python library for Govee lights. This library provides a set of functions that you can use to control Govee lights from a Python script.Import the Govee library into your Python script. You can do this by adding the following line at the beginning of your script:
- Code: Select all
import govee
Initialize the Govee lights. You can do this by creating an instance of the Govee class and passing it the MAC address of the light that you want to control. For example:- Code: Select all
lights = govee.Govee('xx:xx:xx:xx:xx:xx')
Use the functions provided by the Govee library to control the lights. For example, you can use the set_brightness() function to set the brightness of the light, and the set_color() function to set the color of the light.
Here is an example Python script that shows how you can use the Govee library to control a light:- Code: Select all
import govee
lights = govee.Govee('xx:xx:xx:xx:xx:xx')
# Set the brightness of the light to 50%
lights.set_brightness(50)
# Set the color of the light to red
lights.set_color('red')
You can integrate this Python script with Indigo by using the Python Plugin for Indigo, which allows you to run Python scripts from within Indigo. You can then create Indigo actions or triggers that call the Python script and control the Govee lights.
Anyone interested in trying this? I don't have any Govee lights. But I might get some!
Sonoma on a Mac Mini M1 running Airfoil Pro, Bond Home, Camect, Roku Network Remote, Hue Lights, DomoPad, Adapters, Home Assistant Agent, HomeKitLinkSiri, EPS Smart Dimmer, Fantastic Weather, Nanoleaf, LED Simple Effects, Grafana. UnifiAP