Home Assistant hidden service unreachable on raspberry pi Tor

Following is what I have setup on my Raspberry Pi 3 model B

Raspbian GNU/Linux 8 (jessie)
Home Assistant 0.51.2
tor v0.2.5.14
Problem:

I am able to access Home Assistant locally perfectly fine i.e. by using 192.168.31.116:8123 But when I try to use my Home Assistant’s .onion address I am able to only access it for first couple of minutes after I restart tor. After few moments, if I try to access same .onion address it is either unreachable or it time outs on tor browser.

After which if I restart tor on raspberry pi, I am again able to access .onion address for some time and again problem repeats and .onion is not accessible.

One more observation is even though after sometime .onion address is no more accessible but when I check the status of tor service on raspberry pi (sudo systemctl status tor) it still shows as running.

Following is my hidden service config in torrc: HiddenServiceDir /var/lib/tor/homeassistant/ HiddenServicePort 80 127.0.0.1:8123 HiddenServiceAuthorizeClient stealth haremote1

Your help on my issue would be greatly appreciated.

Bumping this thread, please help if you have experienced the same issue and were able to resolve it.