This release brings the first end-to-end Cync cloud integration: 2FA login, token persistence, and device discovery.
Highlights
- Added email + password + 2FA login against the Cync cloud API.
- Implemented persistent token storage in the Homebridge storage path.
- Restores sessions automatically on Homebridge restart using the stored token.
- Fetches Cync meshes via
/user/{userId}/subscribe/devices. - For each mesh, probes
/product/{productId}/device/{meshId}/propertyto locatebulbsArray. - Maps
bulbsArrayentries into Homebridge accessories:- Uses Cync
displayNameas the HomeKit accessory name. - Uses
deviceID/wifiMacto seed stable UUIDs (e.g.cync-<meshId>-<deviceId>).
- Uses Cync
Installation / Upgrade
- Install the plugin:
npm install -g homebridge-cync-app
- Add a platform entry to your
config.json:
{
"platform": "CyncAppPlatform",
"name": "Cync App (Dev)",
"username": "you@example.com",
"password": "your-cync-password"
}
-
Start Homebridge once without
twoFactorset to trigger a 2FA email. -
Add the 2FA code as
"twoFactor": "123456"in the platform config and restart Homebridge. -
You should see your Cync outlets appear as HomeKit switches using their Cync names.
Known limitations
-
TCP / LAN control is not wired yet:
- The switch
Oncharacteristic logs state changes but does not send real commands to devices.
- The switch
-
Only simple on/off outlets have been validated.
-
Token refresh / expiry handling is not implemented; if the token expires, you may need to repeat the 2FA flow.
Breaking changes
- None. This is still a
0.0.xexploratory build, but code paths for login and discovery have changed significantly from v0.0.1.