A Home Assistant custom integration for controlling CozyLife smart lights and switches over the local network. Communicates directly with devices via TCP — no cloud required.
- Pure local control over TCP (port 5555), no cloud dependency
- Supports color bulbs (RGB, color temperature, brightness) and switches
- Smooth transitions between brightness and color states
- Built-in lighting effects: manual, natural (circadian), sleep, warm, study, rainbow
- Automatic reconnection if a device goes offline and comes back
- Optional Circadian Lighting integration
Or manually:
- Open HACS in Home Assistant
- Go to Integrations and click the three-dot menu
- Select Custom repositories
- Add
https://github.com/yangqian/hass-cozylifeas an Integration - Install CozyLife and restart Home Assistant
Copy the custom_components/cozylife folder into your Home Assistant custom_components directory and restart.
- Initialize your CozyLife devices using the official CozyLife app (to connect them to your WiFi network)
- Assign static IP addresses to your devices in your router
- (Optional) Block internet access for the devices to prevent cloud communication
- Go to Settings > Devices & Services > Add Integration
- Search for CozyLife
- Enter the IP range to scan (e.g.
192.168.1.1to192.168.1.254) - All discovered CozyLife devices on that subnet will be added automatically
Devices on the same /24 subnet are grouped under a single hub entry.
- Color bulbs (with and without HomeKit support)
- Smart switches
- CW (cool/warm white) bulbs
- Devices must have static IPs configured in your router
- All communication is unencrypted TCP on port 5555
- Color accuracy may vary between bulb models