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

Error when running parse_cync_data.py file #103

Open
herm95 opened this issue Aug 12, 2024 · 0 comments
Open

Error when running parse_cync_data.py file #103

herm95 opened this issue Aug 12, 2024 · 0 comments

Comments

@herm95
Copy link

herm95 commented Aug 12, 2024

Hello! Recently came across this repo to setup an integration in Home Assistant. When signing in I get the following error:

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

Seeing that my devices do meet the requirements for this integration to work (connected to wifi, has a neutral wire, etc.), I ran the cync_data.py file to retrieve my configurations. And after running the parse_cync_data.py file, I receive this error:

line 102, in <module> output = json.dumps(main(data),indent = 2) ^^^^^^^^^^ line 69, in main available_room_controllers = [(id%1000) + (int(id/1000)*256) for id in room.get('deviceIDArray',[]) if 'switch_controller' in devices[home_devices[home_id][(id%1000)+(int(id/1000)*256)]]] ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ KeyError: ''"

The KeyError log is seen in my homeassistant logs but the rest is not. It seems this is the culprit for my devices not connecting? Looking for any help on understanding this issue!

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