42wim / plugctl

Smartplug Maginon controller
GNU General Public License v2.0
5 stars 4 forks source link

Can't Connect #8

Open chriswalker01 opened 5 years ago

chriswalker01 commented 5 years ago

Hi, Thanks for your work on this. It's exactly what I'm after.

Is there any prep work I need to do on the device itself, or am I missing something?

I've tried a few commands but it says it "can't connect".

root@openhab2.walker.home:~/.go/bin$ ping -c 2 192.168.8.76 PING 192.168.8.76 (192.168.8.76) 56(84) bytes of data. 64 bytes from 192.168.8.76: icmp_seq=1 ttl=255 time=6.09 ms 64 bytes from 192.168.8.76: icmp_seq=2 ttl=255 time=5.97 ms

root@openhab2.walker.home:~/.go/bin$ ./plugctl -ip 192.168.8.76 -show info 2019/07/04 20:39:26 can't connect

chriswalker01 commented 5 years ago

Is there any need to get a key or something, similar to https://github.com/codetheweb/tuyapi ? It appears to be listening on port 6668, so I'm wondering if something has changed in the latest firmware.

root@openhab2.walker.home:~$ telnet 192.168.8.76 6668 Trying 192.168.8.76... Connected to 192.168.8.76. Escape character is '^]'.

42wim commented 5 years ago

Are you sure this is the same device? it's quite old now. It expects being to able to telnet on port 23