Schedule Shutdown of HA via service/automation

Hello, how can I call a service (for the purposes of running it in an automation) that would do the equivalent of the following: Settings > Hardware > three dots > Shutdown.

have you even tried?
it is just in the drop down list of actions….

description: ""
mode: single
trigger:
  - platform: time
    at: "10:00:00"
condition: []
action:
  - service: hassio.host_shutdown
    data: {}

2 Likes

Ah ha! I did search these forums and saw someone else ask how to do this two years ago and it went unanswered and couldn’t find the option but I do see it now. Thank you!!!