Noob trying to set up RPC Shutdown of a Win 10 computer, having an issue getting past basic step 1

I started here, but these instructions didn’t work out well at all.

Failed to save add-on configuration, does not match regular expression [1]$. Got {‘computers’: [{‘address’: ‘X.X.X.XX’, ‘alias’: ‘KID’S PC’, ‘credentials’: NONE’', ‘delay’: 0, ‘message’: ‘Home Assistant is shutting down this PC. This cannot be canceled. Please save your work!’}]}*

The target PC does NOT have a user password set (yet), so… how does this work? I can’t seem to get past this basic step.


  1. \w- ↩︎

I’m not 100% sure I have this right, but I got past the above issue.

You can add a button to the Home Assistant Lovelace UI by click on the three dot menu in the upper right corner > Edit Dashboard > Add Card > Button Card > as entity select your newly created switch (i.e. switch.a3_pc) > Save

I don’t see a “three dot menu” anywhere, nor anything to add a card.

That could be the problem.

Sometimes it saves without a password, sometimes it does.

I believe I’ve added the IP/MAC addresses of the two computers (trying this on my Win 11 computer first). Saved and restarted RPC Shutdown.

Now… I don’t see how to add a card to the UI. When I click on the edit tool in overview, I see the Edit Dashboard pop-up, but it only shows “raw configuration editor” and “take control” as options. Am I even in the right spot to add a card, per the instructions?

Seems you still use the auto generated dashboard, so you need to take control first.

1 Like

Is that going to screw anything up or make it harder to configure things? I don’t have a ton of things to add so far, just a bunch of Shelly relay/power devices and some Z-Wave smoke/CO detectors, plus TV/AVR devices. I’ve only had a HA Green for maybe a week now.

You could create a template switch, example :

  - platform: template
    switches:
      desktop_francis:
        value_template: "{{ is_state('binary_sensor.desktopfrancis', 'on') }}"
        turn_on:
          - service: wake_on_lan.send_magic_packet
            data:
              mac: '9C:5C:8E:C0:24:B9'
        turn_off:
          - service: hassio.addon_stdin
            data:
              addon: core_rpc_shutdown
              input: PC47
        unique_id: 6d987d00-b390-4f57-ad25-9ca17ddb8958    

This should be visible on the auto-generated dashboard.

‘binary_sensor.desktopfrancis’ is a ping sensor.

Or just go the easy route and use the HASS agent and do it that way.

1 Like

Giving that a shot. It sounds easy, but I ran into some problems with setting it up. Now I’m not sure how well taking control is working for me as n00b, trying to set up new devices that had been pretty easy to do before taking control.

Heh… In case anyone else tries to do this, the answer is yes. I have to start over from scratch. Taking control was a mistake, as I don’t know enough about what I am doing. Lots of things are broken now.