Again and again Entity not found Error for all the entities

Hello, I am using Hassbian from almost 2 month now, its a great platform. I really like its simplicity and amazing features. But there is one biggest challenge I am facing from last few days. My all the entities go “Not available” after running for few hours, I have to restart my Hassbian almost 7-8 times a day.

Here is how it looks like.

I don’t understand the exact issue. But it seems like, there is some problem with MQTT connection or something related to HTTPS. I have installed DuckDNS with LetsEncrypt SSL certificate. Which can be an issue to connect my Life360 I guess. Here is my Log errors.

File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/mqtt/switch.py", line 113, in async_added_to_hass
    await self._subscribe_topics()
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/mqtt/switch.py", line 164, in _subscribe_topics
    'qos': self._config.get(CONF_QOS)}})
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/mqtt/subscription.py", line 83, in async_subscribe_topics
    await requested.resubscribe_if_necessary(hass, current)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/mqtt/subscription.py", line 44, in resubscribe_if_necessary
    self.qos, self.encoding
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/mqtt/__init__.py", line 319, in async_subscribe
    qos, encoding)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/mqtt/__init__.py", line 701, in async_subscribe
    await self._async_perform_subscription(topic, qos)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/mqtt/__init__.py", line 736, in _async_perform_subscription
    _raise_on_error(result)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/mqtt/__init__.py", line 821, in _raise_on_error
    'Error talking to MQTT: {}'.format(mqtt.error_string(result_code)))
homeassistant.exceptions.HomeAssistantError: Error talking to MQTT: The client is not currently connected.
2019-03-19 10:28:20 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
    result = coro.send(None)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 350, in _async_add_entity
    await entity.async_added_to_hass()
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/mqtt/switch.py", line 113, in async_added_to_hass
    await self._subscribe_topics()
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/mqtt/switch.py", line 164, in _subscribe_topics
    'qos': self._config.get(CONF_QOS)}})
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/mqtt/subscription.py", line 83, in async_subscribe_topics
    await requested.resubscribe_if_necessary(hass, current)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/mqtt/subscription.py", line 44, in resubscribe_if_necessary
    self.qos, self.encoding
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/mqtt/__init__.py", line 319, in async_subscribe
    qos, encoding)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/mqtt/__init__.py", line 701, in async_subscribe
    await self._async_perform_subscription(topic, qos)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/mqtt/__init__.py", line 736, in _async_perform_subscription
    _raise_on_error(result)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/mqtt/__init__.py", line 821, in _raise_on_error
    'Error talking to MQTT: {}'.format(mqtt.error_string(result_code)))
homeassistant.exceptions.HomeAssistantError: Error talking to MQTT: The client is not currently connected.
2019-03-19 10:28:20 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
    result = coro.send(None)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 350, in _async_add_entity
    await entity.async_added_to_hass()
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/mqtt/switch.py", line 113, in async_added_to_hass
    await self._subscribe_topics()
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/mqtt/switch.py", line 164, in _subscribe_topics
    'qos': self._config.get(CONF_QOS)}})
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/mqtt/subscription.py", line 83, in async_subscribe_topics
    await requested.resubscribe_if_necessary(hass, current)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/mqtt/subscription.py", line 44, in resubscribe_if_necessary
    self.qos, self.encoding
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/mqtt/__init__.py", line 319, in async_subscribe
    qos, encoding)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/mqtt/__init__.py", line 701, in async_subscribe
    await self._async_perform_subscription(topic, qos)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/mqtt/__init__.py", line 736, in _async_perform_subscription
    _raise_on_error(result)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/mqtt/__init__.py", line 821, in _raise_on_error
    'Error talking to MQTT: {}'.format(mqtt.error_string(result_code)))
homeassistant.exceptions.HomeAssistantError: Error talking to MQTT: The client is not currently connected.
2019-03-19 10:28:20 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
    result = coro.send(None)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 350, in _async_add_entity
    await entity.async_added_to_hass()
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/mqtt/switch.py", line 113, in async_added_to_hass
    await self._subscribe_topics()
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/mqtt/switch.py", line 164, in _subscribe_topics
    'qos': self._config.get(CONF_QOS)}})
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/mqtt/subscription.py", line 83, in async_subscribe_topics
    await requested.resubscribe_if_necessary(hass, current)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/mqtt/subscription.py", line 44, in resubscribe_if_necessary
    self.qos, self.encoding
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/mqtt/__init__.py", line 319, in async_subscribe
    qos, encoding)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/mqtt/__init__.py", line 701, in async_subscribe
    await self._async_perform_subscription(topic, qos)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/mqtt/__init__.py", line 736, in _async_perform_subscription
    _raise_on_error(result)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/mqtt/__init__.py", line 821, in _raise_on_error
    'Error talking to MQTT: {}'.format(mqtt.error_string(result_code)))
homeassistant.exceptions.HomeAssistantError: Error talking to MQTT: The client is not currently connected.
2019-03-19 10:28:29 WARNING (MainThread) [homeassistant.components.sensor] Setup of platform yr is taking over 10 seconds.
2019-03-19 10:28:29 WARNING (MainThread) [homeassistant.components.sensor] Setup of platform darksky is taking over 10 seconds.
2019-03-19 10:28:29 ERROR (MainThread) [homeassistant.components.sensor.yr] Retrying in 20 minutes: 
2019-03-19 10:28:38 ERROR (Thread-16) [custom_components.device_tracker.life360] ConnectTimeout: HTTPSConnectionPool(host='api.life360.com', port=443): Max retries exceeded with url: /v3/circles.json (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x69234bd0>, 'Connection to api.life360.com timed out. (connect timeout=9.0)'))
2019-03-19 10:28:38 ERROR (Thread-16) [custom_components.device_tracker.life360] Life360 communication failed!
2019-03-19 10:28:38 ERROR (MainThread) [homeassistant.components.device_tracker] Error setting up platform life360
2019-03-19 10:29:19 ERROR (MainThread) [homeassistant.components.sensor] Setup of platform darksky is taking longer than 60 seconds. Startup will proceed without waiting any longer.
2019-03-19 10:29:36 ERROR (MainThread) [homeassistant.components.hue] Error connecting to the Hue bridge at 192.168.1.242
2019-03-19 10:29:36 ERROR (MainThread) [homeassistant.components.hue] Error connecting to the Hue bridge at 192.168.1.242
2019-03-19 10:29:36 ERROR (MainThread) [homeassistant.components.hue] Error connecting to the Hue bridge at 192.168.1.243
2019-03-19 10:29:36 ERROR (MainThread) [homeassistant.components.hue] Error connecting to the Hue bridge at 192.168.1.243
2019-03-19 10:29:36 ERROR (MainThread) [homeassistant.components.hue] Error connecting to the Hue bridge at 192.168.1.240
2019-03-19 10:29:36 ERROR (MainThread) [homeassistant.components.hue] Error connecting to the Hue bridge at 192.168.1.240
2019-03-19 10:41:51 ERROR (Thread-9) [homeassistant.components.sensor.darksky] Unable to connect to Dark Sky: HTTPSConnectionPool(host='api.darksky.net', port=443): Max retries exceeded with url: /forecast/5c6045f4217e91131870800bada01d9f/22.6800167,75.8951551?units=si&lang=en (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x6c3e0ef0>: Failed to establish a new connection: [Errno 110] Connection timed out',))

I seems like MQTT broker goes offline and Hassbian lost its connection with it. I am not sure the reason behind it.

Looking forward to solve this problem.

Thank you!