TaHoma Error during setup

Hello,

I upgraded to 0.111.4 today from 0.110.x and got the following error:

Error during setup of component tahoma
Traceback (most recent call last):
  File "/opt/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py", line 190, in _async_setup_component
    result = await asyncio.wait_for(task, SLOW_SETUP_MAX_WAIT)
  File "/usr/lib/python3.7/asyncio/tasks.py", line 416, in wait_for
    return fut.result()
  File "/usr/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/opt/homeassistant/lib/python3.7/site-packages/homeassistant/components/tahoma/__init__.py", line 88, in setup
    api.get_setup()
  File "/opt/homeassistant/lib/python3.7/site-packages/tahoma_api/tahoma_api.py", line 156, in get_setup
    self._get_setup(result)
  File "/opt/homeassistant/lib/python3.7/site-packages/tahoma_api/tahoma_api.py", line 167, in _get_setup
    device = Device(self, device_data)
  File "/opt/homeassistant/lib/python3.7/site-packages/tahoma_api/tahoma_api.py", line 689, in __init__
    "' has not been defined: " + debug_output)
ValueError: Active state 'core:NameState' has not been defined: {"creationTime": 1593528517000, "lastUpdateTime": 1593528517000, "label": "OGP KNX Bridge", "deviceURL": "ogp://1208-3748-5067/00000BE8", "shortcut": false, "controllableName": "ogp:Bridge", "definition": {"commands": [{"commandName": "sendPrivate", "nparams": 1}], "states": [{"type": "DataState", "qualifiedName": "core:Private10State"}, {"type": "DataState", "qualifiedName": "core:Private1State"}, {"type": "DataState", "qualifiedName": "core:Private2State"}, {"type": "DataState", "qualifiedName": "core:Private3State"}, {"type": "DataState", "qualifiedName": "core:Private4State"}, {"type": "DataState", "qualifiedName": "core:Private5State"}, {"type": "DataState", "qualifiedName": "core:Private6State"}, {"type": "DataState", "qualifiedName": "core:Private7State"}, {"type": "DataState", "qualifiedName": "core:Private8State"}, {"type": "DataState", "qualifiedName": "core:Private9State"}], "dataProperties": [], "widgetName": "DynamicBridge", "uiClass": "ProtocolGateway", "qualifiedName": "ogp:Bridge", "type": "ACTUATOR"}, "states": [{"name": "core:NameState", "type": 3, "value": "OGP KNX Bridge"}], "attributes": [{"name": "core:Manufacturer", "type": 3, "value": "Overkiz"}, {"name": "ogp:Features", "type": 10, "value": [{"name": "private"}]}, {"name": "core:Technology", "type": 3, "value": "KNX"}, {"name": "core:ManufacturerReference", "type": 3, "value": "OGP KNX Bridge"}], "available": true, "enabled": true, "placeOID": "bf36a6dd-3859-4c75-bf65-62fd072ae60c", "widget": "DynamicBridge", "type": 1, "oid": "8dffaafc-cdb6-4a06-bd84-85ec7277d2ef", "uiClass": "ProtocolGateway"}

At first I thought it was some update to the tahoma component since I usually run a modified version of it as a custom component. But after removing the modified component the problem still was present.

I’ve tried to downgrade to 0.110.1 but I still got the same error.

Anyone else with this error and can anyone tell me whats wrong?

1 Like

Same issue. Noticed that all Tahoma devices were offline so removed and re-added the integration. Getting the same errors in the log file:

2020-07-01 08:56:20 ERROR (MainThread) [custom_components.tahoma.config_flow] Unexpected exception
Traceback (most recent call last):
  File "/config/custom_components/tahoma/config_flow.py", line 92, in async_step_user
    info = await validate_input(self.hass, user_input)
  File "/config/custom_components/tahoma/config_flow.py", line 48, in validate_input
    await hass.async_add_executor_job(controller.get_setup)
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/tahoma/tahoma_api.py", line 180, in get_setup
    self._get_setup(result)
  File "/config/custom_components/tahoma/tahoma_api.py", line 190, in _get_setup
    device = Device(self, device_data)
  File "/config/custom_components/tahoma/tahoma_api.py", line 634, in __init__
    + debug_output
ValueError: Active state 'core:NameState' has not been defined: {"creationTime": 1593523120000, "lastUpdateTime": 1593523120000, "label": "OGP KNX Bridge", "deviceURL": "ogp://1227-5319-5336/00000BE8", "shortcut": false, "controllableName": "ogp:Bridge", "definition": {"commands": [{"commandName": "sendPrivate", "nparams": 1}], "states": [{"type": "DataState", "qualifiedName": "core:Private10State"}, {"type": "DataState", "qualifiedName": "core:Private1State"}, {"type": "DataState", "qualifiedName": "core:Private2State"}, {"type": "DataState", "qualifiedName": "core:Private3State"}, {"type": "DataState", "qualifiedName": "core:Private4State"}, {"type": "DataState", "qualifiedName": "core:Private5State"}, {"type": "DataState", "qualifiedName": "core:Private6State"}, {"type": "DataState", "qualifiedName": "core:Private7State"}, {"type": "DataState", "qualifiedName": "core:Private8State"}, {"type": "DataState", "qualifiedName": "core:Private9State"}], "dataProperties": [], "widgetName": "DynamicBridge", "uiClass": "ProtocolGateway", "qualifiedName": "ogp:Bridge", "type": "ACTUATOR"}, "states": [{"name": "core:NameState", "type": 3, "value": "OGP KNX Bridge"}], "attributes": [{"name": "core:Technology", "type": 3, "value": "KNX"}, {"name": "ogp:Features", "type": 10, "value": [{"name": "private"}]}, {"name": "core:ManufacturerReference", "type": 3, "value": "OGP KNX Bridge"}, {"name": "core:Manufacturer", "type": 3, "value": "Overkiz"}], "available": true, "enabled": true, "placeOID": "6af77b24-bf47-4670-b112-ab85d86d670e", "widget": "DynamicBridge", "type": 1, "oid": "7b16b823-ac68-4363-a735-7cbce6f4a634", "uiClass": "ProtocolGateway"}

I got an email from somfy a week ago, announcing a server and box upgrade to TaHome 2.16 on June 30th.
Since everything was working for me yesterday, I believe they changed something during the update?
The Somfy integration is working though, unfortunately, I can´t control my garage door with it.

You’re correct. Seems like something have changed since the last TaHoma update :confused:

Hopefully someone with knowledge can look into it.

Have same problem/error. Opened a ticket with Somfy today. But no response So far . Not sure the help desk supporter will do much, as she didn’t understand why I reported problems with tahomalink.com when I have a connexoon io box. Anyway,I am not able to manually login to tahomalink.com, I assume that should be possible.

If you have a connexoon you can’t login on tahomalink.com. Tahomalink is only for those with the tahoma box. The reason why the integration works for both is because they use the same unofficial api which the tahoma integration for HA uses.

Issue in Github https://github.com/home-assistant/core/issues/37291

I actually had missed this custom component: https://github.com/iMicknl/ha-tahoma

They updated the integration a couple of hours ago and the login problem is gone. So it’s a problem in the api connection from the standard TaHoma HA integration.

Hopefully they will get this merged so it replaces the current TaHoma integration.

So if you have HACS add the repository, install it and add the integration. You probably should remove the tahoma from your config yaml.

Thank you for clarification - I resolved my problem by replacing standard Tahoma: with custom component as mentioned in other posts: https://github.com/iMicknl/ha-tahoma