silvrr
4
I had similar issues in the past and switched to this method about two months ago. Multiple restarts and even a pi switch without issue.
You can see my actual implementation here:
https://github.com/SilvrrGIT/HomeAssistant/blob/master/configuration.yaml#L155