Wiz smart lights and other brands that support the same controller app are readily available in stores and online. They're cheaper than some smart lights of yesteryear and they don't require any sort of base station beyond a WiFi access point. The lights provide several different ways to integrate and control them. This guide presents a CircuitPython library which uses a UDP connection over a WiFi network to send JSON data to the light which will tell it to take various actions.
You initialize the WizConnectedLight object with the IP address of your light, then access and set properties to get its current current status and control the light.
With this library you can easily set up control and light automation, and use button or sensor inputs to turn the lights on or off. You can even fetch data from online APIs like sunrise and sunset times, or other weather information and use it control the brightness or color temperature of the lights.Â
Parts
To control the lights you can use any CircuitPython device with built-in WiFi. Several options that have been tested successfully with Wiz lights are listed below.
Page last edited December 23, 2024
Text editor powered by tinymce.