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

Add authentication support #16

Open
nodiaque opened this issue Apr 21, 2024 · 1 comment
Open

Add authentication support #16

nodiaque opened this issue Apr 21, 2024 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@nodiaque
Copy link

Hello,

Newer device started to use a new protocol and now require an authentication to be used. In python-kasa, we can either set KASA_USERNAME and KASA_PASSWORD so it's used globally or specify --username and --password on the command line to specify it.

Exemple is KS240 device that require it.

Thank you

@flavio-fernandes
Copy link
Owner

flavio-fernandes commented May 4, 2024

Hi @nodiaque! You are right, I can see now in the library that there is a credentials attribute:

Ref: https://python-kasa.readthedocs.io/en/latest/smartdevice.html#kasa.DeviceConfig

credentials=Credentials("myusername", "mypassword"),

I think that can be integrated into mqtt2kasa for sure. I am currently out of cycles for doing that, but would love to play with it in the future. Thank you for creating this issue.

@flavio-fernandes flavio-fernandes added enhancement New feature or request good first issue Good for newcomers labels May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants