This is an unofficial Python library for controlling Moeller Eaton Xcomfort lights. It requires the Xcomfort CRSZ-00/01 RS-232 programming interface.
This repository is not associated with Moeller Eaton, Home Assistant or other integrations.
If you are running Home Assistant Supervisor you can use the XComfort HA Addon
git clone git@github.com:olekenneth/pyXcomfort.git xcomfort
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%
xcomfort.onLight(lightChangeCallback)
Please contribute.
GPLv3 see LICENSE