davidashman / homebridge-cync-lights

Apache License 2.0
10 stars 5 forks source link

RGB Downlight not showing correctly in homekit #6

Open smelly3443 opened 9 months ago

smelly3443 commented 9 months ago

Describe The Bug: RGB Downlight only showing in homekit as a switch light. It doesn't show as a dimmable RGB light.

To Reproduce: Removed and added light.

Expected behavior: To show in homekit as a dimmable RGB light.

Logs:

[30/01/2024, 17:37:53] [Cync Lights] Discovering homes...
[30/01/2024, 17:37:53] [Cync Lights] Connecting to Cync server...
[30/01/2024, 17:37:53] [Cync Lights] Authenticating with Cync server...
[30/01/2024, 17:37:53] [Cync Lights] Cync server connected.
[30/01/2024, 17:37:53] [Cync Lights] Registering device: {"occupancyDeactivationPeriod":0,"lightRingBrightness":0,"displayName":"Front Door","showOnHome":false,"loadSelection":1,"mac":"34134349D464","lightRingColor":0,"ambientLightEnable":false,"firmwareVersion":"1.3.102","occupancySensitivity":0,"occupancyEnable":false,"followTheSun":false,"deviceType":170,"wifiDisconnectIndicatorEnable":false,"fadeOff":0,"switchID":1273829130,"allowOTAUpdates":true,"deviceID":1710385502037,"commissionedDate":"2024-01-30T21:55:56Z","fadeOn":0,"defaultBrightness":0,"wifiMac":"34134349D465","lightRingMode":0,"ambientLightSensitivity":0,"simpleModeEnabled":false,"occupancyTimeoutPeriod":0}
[30/01/2024, 17:37:54] [Cync Lights] Received update for Front Door (c28eb2ed-eaa0-48b2-ba3f-7d35cf2186ab) with states:  {"on":false,"brightness":0,"colorTemp":25,"rgb":[255,158,0]}
[30/01/2024, 17:38:24] [Cync Lights] Received update for Front Door (c28eb2ed-eaa0-48b2-ba3f-7d35cf2186ab) with states:  {"on":false,"brightness":0,"colorTemp":25,"rgb":[255,158,0]}
[30/01/2024, 17:38:49] [Cync Lights] Received update for Front Door (c28eb2ed-eaa0-48b2-ba3f-7d35cf2186ab) with states:  {"on":true,"brightness":100,"colorTemp":25,"rgb":[255,158,0]}
[30/01/2024, 17:38:52] [Cync Lights] Access token valid until Invalid Date
[30/01/2024, 17:38:52] [Cync Lights] Discovering homes...
[30/01/2024, 17:39:52] [Cync Lights] Access token valid until Invalid Date
[30/01/2024, 17:39:52] [Cync Lights] Discovering homes...
[30/01/2024, 17:40:52] [Cync Lights] Access token valid until Invalid Date
[30/01/2024, 17:40:52] [Cync Lights] Discovering homes...
[30/01/2024, 17:41:52] [Cync Lights] Access token valid until Invalid Date
[30/01/2024, 17:41:52] [Cync Lights] Discovering homes...
[30/01/2024, 17:42:52] [Cync Lights] Access token valid until Invalid Date
[30/01/2024, 17:42:52] [Cync Lights] Discovering homes...
[30/01/2024, 17:42:54] [Cync Lights] Received update for Front Door (c28eb2ed-eaa0-48b2-ba3f-7d35cf2186ab) with states:  {"on":true,"brightness":100,"colorTemp":25,"rgb":[255,158,0]}
[30/01/2024, 17:43:52] [Cync Lights] Access token valid until Invalid Date
[30/01/2024, 17:43:52] [Cync Lights] Discovering homes...
[30/01/2024, 17:44:52] [Cync Lights] Access token valid until Invalid Date
[30/01/2024, 17:44:52] [Cync Lights] Discovering homes...
[30/01/2024, 17:45:52] [Cync Lights] Access token valid until Invalid Date
[30/01/2024, 17:45:52] [Cync Lights] Discovering homes...
[30/01/2024, 17:46:52] [Cync Lights] Access token valid until Invalid Date
[30/01/2024, 17:46:52] [Cync Lights] Discovering homes...

Plugin Config:

"platform": "CyncLights",
    "name": "Cync Lights",
    "emailAddress": 
    "refreshToken": "",
    "userID":,
    "authorize": ""
}

Screenshots:

Screenshot 2024-01-30 at 17 50 32

Environment:

OS | Raspbian GNU/Linux Bullseye (11) homebridge pi v20.11.0