控客智能插座konkeIO 使用方法,局域网小K插座控制。
控客IO下载地址:
https://github.com/YinHangCode/ikonkeIO
控客IO脚本使用方法:
Then, after running the discovery command: sh ikonkeIO.sh –discover 192.168.1.255 (where the IP address would be your broadcast IP address), it will find all ikonke outlets available on your network, example output:
broadcast address: 192.168.1.255, scan ikonke device….
type: mini_w
ip: 192.168.1.XXX
mac: 11-22-33-44-55-66
password: 12345678
type: mini_w
ip: 192.168.1.YYY
mac: aa-bb-cc-dd-ee-ff
password: 87654321
控客IO控制和取得插座状态命令:
sh ikonkeIO.sh -C mini_w 192.168.1.XXX 11-22-33-44-55-66 ‘12345678’ setRelay open
The above command will turn the relay switch to ON and the command output would say success
sh ikonkeIO.sh -C mini_w 192.168.1.XXX 11-22-33-44-55-66 ‘12345678’ setRelay close
The above command will turn the relay switch to OFF and the command output would say success
sh ikonkeIO.sh -C mini_w 192.168.1.XXX 11-22-33-44-55-66 ‘12345678’ getRelay
The above command will ask the switch for its current status. The command output would say either open (ON) or close (OFF)