C# .NET 7 API for WiZ light bulbs.
A WinUI project styled to match the Windows 11 Action Centre is included. Starting this project will add an icon to the system tray.
var handles = new List<BulbHandle>();
var scanner = new BulbScanner(homeId: 123456);
await scanner.FindBulbHandlesAsync(handle => handles.Add(handle), timeout: 3000);
if(!handles.Any()) return;
var handle = handles[0];
var client = new BulbClient(handle);
var bulb = new Bulb(client);
await bulb.SetColour(Color.Blue);
await bulb.SetTemperature(7000);
await bulb.SetScene(Scene.Sunset, 35);
This API was inspired by the following projects: