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

Local-only control #1

Open
DinuruSeniya opened this issue Oct 7, 2024 · 3 comments
Open

Local-only control #1

DinuruSeniya opened this issue Oct 7, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@DinuruSeniya
Copy link

Hi,
I was wondering if we could include a local-only mode to control Tuya WiFi devices (using the API key) instead of logging into the smart life account.

@scottsa8
Copy link
Owner

scottsa8 commented Oct 7, 2024

I'm not too sure if this would be possible, as the Tuya API requires a token from your account to be passed with every single call to it. If you think it could be possible however, I'd be happy for you to help me set it up.

@DinuruSeniya
Copy link
Author

DinuruSeniya commented Oct 8, 2024

The token for Local Tuya can be obtained by creating a developer account and I believe it does not change (until a network change or a firmware update?).
I only have a WiFi plug that I need to control from my laptop at home through the local network without reaching for my phone.
I also created a Github actions workflow to build the project.

@scottsa8
Copy link
Owner

scottsa8 commented Oct 9, 2024

This would theoretically be doable, however would require a lot of work and adjustments to the core functionality of the app. As for now, its a bit out of scope as for where I wanted this to go, but it's definitely something that could be implemented in the future. I'm planning on rewriting the app at some point so I can take a look into it then. In the mean time, you should be able to still control your device by logging into the same account is was setup on, although I haven't tested a smart plug currently so any feedback would be great!

@scottsa8 scottsa8 added the enhancement New feature or request label Oct 9, 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
Projects
None yet
Development

No branches or pull requests

2 participants