nikshriv / cync_lights

Home Assistant Integration for controlling Cync switches, plugs, and bulbs
149 stars 50 forks source link

Error after logging into Cync to connect light switch #100

Open robertsfeir opened 1 month ago

robertsfeir commented 1 month ago

Hi there. I have a Wifi Cync Light switch, on my network. I've followed the install instructions. I can get through username/pass login followed by 2FA auth code, but the interface throws an error:

"Invalid or unsupported Cync configuration, please ensure there is at least one WiFi connected Cync device in your Home(s)"

In the logs I see this:

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: 10:41:44 AM (1 occurrences) Last logged: 10:41:44 AM

IndexError: list index out of range

Perhaps it's returning 0 devices so it's throwing this error?

Thing is on my iPhone in the Cync app I can see the device, it is connected to WiFi, and over cell I can control it, so it's definitely connected to the cloud. When I log into my cync account via web it doesn't show any devices because only cameras are supported there. So not quite clear if this is a bug (the ioor should probably be caught) or something else I didn't do?