Skip to main content

Integration with Eaton xComfort Bridge

Project description


Unofficial python package for communicating with Eaton xComfort Bridge


import asyncio
from xcomfort import Bridge

async def main():
    bridge = await Bridge.connect(<ip_address>, <auth_key>)

    devices = await bridge.get_devices()

    for device in devices.values():
        device.state.subscribe(lambda state: print(f"State [Device#{device.device_id}]: {state}"))

    # Wait 50 seconds. Try flipping the light switch manually while you wait
    await asyncio.sleep(50) 

    # Turn off all the lights.
    for device in devices.values():
        await device.switch(False)

    await asyncio.sleep(10)

    await bridge.close()

Project details

Download files

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

Files for xcomfort, version 0.0.6
Filename, size File type Python version Upload date Hashes
Filename, size xcomfort-0.0.6-py3-none-any.whl (6.9 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size xcomfort-0.0.6.tar.gz (5.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page