没试过,但我觉得你这么写是完全不对的,试试改成这样
switch:
- platform: wake_on_lan
name: "Masterchen_PC"
mac: "98:FA:9B:62:23:EA"
host: "10.0.0.20"
turn_off:
service: shell_command.turn_off_pc1
- platform: wake_on_lan
name: "CZZ-DS918"
mac: "00:11:32:BA:55:C1"
host: "10.0.0.4"
turn_off:
service: shell_command.turn_off_pc2
shell_command:
turn_off_pc1: 'curl -X GET http://10.0.0.20:8000/?action=System.Shutdown'
turn_off_pc2: 'curl -X GET http://10.0.0.4:5000/?action=System.Shutdown'
|