Open ChopOMatic opened 7 years ago
Have you tried: python tplink-smartplug.py –t "10.0.0.127" –c "on"
I've tried several commands, but not specifically "on." I've tried with and without quotes.
I'm not quite sure what might be the issue, maybe it could be that your dash looks like "–" while my keyboard's dash looks like "-", so incorrect dash maybe? Try this: python tplink-smartplug.py -t 10.0.0.127 -c on
If that doesn't work, maybe you're target is incorrect? For example my smart plug's ip on the network is 192.168.0.28. You can find it if you connect to your router on 192.168.0.1. Try that and see if it helps.
Standard hyphen to the right of the "0" key up top, no shift.
I'm positive on the IP address. In fact, I've tried it with two different of these switches, with and without prefacing the command with 'python.' Same error every time.
BTW, Kasa controls them fine. They respond to pings. Even the TP-Link module in Home Assistant controls them without a hitch.
Big thx for responding. I appreciate it.
Ok. It's cool man!
Have you changed the code or something?
Nope, using it exactly as downloaded from here. :(
Which version of python are you using and which OS do you have?
Win10-64, Python 2.7
What am I doing wrong here?
tplink-smartplug.py –t 10.0.0.127 –c system
usage: tplink-smartplug.py [-h] -t (-c | -j )
tplink-smartplug.py: error: argument -t/--target is required