Hi all
I am using HASSbian now and wondering how to delay the autostart of HASS everytime the Raspberry Pi gets rebooted, for example by 1-2 minute wait.
The reason behind it because I have an MQTT docker container that needs to load up first otherwise HASS throw an error as it fails to connect to MQTT container.
Thanks!
Answering my own question. simply adding the service you want to load prior to HASS in systemd. Here’s my config below, I added docker.service to “After=”
Hope this helps someone in the future
# This is a simple service file for systems with systemd to tun HA as user.
#
# For details please check https://home-assistant.io/getting-started/autostart/
#
[Unit]
Description=Home Assistant for %i
After=syslog.target network.target docker.service
[Service]
Type=simple
User=%i
ExecStart=/srv/homeassistant/bin/hass
SendSIGKILL=no
[Install]
WantedBy=multi-user.target