switch:
- platform: wake_on_lan
name: "Pisces-PC"
mac_address: "1C:6F:65:A3:7C:11"
turn_off:
service: shell_command.turn_off_pc
shell_command:
turn_off_pc: 'curl -X GET [url]http://192.168.1.10:8000/?action=System.Shutdown'[/url]
代码如上,每次开启后,过几秒,按钮状态就会恢复成关闭。请问如何设置不自动跳?
|