Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 770 Bytes

README.md

File metadata and controls

26 lines (19 loc) · 770 Bytes

💡 wiz

Control Philips Wiz Smart LED from your terminal!

How to use?

  • Make sure your device is on the same network as your Philips light.
  • Find out the IP address of the light by going to your router's IP address.
from wiz import Light

IP = '192.168.31.170'  # replace with your Wiz's IP address

light = Light(IP)
light.off()
light.on()

light.brightness(25)  # set brightness to 25%
light.brightness(50)  # set brightness to 50%

light.color(color='red')  # set colour to red using string
light.color(red=0, blue=255, green=0)  # set colour to blue using RGB values
light.color(hex='00ff00')  # set colour to green using hexcode

light.scene('Forest')  # change color scene to Forest
light.scene()  # select from a range of predefined scenes