Dear all.
First of all, thanks in advance for any help i would really appreciate it.
I’m trying to configure haa with my own mosquitto. The configuration is very simple, just added this to the configuration.yaml:
mqtt:
broker: 192.168.15.100
port: 1883
client_id: home-assistant
keepalive: 60
protocol: 3.1
I’ve tried this on a fresh raspian install following the documentation, i have also tried it on a fresh hassbian install and it seems to break the loader.py module in some way in both cases.
After this change i can’t start hass again, even if i remove the mqtt configuration, the only way to fix it is by complete removing the .homeassistant directory.
I tried adding a switch but failed in the same way, this are the offending lines:
switch:
platform: mqtt
name: “MQTT”
state_topic: “inTopic”
command_topic: “inTopic”
payload_on: “1”
payload_off: “0”
There’s no way to start hass again unless i remove the mentioned directory.
In both cases (raspbian and hassbian) the log shows problems loading every module available:
homeassistant@hassbian:~/.homeassistant $ cat home-assistant.log
17-03-21 02:24:18 ERROR (MainThread) [homeassistant.loader] Error loading homeassistant.components.frontend. Make sure all dependencies are installed
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/loader.py", line 141, in get_component
module = importlib.import_module(path)
File "/usr/lib/python3.4/importlib/__init__.py", line 109, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 2254, in _gcd_import
File "<frozen importlib._bootstrap>", line 2237, in _find_and_load
File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked
File "<frozen importlib._bootstrap>", line 1129, in _exec
File "<frozen importlib._bootstrap>", line 1471, in exec_module
File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/frontend/__init__.py", line 12, in <module>
from homeassistant.components import api, group
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/api.py", line 26, in <module>
from homeassistant.helpers.state import AsyncTrackStates
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/state.py", line 8, in <module>
from homeassistant.components.media_player import (
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/media_player/__init__.py", line 24, in <module>
from homeassistant.components.http import HomeAssistantView, KEY_AUTHENTICATED
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/http/__init__.py", line 34, in <module>
from .static import FILE_SENDER, CACHING_FILE_SENDER, staticresource_middleware
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/http/static.py", line 6, in <module>
from aiohttp.file_sender import FileSender
ImportError: No module named 'aiohttp.file_sender'
17-03-21 02:24:18 ERROR (MainThread) [homeassistant.loader] Unable to find component frontend
17-03-21 02:24:18 ERROR (MainThread) [homeassistant.setup] Setup failed for frontend: Component not found.
17-03-21 02:24:18 ERROR (MainThread) [homeassistant.loader] Error loading homeassistant.components.tts. Make sure all dependencies are installed
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/loader.py", line 141, in get_component
module = importlib.import_module(path)
File "/usr/lib/python3.4/importlib/__init__.py", line 109, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 2254, in _gcd_import
File "<frozen importlib._bootstrap>", line 2237, in _find_and_load
File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked
File "<frozen importlib._bootstrap>", line 1129, in _exec
File "<frozen importlib._bootstrap>", line 1471, in exec_module
File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/tts/__init__.py", line 24, in <module>
from homeassistant.components.http import HomeAssistantView
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/http/__init__.py", line 34, in <module>
from .static import FILE_SENDER, CACHING_FILE_SENDER, staticresource_middleware
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/http/static.py", line 6, in <module>
from aiohttp.file_sender import FileSender
ImportError: No module named 'aiohttp.file_sender'
17-03-21 02:24:18 ERROR (MainThread) [homeassistant.loader] Unable to find component tts
17-03-21 02:24:18 ERROR (MainThread) [homeassistant.setup] Setup failed for tts: Component not found.
17-03-21 02:24:18 ERROR (MainThread) [homeassistant.loader] Error loading homeassistant.components.http. Make sure all dependencies are installed
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/loader.py", line 141, in get_component
module = importlib.import_module(path)
File "/usr/lib/python3.4/importlib/__init__.py", line 109, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 2254, in _gcd_import
File "<frozen importlib._bootstrap>", line 2237, in _find_and_load
File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked
File "<frozen importlib._bootstrap>", line 1129, in _exec
File "<frozen importlib._bootstrap>", line 1471, in exec_module
File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/http/__init__.py", line 34, in <module>
from .static import FILE_SENDER, CACHING_FILE_SENDER, staticresource_middleware
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/http/static.py", line 6, in <module>
from aiohttp.file_sender import FileSender
ImportError: No module named 'aiohttp.file_sender'
17-03-21 02:24:18 ERROR (MainThread) [homeassistant.loader] Unable to find component http
17-03-21 02:24:18 ERROR (MainThread) [homeassistant.setup] Setup failed for http: Component not found.
17-03-21 02:24:18 ERROR (MainThread) [homeassistant.loader] Error loading homeassistant.components.config. Make sure all dependencies are installed
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/loader.py", line 141, in get_component
module = importlib.import_module(path)
File "/usr/lib/python3.4/importlib/__init__.py", line 109, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 2254, in _gcd_import
File "<frozen importlib._bootstrap>", line 2237, in _find_and_load
File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked
File "<frozen importlib._bootstrap>", line 1129, in _exec
File "<frozen importlib._bootstrap>", line 1471, in exec_module
File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/config/__init__.py", line 11, in <module>
from homeassistant.components.frontend import register_built_in_panel
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/frontend/__init__.py", line 12, in <module>
from homeassistant.components import api, group
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/api.py", line 26, in <module>
from homeassistant.helpers.state import AsyncTrackStates
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/state.py", line 8, in <module>
from homeassistant.components.media_player import (
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/media_player/__init__.py", line 24, in <module>
from homeassistant.components.http import HomeAssistantView, KEY_AUTHENTICATED
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/http/__init__.py", line 34, in <module>
from .static import FILE_SENDER, CACHING_FILE_SENDER, staticresource_middleware
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/http/static.py", line 6, in <module>
from aiohttp.file_sender import FileSender
ImportError: No module named 'aiohttp.file_sender'
17-03-21 02:24:18 ERROR (MainThread) [homeassistant.loader] Unable to find component config
17-03-21 02:24:18 ERROR (MainThread) [homeassistant.setup] Setup failed for config: Component not found.
17-03-21 02:24:18 ERROR (MainThread) [homeassistant.loader] Error loading homeassistant.components.logbook. Make sure all dependencies are installed
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/loader.py", line 141, in get_component
module = importlib.import_module(path)
File "/usr/lib/python3.4/importlib/__init__.py", line 109, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 2254, in _gcd_import
File "<frozen importlib._bootstrap>", line 2237, in _find_and_load
File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked
File "<frozen importlib._bootstrap>", line 1129, in _exec
File "<frozen importlib._bootstrap>", line 1471, in exec_module
File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/logbook.py", line 18, in <module>
from homeassistant.components.frontend import register_built_in_panel
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/frontend/__init__.py", line 12, in <module>
from homeassistant.components import api, group
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/api.py", line 26, in <module>
from homeassistant.helpers.state import AsyncTrackStates
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/state.py", line 8, in <module>
from homeassistant.components.media_player import (
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/media_player/__init__.py", line 24, in <module>
from homeassistant.components.http import HomeAssistantView, KEY_AUTHENTICATED
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/http/__init__.py", line 34, in <module>
from .static import FILE_SENDER, CACHING_FILE_SENDER, staticresource_middleware
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/http/static.py", line 6, in <module>
from aiohttp.file_sender import FileSender
ImportError: No module named 'aiohttp.file_sender'
17-03-21 02:24:18 ERROR (MainThread) [homeassistant.loader] Unable to find component logbook
17-03-21 02:24:18 ERROR (MainThread) [homeassistant.setup] Setup failed for logbook: Component not found.
17-03-21 02:24:18 ERROR (MainThread) [homeassistant.loader] Error loading homeassistant.components.history. Make sure all dependencies are installed
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/loader.py", line 141, in get_component
module = importlib.import_module(path)
File "/usr/lib/python3.4/importlib/__init__.py", line 109, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 2254, in _gcd_import
File "<frozen importlib._bootstrap>", line 2237, in _find_and_load
File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked
File "<frozen importlib._bootstrap>", line 1129, in _exec
File "<frozen importlib._bootstrap>", line 1471, in exec_module
File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/history.py", line 20, in <module>
from homeassistant.components.frontend import register_built_in_panel
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/frontend/__init__.py", line 12, in <module>
from homeassistant.components import api, group
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/api.py", line 26, in <module>
from homeassistant.helpers.state import AsyncTrackStates
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/state.py", line 8, in <module>
from homeassistant.components.media_player import (
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/media_player/__init__.py", line 24, in <module>
from homeassistant.components.http import HomeAssistantView, KEY_AUTHENTICATED
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/http/__init__.py", line 34, in <module>
from .static import FILE_SENDER, CACHING_FILE_SENDER, staticresource_middleware
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/http/static.py", line 6, in <module>
from aiohttp.file_sender import FileSender
ImportError: No module named 'aiohttp.file_sender'
17-03-21 02:24:18 ERROR (MainThread) [homeassistant.loader] Unable to find component history
17-03-21 02:24:18 ERROR (MainThread) [homeassistant.setup] Setup failed for history: Component not found.
I’ve googled a similar problem and they recommend to remove the directory and reinstall hass again, i did it as of today (03/20/2017) and as soon as i add the mqtt lines again it fails again.
Could you please help me out?