How jameslb/cync_lights works
This Home Assistant integration authenticates a Cync account, discovers its homes and devices, lets users choose which rooms and devices to expose, and provides controls and sensor state in Home Assistant. The hub owns the Cync connection and device state; platform entities expose lights, fans, plugs, motion sensors, and ambient-light sensors. The excerpts show setup, platform access, and entity commands, but not the full network protocol, so the Cync service connection is shown as unverified.
Main entry points: __init__.py Entry lifecycle · cync_hub.py Cync hub and device state · config_flow.py Setup and options · light.py Room and switch lights
Components 10
Account setup
- Setup and options
custom_components/cync_lights/config_flow.py
Integration runtime
- Integration domain
custom_components/cync_lights/const.py - Entry lifecycle
custom_components/cync_lights/__init__.py - Cync hub and device state
custom_components/cync_lights/cync_hub.py
Device controls
- Room and switch lights
custom_components/cync_lights/light.py - Fan controls
custom_components/cync_lights/fan.py - Plug controls
custom_components/cync_lights/switch.py
Device sensors
- Motion and ambient sensors
custom_components/cync_lights/binary_sensor.py
Other components
- Home Assistant user
- Cync service
Connections 14
- Home Assistant user → Setup and options: configures account
README.md - Setup and options → Cync hub and device state: authenticates and discovers
custom_components/cync_lights/config_flow.py - Home Assistant user → Setup and options: selects devices
README.md - Entry lifecycle → Integration domain: uses domain key
custom_components/cync_lights/__init__.py - Entry lifecycle → Cync hub and device state: creates and starts
custom_components/cync_lights/__init__.py - Entry lifecycle → Room and switch lights: forwards setup
custom_components/cync_lights/__init__.py - Entry lifecycle → Motion and ambient sensors: forwards setup
custom_components/cync_lights/__init__.py - Entry lifecycle → Fan controls: forwards setup
custom_components/cync_lights/__init__.py - Entry lifecycle → Plug controls: forwards setup
custom_components/cync_lights/__init__.py - Room and switch lights → Cync hub and device state: reads state; sends commands
custom_components/cync_lights/light.py - Fan controls → Cync hub and device state: reads state; sends commands
custom_components/cync_lights/fan.py - Plug controls → Cync hub and device state: reads state; sends commands
custom_components/cync_lights/switch.py - Motion and ambient sensors → Cync hub and device state: reads sensor state
custom_components/cync_lights/binary_sensor.py - Cync hub and device state → Cync service: exchanges device data