李子

小K智能插座命令行控制
0(关)/1(开)插座电源控制:root@OpenWrt:/sys/class/leds# echo 0 >...
扫描右侧二维码阅读全文
18
2018/09

小K智能插座命令行控制


0(关)/1(开)
插座电源控制:
root@OpenWrt:/sys/class/leds# echo 0 > /sys/class/leds/tp-link:blue:relay/brightness
root@OpenWrt:/sys/class/leds# echo 1 > /sys/class/leds/tp-link:blue:relay/brightness
插座小夜灯控制:
echo 0 > /sys/class/leds/i-konke:yellow:light/brightness
echo 1 > /sys/class/leds/i-konke:yellow:light/brightness
插座USB口控制:
echo 0 > /sys/class/leds/i-konke:green:usb/brightness
echo 0 > /sys/class/leds/i-konke:green:usb/brightness
插座USB口定时设置:
/etc/dropbear/accessory/timer/online
格式:
1022 y 2017-07-03-19:00:00 y 2017-07-03-04:10:00 y 2,3,4,5,6 usb

Last modification:September 18th, 2018 at 02:45 am
If you think my article is useful to you, please feel free to appreciate

Leave a Comment