Hello,
I reboot my RPi then Homeassistant start
I need to restart only one time homeassistant with homeassistant.service restart.
my problem is in condition:
I need: if sensor.last_boot < 50 seconds
then action:
‘- service: homeassistant.restart’
Hello, my card weather forecast api IPMA is every time lost after reboot but if i do an restart in HA it will be ok and display the weather.
I think the service request for weather is to soon when i reboot.
That’s easy. Edit your home-assistant.service file. The file is located in /lib/systemd/system.
Between the [Service] line and the ExecStart line, add a delay, for example, ExecStartPre=-/bin/sleep 30
This will delay the start of Home Assistant for 30 seconds.
After editing the file, you need to reload it with