This is still a work in progress, once more complite will be moved to official GitRepo. Still please try and let us know what you think.
A Home Assistant custom integration for the Cozify HUB product family (ION, ZEN, DIN), installable via HACS.
Note: This integration is specifically for Cozify HUB products. For Cozify HAN products, use the separate
cozify_hanintegration.
| Platform | Devices |
|---|---|
light |
Dimmable lights, color temperature, RGB/HS color |
switch |
Smart plugs, relays |
sensor |
Temperature, humidity, pressure, lux, CO₂, VOC, power, energy, water flow, battery, signal |
binary_sensor |
Motion, door/contact, smoke, moisture, CO, twilight, siren |
climate |
Thermostats with target temp, HVAC modes, presets |
cover |
Blinds with position and tilt |
fan |
Ventilation units (VU), fan speed control |
valve |
Water/gas valves with position |
scene |
Scene activation |
| Mode | Description | IoT Class |
|---|---|---|
| Local | Direct connection to HUB on LAN — faster, no internet required | local_polling |
| Cloud | Via Cozify Cloud — works remotely | cloud_push |
- Home Assistant 2024.1.0 or newer
- Cozify HUB (ION, ZEN or DIN) on your network
- Cozify account (for cloud mode or initial token retrieval)
- Open HACS in Home Assistant
- Go to Integrations → three-dot menu → Custom repositories
- Add
https://github.com/PilcQ/cozify_hubas Integration - Search for Cozify HUB and install
- Restart Home Assistant
Go to Settings → Devices & Services → Add Integration → Cozify HUB
- Choose Local connection mode
- Enter your HUB's local IP address (e.g.
192.168.1.75) - Enter the HUB token (from the Cozify app or obtained via cloud login)
- Choose Cloud connection mode
- Enter your Cozify account email
- Check your email for the OTP code
- Enter the OTP — the integration connects and stores everything automatically
- If you have multiple HUBs, select which one to configure
Cloud mode:
- Email + OTP → cloud token from
cloudapi.cozify.io - Cloud token → hub-specific token from
/user/hubkeys - Hub token stored and used for all local API calls
- Cloud token used as
Authorizationheader, hub token asX-Hub-Key
Local mode:
- Hub token used directly as
Authorizationheader - Connects to
https://<hub-ip>:8893with self-signed SSL (cert verification disabled)
- Local API:
https://<hub-ip>:8893/cc/1.14/ - Cloud API:
https://cloudapi.cozify.io/ui/0.2/hub/remote/cc/1.14/ - Poll interval: 10s (local), 30s (cloud)
- Cannot connect (local) — verify the HUB is reachable: open
https://192.168.1.75:8893/hubin browser (accept the self-signed cert warning) - Invalid OTP — OTPs are single-use and expire quickly, request a new one
- Already configured — the integration was set up successfully, close the dialog and check Settings → Devices & Services
- Enable debug logging in
configuration.yaml:logger: default: warning logs: custom_components.cozify_hub: debug
- Full rewrite based on official Cozify API v2 documentation
- Added local mode (direct HTTPS to hub)
- Added cloud mode with automatic OTP authentication
- New platforms: switch, climate, fan, valve, scene
- Correct API command format (
CMD_DEVICE_ON/OFF,CMD_DEVICEwith state objects) - Correct brightness/hue/saturation units (0.0–1.0 / radians)
- Parallel data fetching (devices, rooms, scenes, groups, alarms)
- Token refresh support
- Multi-hub support
- Initial release with cloud-only authentication
Note: This integration is (SOON) officially supported by Cozify Oy. You are already welcome to try this...
