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

Doesn't work for new Cync accounts #7

Open
KTibow opened this issue Oct 5, 2021 · 6 comments
Open

Doesn't work for new Cync accounts #7

KTibow opened this issue Oct 5, 2021 · 6 comments

Comments

@KTibow
Copy link

KTibow commented Oct 5, 2021

Cync accounts need 2fa, which hasn't been implemented here yet. Either it should support 2fa, or accept tokens obtainable from https://github.com/unixpickle/cbyge.

@yangqian
Copy link
Owner

yangqian commented Oct 5, 2021

I do not have a Cync account. I am not sure how the new 2FA is implemented.
The getconfig.py script is a helper to obtain the username/password pair from the server.
After you obtain them, you no longer need to interact with the server anymore.
You can still use the component if you know how to obtain it yourself.
username looks like a MAC address with ":" stripped.
passwords are 6 digits numbers for me.

@KTibow
Copy link
Author

KTibow commented Oct 6, 2021

I am not sure how the new 2FA is implemented.

Have a look at https://github.com/unixpickle/cbyge/. By the way, do you have a Discord or Home Assistant forums account? I was able to obtain a JSON string from that project, but I'm not sure how to use it, and I don't want to send my token in public.

@juanboro
Copy link

juanboro commented Oct 8, 2021

Hi --- I've been working on a script which bridges the Cync bluetooth mesh to mqtt. I converted the 2FA login procedure from the above Go code to python. I've made the early script public here: https://github.com/juanboro/cync2mqtt -- you can find the procedure in src/acync/init.py -- app_meshinfo_to_json.

@KTibow
Copy link
Author

KTibow commented Oct 9, 2021

That's great, now I just need to figure out how to use it for my Direct Connect bulbs.

@CaptainN
Copy link

Even the direct connect bulbs are able to be controlled by BTLE light switches. I wonder if there is a way to simulate the way those switches interact with the bulbs? They are able to do on/off, brightness, and white point tuning.

@KTibow
Copy link
Author

KTibow commented Jun 4, 2022

So... any update on this? It's annoying to have my smart lights being dumb, and I know it is possible.

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

4 participants