I have HA installed on small PC. I use Debian and Python Virtual Env. This is how I configured the service file for HA:
[Unit]
Description=Home Assistant
After=network-online.target mosquitto.service
[Service]
Type=simple
User=%i
ExecStart=/srv/homeassistant/bin/hass -c "/home/homeassistant/.homeassistant"
[Install]
WantedBy=multi-user.target
The problem is that every time I reboot my device, I have the following errors on the Home screen:
Invalid config
The following components and platforms could not be set up:
sensor.mqtt
cover.mqtt
mqtt
binary_sensor.mqtt
Please check your config.
The only way that I found how to fix it is to restart HA service manually. My guess is I need to delay start of the HA service, but I cannot find how to do this.
Can someone help me with this?
Thank you.