Giter VIP home page Giter VIP logo

Comments (6)

lacojim avatar lacojim commented on July 24, 2024 1

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.

lacojim avatar lacojim commented on July 24, 2024 1

Yep, that worked. Solved. I will close this thread now. You da man!

from python-kasa.

rytilahti avatar rytilahti commented on July 24, 2024

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.

lacojim avatar lacojim commented on July 24, 2024

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.

rytilahti avatar rytilahti commented on July 24, 2024

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.

rytilahti avatar rytilahti commented on July 24, 2024

Great! Iirc you can pass --password, but you can verify by using --help which shows the available options.

from python-kasa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.