rbdubz3 / python-lightify

Python module for Osram lightify. This is a work in progress.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

python-lightify

Python module for OSRAM Lightify Based on work from Mikael Magnusson. (Github: mikma)

Packaged up for pypi by Andreas Neumeier

It communicates with a Lightify gateway connected to the same LAN via TCP port 4000 using a binary protocol.

This is a work in progress.

Usage

pip install lightify

Example

Turn on all lights connected to the gateway.

from lightify import Lightify

lightify = Lightify("Lightify-Hostname")
lightify.update_all_light_status()
lights = lightify.lights()
for light in lights.keys():
  lights[light].set_onoff(True)

About

Python module for Osram lightify. This is a work in progress.

License:Apache License 2.0


Languages

Language:Python 100.0%