You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
wizlib - a minimal nodejs library written in typescript for interacting with wiz smartlights
importwizlibfrom"wizlib";// discover bulbs on the network with the static methodconstdiscoveredBulbs=awaitwizlib.discover();// returns an array of objects representing the bulbs found[{ip: "192.168.1.102",state: "on"},{ip: "192.168.1.103",state: "on"},{ip: "192.168.1.123",state: "off"},];// create a bulb instanceconstbulb=wizlib.createBulb("192.168.1.102");// use the various inbuilt methods defined in the apibulb.turnOn();bulb.decreaseBrightness();bulb.setRGB(50,255,10);bulb.increaseRed();