然后在configuration里面用了下面的# wake on lan
- platform: wake_on_lan
mac: "xx:xx:xx:xx:xx:xx"
name: "bedroom_pc"
host: "192.168.1.192"
turn_off:
service: hassio.addon_stdin
data:
addon: core_rpc_shutdown
input: bedroom_pc
关机我用的是HAOS 带的RPC Shutdown
computers:
- address: 192.168.1.192
alias: bedroom_pc
credentials: administrator%xxxxxxxxxx
delay: 6
message: >-
Home Assistant is shutting down this PC. This cannot be canceled. Please
save your work!