HS105 plug - iphone kasa app cannot connect it to wifi - potential solution

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.

HS105 plug - iphone kasa app cannot connect it to wifi - potential solution

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.
HS105 plug - iphone kasa app cannot connect it to wifi - potential solution
HS105 plug - iphone kasa app cannot connect it to wifi - potential solution
2021-08-19 02:48:44 - last edited 2021-08-19 02:54:04
Model: HS105  
Hardware Version:
Firmware Version:

Hey Folks,

 

My iPhone app would refuse to connect a HS105 to my network - failing at various stages, from not being able to see any networks, to failing to connect the plug to the network when it could see them.

 

This is a rather technical solution and needs to be done from a computer (pc or mac), but it worked for me out of desperation trying to get the smart plug to connect - you'd need python and pip installed. Posting it here in case it helps anyone.

 

Prerequisites - python3/pip - https://vgkits.org/blog/pip3-windows-howto/

 

(1) Open up the command prompt (windows - run->cmd.exe) or mac terminal (open terminal) and install python-kasa library:

pip3 install python-kasa
Collecting python-kasa
  Downloading python_kasa-0.4.0.dev3-py3-none-any.whl (91 kB)
     |████████████████████████████████| 91 kB 1.9 MB/s

<snip>

 

(2) Join the "open" wifi network for the plug on the PC/Mac

 

(3) run the python interpreter (python3) from the commandline/terminal (python3)

C:\Users\myuser>python3

 

(4) Execute the following, replacing your network SSID and password:
Python 3.8.10 (tags/v3.8.10:3d8993a, May  3 2021, 11:48:03) [MSC v.1928 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import kasa
>>> import asyncio
>>> plug = kasa.SmartPlug("192.168.0.1")
>>> asyncio.run(plug.wifi_join('SSIDGOESHERE', 'PASSWORDGOESHERE'))
{}

 

(5) If successful the plug light should turn green and it'll boot you off the open network

 

(6) Grab your phone and open the kasa app - make sure your phone is on the same network as the plug - the app will detect the plug on the network and ask if you want to add it to be controlled from the app

 

(7) Drink heavily because it shouldn't be this hard. I only persevered because I want to control the app using the python-kasa library and happened to see it could configure the wifi setting as well as turn the plug on and off.

 

  1      
  1      
#1
Options
2 Reply
Re:HS105 plug - iphone kasa app cannot connect it to wifi - potential solution
2021-08-20 02:42:03 - last edited 2021-08-20 02:42:22

@Irate_Manager  Hello, 

Thank you for the detailed sharing. May I have a chance to know the model of router if APP set up failed , we would could keep an eye for similar feedback, many thanks. 

  0  
  0  
#2
Options
Re:HS105 plug - iphone kasa app cannot connect it to wifi - potential solution
2021-08-20 05:51:12

@Solla-topee it's a unifi AP-AC-LR access point and a unifi USG-3P gateway. I very much doubt this is a wifi/router issue - feels like a bug in the iPhone client app to me.

  1  
  1  
#3
Options