Skip to content

ZachChapman/WizBulbApi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WiZ Light Bulb API

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.

image

Usage

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);

Inspiration

This API was inspired by the following projects:

Dependencies

Framework

Releases

No releases published

Languages