安装opkg
tar xz -C / -f /root/opkg-rc3.tar.gz
安装at
opkg update && opkg install at
root@OpenWrt:~# /etc/init.d/atd enable
root@OpenWrt:~# /etc/init.d/atd start
更改开关指示灯默认状态
1
2
3
4
5
6
7
8
9
10
11
For the stock firmware, you can configure the LEDs to act on certain events. Blink blue with network traffic:
uci set system.@led[0].name=wwan-link
uci set system.@led[0].trigger=netdev
uci set system.@led[0].dev=wlan0
uci set system.@led[0].mode='link tx rx'
uci commit system
/etc/init.d/led restart
The relay is tied to the red LED, so setting the LED to default ON will make the relay ON after bootup:
uci set system.@led[1].default=1
uci commit system
/etc/init.d/led restart
Current Features:
-Voice Commands, Integrated with Google Now.
-HomeScreen Widgets for Lollipop and Marshmellow. (They should work now)(6/13/2015)
-System Alarm Clock Integration.
-WIFI Triggers (6/7/2015)
-SSH Integration (6/13/2015)(Bug fixes 7/8/2015)
-DIMMER option for KK version 2. .(6/13/2015)
-Android Wear Integration (voice commands and wifi triggers)
-You can send custom SSH commands.(7/8/2015)
-You can deploy the JSON script from the app to any KK plug.(7/8/2015)
-AutoReboot script (pings a specific IP, if not available the plug will reboot) useful to ping router.
-Follow Me Script (pings a specific IP, if not available the plug will shutdown) useful to autoshutdown when you leave the house(Using the your phone IP).
-Floating Widget to access the KK's.
-Install OPKG bins into your KK.
-Deploy micropython bins into your KK
-LIFX Bulbs integration with all triggers (08/Oct/2016)
-WOL integration with all Triggers (09/16/2016)