Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Question: Remote control devices from external servers? #914

Closed
sooswastaken opened this issue May 13, 2024 · 1 comment
Closed

Question: Remote control devices from external servers? #914

sooswastaken opened this issue May 13, 2024 · 1 comment

Comments

@sooswastaken
Copy link

I am trying to control my devices with a custom voice assistant that will run on an external server. Is there a way to discover devices or connect them when not on the same network?

Thank you.

@rytilahti
Copy link
Member

Yes, it is possible. The older devices use 9999/udp for discovery and 9999/tcp for communications. For newer devices that require authentication, the discovery port is 20002/udp with communications done via 80/tcp.
If you don't need discovery, you can pass the parameters for both protocols manually.

You didn't mention if you are planning to use the API or the cli tool, but for API access you can use SmartDevice.connect() and pass DeviceConfig with the wanted parameters.

@python-kasa python-kasa locked and limited conversation to collaborators May 14, 2024
@rytilahti rytilahti converted this issue into discussion #917 May 14, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants