Comments (6)
Found a wifi adaptor and got it working. It was requesting a keytype which I finally figured out it needed "3" then it connected instantly. Now I just need to script all this.
Is there a way to include the wifi password in the "join" command?
kasa --host 192.168.0.1 wifi join Senih-IoT --keytype 3
Thank you again!
from python-kasa.
Yep, that worked. Solved. I will close this thread now. You da man!
from python-kasa.
Hi James,
you don't need the credentials for any device belonging to the IOT
family, so your command should actually work fine.
Could you try kasa --host 192.168.0.1 --debug wifi scan
to see if there's some more information about why the scanning fails?
If you run kasa --host 192.168.0.1
, does it display the device state correctly?
Alternatively, if the latter command works, you could try to use join
directly without scanning as you probably know your SSID already :-)
You shouldn't necessarily need another wifi adapter, but you need to be connected to the network the device offers when it's not provisioned. The device itself gives you an IP address when you connect, so I'm wondering if you are connected to the device-opened network when you run these commands at all?
from python-kasa.
Oh, it would not be "another wifi adaptor". This PC doesn't have ANY wifi adaptor installed at all. I seemed to have misplaced the two I have, still looking for them. ugh! So I don't think there is any chance of this working without one. I was originally thinking it may use my APs to search, but that was just a dumb thought. I would have to create a VAP in dd-wrt in order to connect to it and that in itself could be problematic and/or complicated in many ways.
In the end, I need a wifi adaptor to do this for sure. I will get back to you once I find one of them and get it configured.
EDIT: There is also a chance this outlet may just be faulty. It reset again without switching on the pump. Curious.
Thanks!
from python-kasa.
Ohh, so if the device drops back to the factory settings, it will open an open wifi network that can be used to provision the device. So the simplest way to do that is having a separate adapter that can be used to connect to this network :-)
Now, perhaps your device is indeed faulty, so if you have another one I'd give it a try. Good luck!
from python-kasa.
Great! Iirc you can pass --password, but you can verify by using --help which shows the available options.
from python-kasa.
Related Issues (20)
- Allow exposing extra feature metadata HOT 1
- Error when connecting P110 to wi-fi HOT 3
- Support for T300 and T110 HOT 26
- Credentials hash does not work for H100 HOT 6
- Fix --help on subcommands
- S505d invalid authentication HOT 13
- Module queries in dump_devinfo
- Question: Remote control devices from external servers? HOT 1
- Return correct unit for temperature sensor
- Improve typing of Feature HOT 1
- Simplify instance creation API HOT 1
- Cleanup TODO comments
- dumping HTTP POST Body for Tapo Vacuum (RV30 Plus) HOT 10
- New HS220 require authentication HOT 5
- from kasa import Device fails HOT 1
- DeviceConfig dict must always be serializable
- 0.7.0 Release Summary HOT 1
- SMART.TAPOHUB does not work with 0.7.0 dev2 HOT 4
- kasa.exceptions.SmartDeviceException: Communication error on system:set_relay_state HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-kasa.