Home - bharat-1809/wizctl GitHub Wiki
wizctl
Dart package for controlling WiZ smart lights over UDP.
import 'package:wizctl/wizctl.dart';
void main() async {
// Find lights on the network
final lights = await WizDiscovery.discover();
// Control by IP
final light = WizLight('192.168.1.100');
await light.turnOn();
await light.setColor(255, 100, 50);
await light.setScene(WizScene.cozy);
}
Pages
- Discovery — finding lights on your network
- Light-Control — controlling individual lights
- Group-Control — parallel control of multiple lights
- Scenes — built-in lighting scenes
- Bulb-Types — detecting bulb capabilities
- Retry-Configuration — retry strategies
- Logging — debug output
- Error-Handling — exception types
- Protocol — UDP protocol details
- CLI — command-line usage
Limits
| Value | Range |
|---|---|
| Brightness | 10–100 |
| RGB | 0–255 |
| Temperature | 1000–10000K |
| Speed | 10–200 |