本帖最后由 dscao 于 2021-4-12 23:46 编辑
现在新版格式有点变化: mac_address 改为 mac
switch:
- platform: wake_on_lan
mac: xx:xx:xx:xx:xx:xx
host: 192.168.1.123
name: "PC1"
turn_off:
service: hassio.addon_stdin
data:
addon: core_rpc_shutdown
input: PC1
- platform: wake_on_lan
mac: xx:xx:xx:xx:xx:xx
host: 192.168.1.124
name: "PC2"
turn_off:
service: hassio.addon_stdin
data:
addon: core_rpc_shutdown
input: PC2
刚刚解决windows10的关机,如果遇到:
rpc_shutdown addon error NT_STATUS_OBJECT_NAME_NOT_FOUND
需要打开windows中的服务:RemoteRegistry
遇到:
rpc_shutdown addon:
Shutdown of remote machine failed
result was: WERR_CALL_NOT_IMPLEMENTED
ERROR: Shutdown fails ->
需要打开windows10的防火墙允许上面的服务通信
还有这个问题就再加一个注册表值:
|