Skip to content

Python library for controlling Moeller Eaton Xcomfort lights.

License

Notifications You must be signed in to change notification settings

magnulf/pyXcomfort

 
 

Repository files navigation

pyXcomfort

Build Status Coverage Status Known Vulnerabilities

This is an unofficial Python library for controlling Moeller Eaton Xcomfort lights. It requires the RS-232 programming interface.

This repository is not associated with Moeller Eaton, Home Assistant or other integrations.

How to use

git clone [email protected]:olekenneth/pyXcomfort.git xcomfort

Callback when a specific light changes

from xcomfort.xcomfort import Xcomfort

xcomfort = Xcomfort(devicePath='/dev/ttyUSB0')
xcomfort.lights = [{ serial: 2118491, name: 'Plafond' }, ... ]

def lightChangeCallback(light):
  print(light.name + ' changed state to ' + str(light.state))

light = xcomfort.lights[0]
light.onChange(lightChangeCallback)
light.state = False   # turn off the light
light.brightness = 25 # turn light on and set brightness to 25%

Callback when one of the lights change

xcomfort.onLight(lightChangeCallback)

Contribute

Please contribute.

License

GPLv3 see LICENSE

About

Python library for controlling Moeller Eaton Xcomfort lights.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%