Skip to main content

A python connector for WiZ light bulbs (e.g SLV Play)

Project description

pywizlight

A python connector for WiZ light bulbs. Work in progress an only tested with the SLV Play RGB bulb.

Bulb methodes:

  • getSystemConfig - gets the current system configuration - no paramters need
  • syncPilot - sent by the bulb as heart-beats
  • getPilot - gets the current bulb state - no paramters need to be included
  • setPilot - used to tell the bulb to change color/temp/state
  • Pulse - uncertain of purpose
  • Registration - used to "register" with the bulb: This notifies the built that it you want it to send you heartbeat sync packets.

Bulb paramters:

  • sceneId - calls one of thr predefined scenes (int from 0 to 12?)
  • speed - sets the color changing speed in precent
  • dimming - sets the dimmer of the bulb in precent
  • r - red color range 0-255
  • g - green color range 0-255
  • b - blue color range 0-255
  • c - ????
  • w - white color range 0-255
  • id - the bulb id

Example requests

Send message to the bulb: {"method":"setPilot","params":{"r":255,"g":255,"b":255,"dimming":50}} Response: {"method":"setPilot","env":"pro","result":{"success":true}}

Get state of the bulb: {"method":"getPilot","params":{}} Response: {"method":"getPilot","env":"pro","result":{"mac":"0000000000","rssi":-65,"src":"","state":false,"sceneId":0,"temp":6500,"dimming":100}}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

pywizlight-0.2.1-py3-none-any.whl (7.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page