Today, I have tried installing the RPC Shutdown add-on on my Home Assistant Core 245. However, although the add-on itself installs fine, the add-on does not seem to be working at all. As no logs are being generated anywhere, I have no idea what is happening. Also, no core logs are being generated.
Personally, I was just playing around with the add-on, so this is not really a big problem for me, but this might be a general problem related to the 245 update?
I was finally able to get this working! Turns out I did not read the instructions carefully enough
I presumed the RPC Shutdown logs would generate logs as soon as the addon is started, but it only starts logging when an actual trigger for a shutdown is sent.
So once I triggered a restart using the services as indicated in the documentation, I was able to shut down my pc.
If I try the following on the configuration I get this error message:
computers:
- alias: Laptop
address: 192.168.2.87
credentials: mydomainname\username%mypassword
delay: 0
message: >-
Home Assistant is shutting down this PC. This cannot be canceled. Please
save your work!
[11:12:17] INFO: Read alias: Laptop
[11:12:17] INFO: Shutdown Laptop -> 192.168.2.87
Could not initialise pipe winreg. Error was NT_STATUS_OBJECT_NAME_NOT_FOUND
[11:12:19] ERROR: Shutdown fails ->
If I try the following configuration I get a different error.
computers:
- alias: Laptop
address: 192.168.2.87
credentials: myusername%mypassword
delay: 0
message: >-
Home Assistant is shutting down this PC. This cannot be canceled. Please
save your work!
[11:28:07] INFO: Read alias: Laptop
[11:28:08] INFO: Shutdown Laptop -> 192.168.2.87
Could not connect to server 192.168.2.87
The username or password was not correct.
Connection failed: NT_STATUS_LOGON_FAILURE
Could not connect to server 192.168.2.87
The username or password was not correct.
Connection failed: NT_STATUS_LOGON_FAILURE
[11:28:09] ERROR: Shutdown fails ->
Hi @laca75tn, Did you ever resolve this? I am having similar issues.
Update: I was able to get this working by doing the following
Windows Firewall:
File and Printer Sharing (Echo Request - ICMPv4-In) (Domain and Private)
Remote Service Management (NP-In) (Domain and Private)
Services:
Remote Registry (Service → Automatic)
I am shutting down domain PC’s
computers:
- alias: TEST-PC
address: 192.168.47.172
credentials: DOMAIN\user%pass
delay: 180
message: >-
Home Assistant is shutting down this PC. This cannot be canceled. Please
save your work!