#Unable to Shutdown PC using shell_command anymore

1 messages · Page 1 of 1 (latest)

dreamy harness
#

I have a button I've made for Shutdown PC which calls the following in scripts.yaml. This previously worked but must have stopped working recently. I presume there's an update broke it, but i don't recall seeing anything in breaking changes relating to this.

  alias: Reboot AMDPC
  sequence:
  - service: shell_command.restart_amdpc
shutdown_amdpc:
  alias: Shutdown AMDPC
  sequence:
  - service: shell_command.shutdown_amdpc```
night rivet
#

There was nothing

#

There's not enough detail there to understand what may be happening

dreamy harness
#

This is my button

conditions:
  - entity: sensor.sam_amdpc_usernotificationstate
    state_not: unavailable
card:
  type: button
  tap_action:
    action: call-service
    service: shell_command.shutdown_amdpc
    service_data: {}
    target: {}
  entity: script.shutdown_amdpc
  icon: mdi:laptop-off
  hold_action:
    action: call-service
    service: script.abortshutdown_amdpc
    service_data: {}
    target: {}