I am new to HASS, but have a stable Smart Things environment, all ZWave. I want to do a test drive of HASS.
I have signed up for the 1 month free Nabu Casa trial and can access my home via PC browser locally (homeassistant.local:8123) and remotely (xxx.ui.nabu.casa/lovelace/0). I can view remotely with the Android app.
When I try to add the Smart Things integration, I get a popup windows that says “Error Config flow could not be loaded: undefined”. I never got the chance to enter my access secret.
These threads imply there is an issue with the external URL:
I had the same error on a different component, Raspberry Pi Power Supply checker. Turns out i had an old entry in my configuration.yaml and sensor.yaml for that component and forgot to remove it. I would double-check that you don’t have an orphan entry somewhere in your .yaml files. Once I removed the entries, I was able to add the integration using the UI.
opened 12:46PM - 05 Mar 21 UTC
closed 05:45PM - 25 May 21 UTC
config error
integration: smartthings
problem in config
### The problem
When i installed new version yesterday i lost contact with my S… martthings integrations.
I then reverted to version 2021.02.03 and now i got alot of errors like this
2021-03-04 23:46:07 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139838867324592] Received invalid command: supervisor/subscribe
2021-03-04 23:46:07 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139838867324592] Received invalid command: supervisor/subscribe
2021-03-04 23:46:07 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139838867324592] Received invalid command: supervisor/subscribe
2021-03-04 23:46:07 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139838867324592] Received invalid command: supervisor/subscribe
2021-03-04 23:46:07 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139838867324592] Received invalid command: supervisor/subscribe
2021-03-04 23:46:07 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139838867324592] Received invalid command: supervisor/subscribe
2021-03-04 23:46:07 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139838867324592] Received invalid command: supervisor/subscribe
2021-03-04 23:46:07 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139838867324592] Received invalid command: supervisor/subscribe
2021-03-04 23:46:07 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139838867324592] Received invalid command: supervisor/subscribe
2021-03-04 23:46:07 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139838867324592] Received invalid command: supervisor/api
2021-03-04 23:46:07 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139838867324592] Received invalid command: supervisor/api
2021-03-04 23:46:07 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139838867324592] Received invalid command: supervisor/api
2021-03-04 23:46:07 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139838867324592] Received invalid command: supervisor/api
2021-03-04 23:46:07 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139838867324592] Received invalid command: supervisor/api
2021-03-04 23:46:07 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139838867324592] Received invalid command: supervisor/api
2021-03-04 23:46:07 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139838867324592] Received invalid command: supervisor/api
2021-03-04 23:46:07 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139838867324592] Received invalid command: supervisor/api
2021-03-04 23:46:07 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139838867324592] Received invalid command: supervisor/api
2021-03-04 23:50:44 ERROR (MainThread) [homeassistant.helpers.event] Error while processing state changed for sensor.xiaomi_aqara_temp_sensor_temperature_measurement
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/event.py", line 257, in _async_state_change_dispatcher
hass.async_run_hass_job(job, event)
File "/usr/src/homeassistant/homeassistant/core.py", line 435, in async_run_hass_job
hassjob.target(*args)
File "/usr/src/homeassistant/homeassistant/components/min_max/sensor.py", line 210, in _async_min_max_sensor_state_listener
if new_state.state is None or new_state.state in [
AttributeError: 'NoneType' object has no attribute 'state'
2021-03-04 23:50:44 ERROR (MainThread) [homeassistant.helpers.event] Error while processing state changed for sensor.k_sovrum_temp_temperature_measurement
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/event.py", line 257, in _async_state_change_dispatcher
hass.async_run_hass_job(job, event)
File "/usr/src/homeassistant/homeassistant/core.py", line 435, in async_run_hass_job
hassjob.target(*args)
File "/usr/src/homeassistant/homeassistant/components/min_max/sensor.py", line 210, in _async_min_max_sensor_state_listener
if new_state.state is None or new_state.state in [
AttributeError: 'NoneType' object has no attribute 'state'
2021-03-04 23:50:44 ERROR (MainThread) [homeassistant.helpers.event] Error while processing state changed for sensor.rorelse_hall_temperature_measurement
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/event.py", line 257, in _async_state_change_dispatcher
hass.async_run_hass_job(job, event)
File "/usr/src/homeassistant/homeassistant/core.py", line 435, in async_run_hass_job
hassjob.target(*args)
File "/usr/src/homeassistant/homeassistant/components/min_max/sensor.py", line 210, in _async_min_max_sensor_state_listener
if new_state.state is None or new_state.state in [
AttributeError: 'NoneType' object has no attribute 'state'
### What is version of Home Assistant Core has the issue?
core-2021.3.
### What was the last working version of Home Assistant Core?
core-2021.2.3
### What type of installation are you running?
Home Assistant OS
### Integration causing the issue
Smartthings
### Link to integration documentation on our website
https://www.home-assistant.io/integrations/smartthings/
### Example YAML snippet
```yaml
# Put your YAML below this line
```
### Anything in the logs that might be useful for us?
```txt
# Put your logs below this line
2021-03-04 18:42:14 ERROR (MainThread) [homeassistant.setup] Setup failed for webhook: unknown error
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/setup.py", line 166, in _async_setup_component
component = integration.get_component()
File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/loader.py", line 491, in get_component
cache[self.domain] = importlib.import_module(self.pkg_path)
File "/usr/local/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/components/webhook/__init__.py", line 14, in <module>
from homeassistant.util.aiohttp import MockRequest
File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/util/aiohttp.py", line 26, in <module>
class MockRequest:
File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/util/aiohttp.py", line 51, in MockRequest
def query(self) -> MultiDict[str]:
TypeError: 'type' object is not subscriptable
```
However, my URL is configured. I can remotely access my home via Android when WiFi is off, and the nabu.casa domain in a PC browser gets me to the right place as well.
Log entry is:
Error handling request 3:35:00 PM – (ERROR) components/webhook/init .py
Where is init.py? I installed Studio Code Server and it is not in the file tree, there are only .yaml files
Any hints as to where to look?
Beuller?
More log info, where is the handler already defined?:
File “/usr/src/homeassistant/homeassistant/components/smartthings/smartapp.py”, line 226, in setup_smartapp_endpoint
webhook.async_register(
File “/usr/src/homeassistant/homeassistant/components/webhook/init .py”, line 46, in async_register
raise ValueError(“Handler is already defined!”)
ValueError: Handler is already defined!