程序员最近都爱上了这个网站  程序员们快来瞅瞅吧!  it98k网:it98k.com

本站消息

站长简介/公众号

  出租广告位,需要合作请联系站长

+关注
已关注

分类  

暂无分类

标签  

暂无标签

日期归档  

暂无数据

Unable to connect to Kasa Smart Plug via tp-link

发布于2025-01-04 14:55     阅读(553)     评论(0)     点赞(18)     收藏(5)


I have one Kasa Smart Plug HS103P4. Its connected to WiFi and working. I have registered it in TP Link and Kasa Smart app on Android Device. I used python-kasa to discover the device and get its host IP which is 192.168.x.x.

Now I want to connect to this smart plug in a different country. I dont want to use Mobile application, alexa or any other software for this.

How can I access this smartplug.

I tried using tp-link-cloud-api, but I am getting error.

import requests


payload = {
        "method": "login",
        "params": {
            "appType": "Kasa_Android",
            "cloudUserName": kUser,
            "cloudPassword": kSecret,
            "terminalUUID": str(uuid.uuid4())
        }
}

response = requests.post(url="https://wap.tplinkcloud.com/", json=payload)
obj = response.json()
print(obj)

Response : {'error_code': -23003, 'msg': 'App version is too old'}

NOTE : The kUser and kSecret are same as the one user for Registering the device in TP link and Kasa Smart App.

Please guide me on this and ways to connect to this Smart Plug.


解决方案


暂无回答



所属网站分类: 技术文章 > 问答

作者:黑洞官方问答小能手

链接:https://www.pythonheidong.com/blog/article/2046752/3d10abdc897e476bd165/

来源:python黑洞网

任何形式的转载都请注明出处,如有侵权 一经发现 必将追究其法律责任

18 0
收藏该文
已收藏

评论内容:(最多支持255个字符)