If you are using Home Assistant, either via a virtual machine or directly on a desktop computer, the best way to shut down Home Assistant without causing inconsistencies is to gracefully shut down the host.
Use this command in the CLI:
1 |
host shutdown |
Pay attention, as it may take a few moments until the command is processed and a visual cue is visible on the screen.