下载并安装 Airytec Switch Off,如果下载的是便携版,解压即可
配置 Airytec Switch Off 自启动
shell:startup
按回车跳转到启动目录。配置 Airytec Switch Off 远程页面
在浏览器中访问 http://IP:8000
出现以下页面则代表配置成功
switch:
- platform: wake_on_lan
name: pc_a # 电脑别名
mac: "00:XX:XX:XX:XX:X1" # 电脑MAC
host: "192.168.X.XX1" # 电脑IP
turn_off:
service: shell_command.turn_off_pc_a
- platform: wake_on_lan
name: pc_b
mac: "00:XX:XX:XX:XX:X2"
host: "192.168.X.XX2"
turn_off:
service: shell_command.turn_off_pc_b
shell_command:
turn_off_pc_a: 'curl -X GET http://192.168.X.XX1:8000/?action=System.Shutdown'
turn_off_pc_b: 'curl -X GET http://192.168.X.XX2:8000/?action=System.Shutdown'