stuartdd / TP-Link_HS100-Controller

Drive the Smart Switch locally from any app in your network.
0 stars 0 forks source link

Not working for Me #1

Open gavspav opened 5 years ago

gavspav commented 5 years ago

I have an HS100 switch - two infact - but I can't get them to work with your java app. Typing java external/HS100Controller ipaddress returns 2 blank lines.

Typing java external/HS100Controller help returns:

Error: Required ip address is missing or invalid. Parameters: Port: -p1234 Will use port 1234. Default value is 9999. Action: ON, OFF or STATUS. Default is STATUS. Address: 192.168.1.1 IP Address of the switch. Required. Ordering of parameters is not important. All are case insensitive. Examples: 192.168.1.9 192.168.1.9 OFF On 192.168.1.9 -p9999 192.168.1.9 status

I guess this proves my paths are correct (does it?)

Any ideas??

stuartdd commented 5 years ago

Check that HS100Controller.class exists in the external directory. If not then compile using: javac external/HS100Controller.java This assumes you have the Java JDK on your pc. If not install JDK 1.8 from Oracle https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html Once you have HS100Controller.class in the external directory.

You need to be in the dir that contains the external directory. Try: java external/HS100Controller 192.168.1.9 status java external/HS100Controller 192.168.0.9 status ...

If you gt a response you are done. java external/HS100Controller 192.168.1.9 ON java external/HS100Controller 192.168.1.9 OFF java external/HS100Controller ON 192.168.1.9

I believe the default port is 9999. If not then add -pNNNN for the specific port.

That is the only thing I can think of.

The thing detirmins it's own ip address and port. Mine was 192.168.1.9 9999. Note 192.168.1 is defined by your router. Check it's confguration. It may be 192.168.0. The last digit (9) is decided by the unit. Your router connected devices might show the device's ip. Mine would not and I had to google the answer for hours!

Good luck:-)

gavspav commented 5 years ago

Hmm I don't know what is going on! I've got the ip address from the router settings, recompiled the class But I get no response. Smart plugs too smart for me? Gavin

On Fri, Sep 20, 2019 at 8:55 PM Stuart notifications@github.com wrote:

Check that HS100Controller.class exists in the external directory. If not then compile using: javac external/HS100Controller.java This assumes you have the Java JDK on your pc. If not install JDK 1.8 from Oracle

https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html Once you have HS100Controller.class in the external directory.

You need to be in the dir that contains the external directory. Try: java external/HS100Controller 192.168.1.9 status java external/HS100Controller 192.168.0.9 status ...

If you gt a response you are done. java external/HS100Controller 192.168.1.9 ON java external/HS100Controller 192.168.1.9 OFF java external/HS100Controller ON 192.168.1.9

I believe the default port is 9999. If not then add -pNNNN for the specific port.

That is the only thing I can think of.

The thing detirmins it's own ip address and port. Mine was 192.168.1.9

  1. Note 192.168.1 is defined by your router. Check it's confguration. It may be 192.168.0. The last digit (9) is decided by the unit. Your router connected devices might show the device's ip. Mine would not and I had to google the answer for hours!

Good luck:-)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/stuartdd/TP-Link_HS100-Controller/issues/1?email_source=notifications&email_token=ABLAYLXQRAOPMT3EYXJGKODQKUTEHA5CNFSM4IYWBOKKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7HXF5I#issuecomment-533689077, or mute the thread https://github.com/notifications/unsubscribe-auth/ABLAYLTIZ6M4UFGYUVKILK3QKUTEHANCNFSM4IYWBOKA .

stuartdd commented 5 years ago

Sorry. It took me ages as well. Dont give up. There were the articles I refered to in the Read.me, perhaps they can help.

Just a note. I have stopped using mine. It is in the box after reading the security issues associated with the device.

I did some searching and reading and decided to look at other devices. Sorry!