Hello,
Since the last update to 0.108.9 all my sensors, switches, lights are unavailable.
I don’t know if it is specific to this version but I encountered it when updating from 0.108.8 to 0.108.9. Does anyone has the same problem? Should I try to reinstall HA with previous version?
EDIT: It isn’t a problem with 0.108.9. When I go back to an older version the problem still remains.
MQTT is up and running (tested with MQTTfx).
This are my HA logs:
2020-04-27 06:56:43 WARNING (SyncWorker_8) [homeassistant.components.influxdb] Database host is not accessible due to 'HTTPConnectionPool(host='poseidon', port=8086): Max retries exceeded with url: /write?db=home_assistant (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fd216130d10>: Failed to establish a new connection: [Errno -2] Name does not resolve'))', please check your entries in the configuration file (host, port, etc.) and verify that the database exists and is READ/WRITE. Retrying again in 60 seconds.
2020-04-27 06:56:45 ERROR (MainThread) [homeassistant.components.mqtt] Failed to connect due to exception: [Errno -2] Name does not resolve
2020-04-27 06:56:45 WARNING (MainThread) [homeassistant.config_entries] Config entry for mqtt not ready yet. Retrying in 5 seconds.
2020-04-27 06:56:46 ERROR (MainThread) [homeassistant.components.switch] Error while setting up mqtt platform for switch
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 186, in _async_setup_platform
await asyncio.gather(*pending)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 295, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 445, in _async_add_entity
await entity.async_added_to_hass()
File "/usr/src/homeassistant/homeassistant/components/mqtt/switch.py", line 134, in async_added_to_hass
await self._subscribe_topics()
File "/usr/src/homeassistant/homeassistant/components/mqtt/switch.py", line 188, in _subscribe_topics
"qos": self._config[CONF_QOS],
File "/usr/src/homeassistant/homeassistant/components/mqtt/subscription.py", line 91, in async_subscribe_topics
await requested.resubscribe_if_necessary(hass, current)
File "/usr/src/homeassistant/homeassistant/components/mqtt/subscription.py", line 47, in resubscribe_if_necessary
hass, self.topic, self.message_callback, self.qos, self.encoding
File "/usr/src/homeassistant/homeassistant/components/mqtt/__init__.py", line 447, in async_subscribe
encoding,
File "/usr/src/homeassistant/homeassistant/components/mqtt/__init__.py", line 876, in async_subscribe
await self._async_perform_subscription(topic, qos)
File "/usr/src/homeassistant/homeassistant/components/mqtt/__init__.py", line 916, in _async_perform_subscription
_raise_on_error(result)
File "/usr/src/homeassistant/homeassistant/components/mqtt/__init__.py", line 1027, in _raise_on_error
f"Error talking to MQTT: {mqtt.error_string(result_code)}"
homeassistant.exceptions.HomeAssistantError: Error talking to MQTT: The client is not currently connected.
2020-04-27 06:56:46 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up mqtt platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 186, in _async_setup_platform
await asyncio.gather(*pending)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 295, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 445, in _async_add_entity
await entity.async_added_to_hass()
File "/usr/src/homeassistant/homeassistant/components/mqtt/sensor.py", line 122, in async_added_to_hass
await self._subscribe_topics()
File "/usr/src/homeassistant/homeassistant/components/mqtt/sensor.py", line 174, in _subscribe_topics
"qos": self._config[CONF_QOS],
File "/usr/src/homeassistant/homeassistant/components/mqtt/subscription.py", line 91, in async_subscribe_topics
await requested.resubscribe_if_necessary(hass, current)
File "/usr/src/homeassistant/homeassistant/components/mqtt/subscription.py", line 47, in resubscribe_if_necessary
hass, self.topic, self.message_callback, self.qos, self.encoding
File "/usr/src/homeassistant/homeassistant/components/mqtt/__init__.py", line 447, in async_subscribe
encoding,
File "/usr/src/homeassistant/homeassistant/components/mqtt/__init__.py", line 876, in async_subscribe
await self._async_perform_subscription(topic, qos)
File "/usr/src/homeassistant/homeassistant/components/mqtt/__init__.py", line 916, in _async_perform_subscription
_raise_on_error(result)
File "/usr/src/homeassistant/homeassistant/components/mqtt/__init__.py", line 1027, in _raise_on_error
f"Error talking to MQTT: {mqtt.error_string(result_code)}"
homeassistant.exceptions.HomeAssistantError: Error talking to MQTT: The client is not currently connected.
2020-04-27 06:56:51 ERROR (MainThread) [homeassistant.components.mqtt] Failed to connect due to exception: [Errno -2] Name does not resolve
2020-04-27 06:56:51 WARNING (MainThread) [homeassistant.config_entries] Config entry for mqtt not ready yet. Retrying in 10 seconds.
2020-04-27 06:57:02 ERROR (MainThread) [homeassistant.components.mqtt] Failed to connect due to exception: [Errno -2] Name does not resolve
2020-04-27 06:57:02 WARNING (MainThread) [homeassistant.config_entries] Config entry for mqtt not ready yet. Retrying in 20 seconds.
2020-04-27 06:57:23 ERROR (MainThread) [homeassistant.components.mqtt] Failed to connect due to exception: [Errno -2] Name does not resolve
2020-04-27 06:57:23 WARNING (MainThread) [homeassistant.config_entries] Config entry for mqtt not ready yet. Retrying in 40 seconds.