Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cync Cabinet Lights Fail To Parse Data #110

Open
SimonOrdo opened this issue Oct 2, 2024 · 0 comments
Open

Cync Cabinet Lights Fail To Parse Data #110

SimonOrdo opened this issue Oct 2, 2024 · 0 comments

Comments

@SimonOrdo
Copy link

SimonOrdo commented Oct 2, 2024

Cync Under cabinet lights fail to parse data during integration setup.

Error in logs is

This error originated from a custom integration.

Logger: custom_components.cync_lights.config_flow
Source: custom_components/cync_lights/config_flow.py:105
integration: Cync Lights (documentation)
First occurred: 6:30:03 PM (1 occurrences)
Last logged: 6:30:03 PM

InvalidCyncConfiguration:

Data structure as downloaded from Cync as follows:

{
    "data": [
        {
            "device": {
                "subscribe_date": "2024-10-01T02:51:18.82Z",
                "is_active": true,
                "role": 0,
                "last_login": "2024-10-01T04:48:19.413Z",
                "firmware_mod": "1",
                "active_code": "[redacted]",
                "active_date": "2024-10-01T02:43:38.620Z",
                "groups": "",
                "mcu_version": 28,
                "firmware_version": 10064,
                "source": 1,
                "mac": "[redacted]",
                "mcu_mod": "1",
                "product_id": "[redacted]",
                "access_key": [redacted],
                "name": "",
                "authorize_code": "[redacted]",
                "id": [redacted],
                "is_online": true
            },
            "device_info": {
                "error": {
                    "msg": "device property not exists",
                    "code": 4041009
                }
            }
        },
        {
            "device": {
                "subscribe_date": "2024-10-01T02:19:45.968Z",
                "is_active": true,
                "role": 0,
                "last_login": "",
                "active_code": "[redacted]",
                "active_date": "2024-10-01T02:19:45.965Z",
                "groups": "",
                "mcu_version": 0,
                "firmware_version": 0,
                "source": 5,
                "mac": "[redacted]",
                "product_id": "[redacted]",
                "access_key": [redacted],
                "name": "Circus",
                "authorize_code": "[redacted]",
                "id": [redacted],
                "is_online": false
            },
            "device_info": {
                "musicShows": [],
                "bulbsArray": [
                    {
                        "deviceType": 43,
                        "occupancyDeactivationPeriod": 30,
                        "ambientLightSensorSensitivity": 10,
                        "motionSensorDelayTime": 300,
                        "switchID": [redacted],
                        "displayName": "Undercabinet Light 3",
                        "motionSensorEnabled": true,
                        "wifiSsid": "[redacted]",
                        "ambientLightSensorEnabled": false,
                        "motionSensorDeactivationPeriod": 30,
                        "allowOTAUpdates": "true",
                        "deviceID": [redacted],
                        "mac": "[redacted]",
                        "commissionedDate": "2024-10-01T02:54:04.053487Z",
                        "ambientLightEnable": "false",
                        "motionSensorSensitivity": 1,
                        "wifiMac": "[redacted]",
                        "ambientLightSensitivity": 10,
                        "firmwareVersion": "1.0.064",
                        "occupancySensitivity": 1,
                        "occupancyTimeoutPeriod": 300,
                        "occupancyEnable": "true"
                    },
                    {
                        "deviceType": 43,
                        "occupancyDeactivationPeriod": 30,
                        "ambientLightSensorSensitivity": 10,
                        "motionSensorDelayTime": 300,
                        "switchID": [redacted],
                        "displayName": "Undercabinet Light 4",
                        "motionSensorEnabled": true,
                        "wifiSsid": "[redacted]",
                        "ambientLightSensorEnabled": false,
                        "motionSensorDeactivationPeriod": 30,
                        "allowOTAUpdates": "true",
                        "deviceID": [redacted],
                        "mac": "[redacted]",
                        "commissionedDate": "2024-10-01T02:55:22.390582Z",
                        "ambientLightEnable": "false",
                        "motionSensorSensitivity": 1,
                        "wifiMac": "[redacted]",
                        "ambientLightSensitivity": 10,
                        "firmwareVersion": "1.0.064",
                        "occupancySensitivity": 1,
                        "occupancyTimeoutPeriod": 300,
                        "occupancyEnable": "true"
                    },
                    {
                        "deviceType": 43,
                        "occupancyDeactivationPeriod": 30,
                        "ambientLightSensorSensitivity": 10,
                        "motionSensorDelayTime": 300,
                        "switchID": [redacted],
                        "displayName": "Kitchen Counter Light",
                        "motionSensorEnabled": true,
                        "wifiSsid": "[redacted]",
                        "ambientLightSensorEnabled": false,
                        "motionSensorDeactivationPeriod": 30,
                        "allowOTAUpdates": "true",
                        "deviceID": [redacted],
                        "mac": "[redacted]",
                        "commissionedDate": "2024-10-01T02:51:16.125663Z",
                        "ambientLightEnable": "false",
                        "motionSensorSensitivity": 1,
                        "wifiMac": "[redacted]",
                        "ambientLightSensitivity": 10,
                        "firmwareVersion": "1.0.064",
                        "occupancySensitivity": 1,
                        "occupancyTimeoutPeriod": 300,
                        "occupancyEnable": "true"
                    },
                    {
                        "deviceType": 43,
                        "occupancyDeactivationPeriod": 30,
                        "ambientLightSensorSensitivity": 10,
                        "motionSensorDelayTime": 300,
                        "switchID": [redacted],
                        "displayName": "Kitchen Counter Light 2",
                        "motionSensorEnabled": true,
                        "wifiSsid": "[redacted]",
                        "ambientLightSensorEnabled": false,
                        "motionSensorDeactivationPeriod": 30,
                        "allowOTAUpdates": "true",
                        "deviceID": [redacted],
                        "mac": "[redacted]",
                        "commissionedDate": "2024-10-01T02:52:22.862058Z",
                        "ambientLightEnable": "false",
                        "motionSensorSensitivity": 1,
                        "wifiMac": "[redacted]",
                        "ambientLightSensitivity": 10,
                        "firmwareVersion": "1.0.064",
                        "occupancySensitivity": 1,
                        "occupancyTimeoutPeriod": 300,
                        "occupancyEnable": "true"
                    }
                ],
                "lightShows": [
                    {
                        "brightness": [
                            1,
                            100
                        ],
                        "colorOrder": "random",
                        "effect": 2,
                        "name": "Twilight",
                        "icon": 17,
                        "index": 10,
                        "colors": [
                            "7000FD",
                            "0020FF",
                            "FFFFFF",
                            "D300FD"
                        ],
                        "speed": [
                            0
                        ],
                        "fadeSpeed": [
                            600,
                            2700
                        ]
                    }
                ],
                "admin": {
                    "emailAddress": "[redacted]",
                    "lastUseDate": "2024-10-01T02:19:46.097Z",
                    "userID": [redacted],
                    "username": "",
                    "createDate": "2024-10-01T02:19:46.097Z"
                },
                "groupsArray": [
                    {
                        "sensorSchedules": [],
                        "displayName": "Kitchen",
                        "groupID": 32768,
                        "showOnHome": false,
                        "isSubgroup": false,
                        "subgroupIDArray": [],
                        "deviceIDArray": [
                            3,
                            4,
                            1,
                            2
                        ]
                    }
                ],
                "lastUseDate": "2024-10-01T02:19:46.097340Z",
                "version": "NA",
                "autoOtaEnabled": true,
                "system": {
                    "app": {
                        "build": "0.26.0",
                        "bundleID": "com.savantsystems.gesdk",
                        "name": "CbyGEKit",
                        "version": "2600"
                    },
                    "ltk": "D41623759F7AFDFD6853E73C1B74D0C2",
                    "timeInfo": {
                        "timeZone": "America/Chicago"
                    },
                    "platform": {
                        "os": "Android",
                        "machine": "N/A",
                        "model": "[redacted]",
                        "localizedModel": "[redacted]",
                        "version": "34"
                    }
                },
                "standaloneDevicesArray": [],
                "sceneArray": [],
                "schedules": [],
                "multiColorSchemes": [],
                "createDate": "2024-10-01T02:19:46.097340Z"
            }
        },
        {
            "device": {
                "subscribe_date": "2024-10-01T02:52:24.394Z",
                "is_active": true,
                "role": 0,
                "last_login": "2024-10-01T11:55:25.677Z",
                "firmware_mod": "1",
                "active_code": "[redacted]",
                "active_date": "2024-10-01T01:00:24.817Z",
                "groups": "",
                "mcu_version": 28,
                "firmware_version": 10064,
                "source": 1,
                "mac": "[redacted]",
                "mcu_mod": "1",
                "product_id": "[redacted]",
                "access_key": [redacted],
                "name": "",
                "authorize_code": "[redacted]",
                "id": [redacted],
                "is_online": true
            },
            "device_info": {
                "error": {
                    "msg": "device property not exists",
                    "code": 4041009
                }
            }
        },
        {
            "device": {
                "subscribe_date": "2024-10-01T02:55:23.726Z",
                "is_active": true,
                "role": 0,
                "last_login": "2024-10-01T04:48:19.593Z",
                "firmware_mod": "1",
                "active_code": "[redacted]",
                "active_date": "2024-10-01T01:21:52.261Z",
                "groups": "",
                "mcu_version": 28,
                "firmware_version": 10064,
                "source": 1,
                "mac": "[redacted]",
                "mcu_mod": "1",
                "product_id": "[redacted]",
                "access_key": [redacted],
                "name": "",
                "authorize_code": "[redacted]",
                "id": [redacted],
                "is_online": true
            },
            "device_info": {
                "error": {
                    "msg": "device property not exists",
                    "code": 4041009
                }
            }
        }
    ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant