# \[Answered\] home assistant

**URL:** <https://dietpi.com/forum/t/answered-home-assistant/2759>\
**Category:** Troubleshooting\
**Created:** [5 December 2018 09:39 UTC](https://dietpi.com/forum/t/answered-home-assistant/2759 "2018-12-05T09:39:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pakikje](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/p/45deac/32.png) [@pakikje](https://dietpi.com/forum/u/pakikje)\
**Post date:** [5 December 2018 09:39 UTC](https://dietpi.com/forum/t/answered-home-assistant/2759/1 "2018-12-05T09:39:02Z")

</div>

Hello,

I installed Homeasssistant via dietpi-software (runs great). I also updated it several times (v 0.83.1) . I was wondering how homeassistant starts at boot-time/reboot?

In htop i see this: /usr/bin/python3 /usr/local/bin/hass -v -config /opt/homeassistant --pidfile /var/run/hass.pid --daemon

Basically i want to stop/start homeassistant from the command line…

Thnx!

---

<div class="post-metadata">

**Author:** ![k-plan](https://dietpi.com/forum/user_avatar/dietpi.com/k-plan/32/12_2.png) [@k-plan](https://dietpi.com/forum/u/k-plan)\
**Post date:** [5 December 2018 13:34 UTC](https://dietpi.com/forum/t/answered-home-assistant/2759/2 "2018-12-05T13:34:23Z")

</div>

Hi,

> [@](#):
>
> Basically i want to stop/start homeassistant from the command line…

Use dietpi-services

```plaintext
:~# dietpi-services
[OK] DietPi-Services | Root access verified.

 DietPi-Services
─────────────────────────────────────────────────────
 Mode:

[INFO] DietPi-Services | Invalid command
Available options:

 - start/stop/restart/status (all services, known to DietPi)
 - start/stop/restart <servicename> (single service, systemd)
 - systemd_controlled/dietpi_controlled (all services, known to DietPi)
 - enable/disable all (all services, known to DietPi)
 - enable/disable <servicename> (single service, systemd)
 - mask/unmask all (all services, known to DietPi)
 - mask/unmask <servicename> (single service, systemd)

 - You can include/exclude custom services by editing the following file: /DietPi/dietpi/.dietpi-services_include_exclude

```

```plaintext
:~# dietpi-services status

```

```plaintext
:~# dietpi-services stop home-assistant

```

---

<div class="post-metadata">

**Author:** ![pakikje](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/p/45deac/32.png) [@pakikje](https://dietpi.com/forum/u/pakikje)\
**Post date:** [6 December 2018 11:09 UTC](https://dietpi.com/forum/t/answered-home-assistant/2759/3 "2018-12-06T11:09:15Z")

</div>

thnx man!

---

<div class="post-metadata">

**Author:** ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)\
**Post date:** [7 December 2018 01:44 UTC](https://dietpi.com/forum/t/answered-home-assistant/2759/4 "2018-12-07T01:44:42Z")

</div>

Jep, it’s basically a systemd service, so **systemctl start|stop|restart home-assistant** can be used.  
**dietpi-services start|stop|restart \<service\_name\>** is our error handled front-end for this.

The services are started at the end of boot stage from: **/DietPi/dietpi/postboot**  
Sadly you cannot natively disable/mask it, since it is already located at **/etc/systemd/system/home-assistant.service** , where masking would create a symlink to /dev/null usually to prevent the service from being started.  
However you could move it to **/lib/systemd/system/home-assistant.service** , the place which is used by APT packages:  
**mv /etc/systemd/system/home-assistant.service /lib/systemd/system/home-assistant.service**  
Then use:  
**systemctl mask home-assistant** or  
**dietpi-services mask home-assistant**
