[Solved] Errors after configuration

Hi, after some time I notice in log file lot of errors, my instance is latest updated yesterday. What I can do with that? Is this dangerous?
When I do check for errors in configuration I get all is ok(no errors):

(homeassistant_venv) homeassistant@raspberrypi:/home/pi$ hass --script check_config
Testing configuration at /home/homeassistant/.homeassistant
(homeassistant_venv) homeassistant@raspberrypi:/home/pi$

Below my log file after restart:

17-02-11 11:36:15 ERROR (MainThread) [homeassistant.components.notify] Error setting up platform mysensors
Traceback (most recent call last):
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/notify/__init__.py", line 101, in async_setup_platform
    None, platform.get_service, hass, p_config, discovery_info)
  File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
    value = future.result()
  File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
    raise self._exception
  File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/notify/mysensors.py", line 25, in get_service
    pres.S_INFO: [set_req.V_TEXT],
  File "/usr/lib/python3.4/enum.py", line 255, in __getattr__
    raise AttributeError(name) from None
AttributeError: V_TEXT
17-02-11 11:36:16 ERROR (MainThread) [homeassistant.components.camera.generic] Error parsing template <homeassistant.helpers.template.Template object at 0x76393d10>: UndefinedError: 'None' has no attribute 'attributes'
17-02-11 11:36:17 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/lib/python3.4/asyncio/tasks.py", line 233, in _step
    result = coro.throw(exc)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 387, in _update_entity_states
    yield from update_coro
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/entity.py", line 204, in async_update_ha_state
    yield from self.hass.loop.run_in_executor(None, self.update)
  File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
    value = future.result()
  File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
    raise self._exception
  File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/sensor/speedtest.py", line 110, in update
    states = recorder.get_model('States')
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/recorder/__init__.py", line 143, in get_model
    from homeassistant.components.recorder import models
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/recorder/models.py", line 7, in <module>
    from sqlalchemy import (Boolean, Column, DateTime, ForeignKey, Index, Integer,
ImportError: No module named 'sqlalchemy'
17-02-11 11:36:25 ERROR (MainThread) [homeassistant.components.camera.generic] Error parsing template <homeassistant.helpers.template.Template object at 0x76393d10>: UndefinedError: 'None' has no attribute 'attributes'

It looks like your camera config is throwing errors… Just remove it from the config as a test and see whether the errors are gone ? If so it narrows down the error finding…

All cameras off, and errorlog looks like below after restart:

17-02-11 15:56:23 ERROR (MainThread) [homeassistant.components.notify] Error setting up platform mysensors
Traceback (most recent call last):
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/notify/__init__.py", line 101, in async_setup_platform
    None, platform.get_service, hass, p_config, discovery_info)
  File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
    value = future.result()
  File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
    raise self._exception
  File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/notify/mysensors.py", line 25, in get_service
    pres.S_INFO: [set_req.V_TEXT],
  File "/usr/lib/python3.4/enum.py", line 255, in __getattr__
    raise AttributeError(name) from None
AttributeError: V_TEXT
17-02-11 15:56:27 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/lib/python3.4/asyncio/tasks.py", line 233, in _step
    result = coro.throw(exc)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 387, in _update_entity_states
    yield from update_coro
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/entity.py", line 204, in async_update_ha_state
    yield from self.hass.loop.run_in_executor(None, self.update)
  File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
    value = future.result()
  File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
    raise self._exception
  File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/sensor/speedtest.py", line 110, in update
    states = recorder.get_model('States')
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/recorder/__init__.py", line 143, in get_model
    from homeassistant.components.recorder import models
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/recorder/models.py", line 7, in <module>
    from sqlalchemy import (Boolean, Column, DateTime, ForeignKey, Index, Integer,
ImportError: No module named 'sqlalchemy'

Hmm… I missed some other components throwing errors. I don’t really know why. If were to solve this myself I’d start with a clean config and check for errors. Then add some config entries and see whether they mess things up…

I also see an import error from sqlalchemy. But can’t tell whether this is the cause or a result of an error…

Ok, I take your advance and commentout all from my config. Will update thred wen I clear what is the cose.

I findout what is generating my errors. It is mysensors. After reboot only mysensors is generating error:

17-02-14 16:32:37 ERROR (MainThread) [homeassistant.components.notify] Error setting up platform mysensors
Traceback (most recent call last):
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/notify/__init__.py", line 101, in async_setup_platform
    None, platform.get_service, hass, p_config, discovery_info)
  File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
    value = future.result()
  File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
    raise self._exception
  File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/notify/mysensors.py", line 25, in get_service
    pres.S_INFO: [set_req.V_TEXT],
  File "/usr/lib/python3.4/enum.py", line 255, in __getattr__
    raise AttributeError(name) from None
AttributeError: V_TEXT

And after some time log is bigger and bigger witch that errors :frowning:
What I can do with my config?
My setup is:
Arduino Uno with NRF24 and connected by USB to Raspberry Pi 3.
my config is here: https://github.com/huczas/.homeassistant

After latest upgrade 0.38.3 mysensors is working ok. There is another error

17-02-15 18:14:41 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/lib/python3.4/asyncio/tasks.py", line 233, in _step
    result = coro.throw(exc)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 387, in _update_entity_states
    yield from update_coro
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/entity.py", line 209, in async_update_ha_state
    yield from self.hass.loop.run_in_executor(None, self.update)
  File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
    value = future.result()
  File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
    raise self._exception
  File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/sensor/speedtest.py", line 110, in update
    states = recorder.get_model('States')
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/recorder/__init__.py", line 166, in get_model
    from homeassistant.components.recorder import models
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/recorder/models.py", line 7, in <module>
    from sqlalchemy import (Boolean, Column, DateTime, ForeignKey, Index, Integer,
ImportError: No module named 'sqlalchemy'
17-02-15 18:15:12 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/lib/python3.4/asyncio/tasks.py", line 233, in _step
    result = coro.throw(exc)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 387, in _update_entity_states
    yield from update_coro
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/entity.py", line 209, in async_update_ha_state
    yield from self.hass.loop.run_in_executor(None, self.update)
  File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
    value = future.result()
  File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
    raise self._exception
  File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/sensor/speedtest.py", line 110, in update
    states = recorder.get_model('States')
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/recorder/__init__.py", line 166, in get_model
    from homeassistant.components.recorder import models
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/recorder/models.py", line 7, in <module>
    from sqlalchemy import (Boolean, Column, DateTime, ForeignKey, Index, Integer,
ImportError: No module named 'sqlalchemy'

Looks like problem with speedtest.

Solved - there was missing sqlalchemy :slight_smile:

pip3 install sqlalchemy
1 Like

There’s a solve button to the left of “share a link to a post.” There’s also a “Like” or “Edit” icon as well. It looks like a square with a checkmark in light gray and should be the first one in the left. Click in it and it will show as green.

1 Like

How did you come to this conclusion?

I did check dependencies needed to run and thats all.