Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tahoma 2.16.0: "ImportError: cannot import name 'SUPPORT_ALARM_ARM_AWAY' from 'homeassistant.components.alarm_control_panel.const' (/usr/src/homeassistant/homeassistant/components/alarm_control_panel/const.py)" #861

Open
1 task done
MichaelSchaaf999 opened this issue Jan 9, 2025 · 14 comments
Labels
bug Something isn't working

Comments

@MichaelSchaaf999
Copy link

Did you read the instructions?

The problem

The HA log throws this error, what can I do about this error?

What version of this integration (ha-tahoma) has the issue?

2.16.0

What version of Home Assistant Core has the issue?

2025.1.1

Which gateway / hub do you use?

Somfy Tahoma, TaHoma Security Short Channel von Somfy Firmware: 2024.5.4

Device model

TaHoma Security Short Channel von Somfy Firmware: 2024.5.4

Home Assistant log

Logs
Copy/paste any log here, between the starting and ending backticks. The first log line must start with "Added device (Device...".
ImportError: cannot import name 'SUPPORT_ALARM_ARM_AWAY' from 'homeassistant.components.alarm_control_panel.const' (/usr/src/homeassistant/homeassistant/components/alarm_control_panel/const.py)

</details>


### Additional information

ImportError: cannot import name 'SUPPORT_ALARM_ARM_AWAY' from 'homeassistant.components.alarm_control_panel.const' (/usr/src/homeassistant/homeassistant/components/alarm_control_panel/const.py)
@MichaelSchaaf999 MichaelSchaaf999 added the bug Something isn't working label Jan 9, 2025
@iMicknl
Copy link
Owner

iMicknl commented Jan 9, 2025

Duplicate of #860.

Can you move to the official Overkiz integration in core?

@qlaffont
Copy link

Same for me (I have a Connectivity Kit from Somfy, And Overkiz integration doesn't support it yet)

@iMicknl
Copy link
Owner

iMicknl commented Jan 21, 2025

@qlaffont which device is not supported on your installation? We do support the Connectivity Kit.

@qlaffont
Copy link

Yes i know ! And it was working before this error ! (It was an information about last comment about official overkiz integration)

@iMicknl
Copy link
Owner

iMicknl commented Jan 21, 2025

I don't understand. Why can't you use the Overkiz integration from core?

@qlaffont
Copy link

I can't use core version because it needs to activate developer mode on the device (it is not possible with connectivity kit)

@iMicknl
Copy link
Owner

iMicknl commented Jan 21, 2025

@qlaffont you can use the Cloud API in core.. This works the same as this deprecated integration.

@qlaffont
Copy link

@iMicknl sorry it doesn't work :


2025-01-21 20:46:13.442 ERROR (MainThread) [homeassistant.loader] Unexpected exception importing platform homeassistant.components.overkiz.sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1272, in _load_platform
    cache[full_name] = self._import_platform(platform_name)
                       ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1304, in _import_platform
    return importlib.import_module(f"{self.pkg_path}.{platform_name}")
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/util/loop.py", line 200, in protected_loop_func
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.13/importlib/__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 1026, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/usr/src/homeassistant/homeassistant/components/overkiz/sensor.py", line 462, in <module>
    key=OverkizState.MODBUS_ROOM_AMBIENT_TEMPERATURE_STATUS_ZONE_1,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: type object 'OverkizState' has no attribute 'MODBUS_ROOM_AMBIENT_TEMPERATURE_STATUS_ZONE_1'. Did you mean: 'MODBUS_ROOM_AMBIENT_TEMPERATURE_STATUS_ZONE_1_STATE'?
2025-01-21 20:46:13.445 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry [email protected] for overkiz
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1272, in _load_platform
    cache[full_name] = self._import_platform(platform_name)
                       ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1304, in _import_platform
    return importlib.import_module(f"{self.pkg_path}.{platform_name}")
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/util/loop.py", line 200, in protected_loop_func
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.13/importlib/__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 1026, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/usr/src/homeassistant/homeassistant/components/overkiz/sensor.py", line 462, in <module>
    key=OverkizState.MODBUS_ROOM_AMBIENT_TEMPERATURE_STATUS_ZONE_1,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: type object 'OverkizState' has no attribute 'MODBUS_ROOM_AMBIENT_TEMPERATURE_STATUS_ZONE_1'. Did you mean: 'MODBUS_ROOM_AMBIENT_TEMPERATURE_STATUS_ZONE_1_STATE'?

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 640, in __async_setup_with_context
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/overkiz/__init__.py", line 163, in async_setup_entry
    await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2278, in async_forward_entry_setups
    await integration.async_get_platforms(platforms)
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1185, in async_get_platforms
    import_future.result()
    ~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1185, in async_get_platforms
    import_future.result()
    ~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1185, in async_get_platforms
    import_future.result()
    ~~~~~~~~~~~~~~~~~~~~^^
  [Previous line repeated 1 more time]
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1173, in async_get_platforms
    platforms.update(self._load_platforms(platform_names))
                     ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1098, in _load_platforms
    platform_name: self._load_platform(platform_name)
                   ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1292, in _load_platform
    raise ImportError(
        f"Exception importing {self.pkg_path}.{platform_name}"
    ) from err
ImportError: Exception importing homeassistant.components.overkiz.sensor
2025-01-21 20:46:19.188 DEBUG (MainThread) [homeassistant.components.overkiz] Finished fetching device events data in 0.017 seconds (success: True)
2025-01-21 20:46:19.188 DEBUG (MainThread) [homeassistant.components.overkiz] The following device has been retrieved. Report an issue if not supported correctly (Device(attributes=States(_states=[State(name='ogp:Features', type=<DataType.JSON_ARRAY: 10>, value=[{'name': 'openClose', 'state_less': True}, {'name': 'stop', 'state_less': True}, {'name': 'identification'}]), State(name='core:ManufacturerReference', type=<DataType.STRING: 3>, value='garageDoor'), State(name='core:Manufacturer', type=<DataType.STRING: 3>, value='Somfy'), State(name='core:Technology', type=<DataType.STRING: 3>, value='rts'), State(name='core:SubType', type=<DataType.STRING: 3>, value='rolling')]), available=True, enabled=True, label=** **/**, device_url=ogp://****-****-2581/10876631, gateway_id=****-****-2581, device_address=10876631, subsystem_id=None, is_sub_device=False, controllable_name='ogp:GarageDoor', definition=Definition(commands=CommandDefinitions(_commands=[CommandDefinition(command_name='close', nparams=0), CommandDefinition(command_name='identify', nparams=0), CommandDefinition(command_name='open', nparams=0), CommandDefinition(command_name='setName', nparams=1), CommandDefinition(command_name='stop', nparams=0)]), states=[StateDefinition(qualified_name='core:AvailabilityState', type='DiscreteState', values=['available', 'unavailable']), StateDefinition(qualified_name='core:NameState', type='DataState', values=None), StateDefinition(qualified_name='core:RemovableState', type='DataState', values=None), StateDefinition(qualified_name='core:StatusState', type='DiscreteState', values=['available', 'unavailable'])], widget_name='DynamicGarageDoor', ui_class='GarageDoor', qualified_name='ogp:GarageDoor'), data_properties=None, widget=<UIWidget.DYNAMIC_GARAGE_DOOR: 'DynamicGarageDoor'>, ui_class=<UIClass.GARAGE_DOOR: 'GarageDoor'>, states=States(_states=[State(name='core:NameState', type=<DataType.STRING: 3>, value='GDK 700/1100')]), type=<ProductType.ACTUATOR: 1>, place_oid='e1907a76-ce09-4ddb-a08c-fa2b8cbcc7a9'))
2025-01-21 20:46:19.189 DEBUG (MainThread) [homeassistant.components.overkiz] The following device has been retrieved. Report an issue if not supported correctly (Device(attributes=States(_states=[State(name='ogp:Features', type=<DataType.JSON_ARRAY: 10>, value=[{'name': 'dimming'}, {'name': 'identification'}]), State(name='core:ManufacturerReference', type=<DataType.STRING: 3>, value='ledBox'), State(name='core:Manufacturer', type=<DataType.STRING: 3>, value='Overkiz'), State(name='core:Technology', type=<DataType.STRING: 3>, value='BoxTHmini'), State(name='core:SubType', type=<DataType.STRING: 3>, value='status')]), available=True, enabled=True, label=** **, device_url=ogp://****-****-2581/15728639, gateway_id=****-****-2581, device_address=15728639, subsystem_id=None, is_sub_device=False, controllable_name='ogp:Light', definition=Definition(commands=CommandDefinitions(_commands=[CommandDefinition(command_name='identify', nparams=0), CommandDefinition(command_name='setIntensity', nparams=1), CommandDefinition(command_name='setName', nparams=1)]), states=[StateDefinition(qualified_name='core:AvailabilityState', type='DiscreteState', values=['available', 'unavailable']), StateDefinition(qualified_name='core:IntensityState', type='ContinuousState', values=None), StateDefinition(qualified_name='core:LightIntensityState', type='ContinuousState', values=None), StateDefinition(qualified_name='core:NameState', type='DataState', values=None), StateDefinition(qualified_name='core:RemovableState', type='DataState', values=None), StateDefinition(qualified_name='core:StatusState', type='DiscreteState', values=['available', 'unavailable'])], widget_name='DynamicLight', ui_class='Light', qualified_name='ogp:Light'), data_properties=None, widget=<UIWidget.DYNAMIC_LIGHT: 'DynamicLight'>, ui_class=<UIClass.LIGHT: 'Light'>, states=States(_states=[State(name='core:NameState', type=<DataType.STRING: 3>, value='Connectivity kit-ledBox'), State(name='core:AvailabilityState', type=<DataType.STRING: 3>, value='available'), State(name='core:StatusState', type=<DataType.STRING: 3>, value='available'), State(name='core:IntensityState', type=<DataType.INTEGER: 1>, value=100), State(name='core:LightIntensityState', type=<DataType.INTEGER: 1>, value=100)]), type=<ProductType.ACTUATOR: 1>, place_oid='e1907a76-ce09-4ddb-a08c-fa2b8cbcc7a9'))
2025-01-21 20:46:19.189 DEBUG (MainThread) [homeassistant.components.overkiz] The following device has been retrieved. Report an issue if not supported correctly (Device(attributes=States(_states=[State(name='core:ManufacturerReference', type=<DataType.STRING: 3>, value='bridge'), State(name='core:Technology', type=<DataType.STRING: 3>, value='io2way'), State(name='core:Manufacturer', type=<DataType.STRING: 3>, value='Overkiz'), State(name='ogp:Features', type=<DataType.JSON_ARRAY: 10>, value=[{'name': 'discovery'}, {'name': 'setupManagement'}, {'name': 'firmware'}, {'name': 'private'}, {'name': 'identification', 'command_less': True}])]), available=True, enabled=True, label=**, device_url=ogp://****-****-2581/16777212, gateway_id=****-****-2581, device_address=16777212, subsystem_id=None, is_sub_device=False, controllable_name='ogp:Bridge', definition=Definition(commands=CommandDefinitions(_commands=[CommandDefinition(command_name='discover', nparams=0), CommandDefinition(command_name='joinSetup', nparams=0), CommandDefinition(command_name='sendPrivate', nparams=1), CommandDefinition(command_name='shareSetup', nparams=0), CommandDefinition(command_name='update', nparams=0)]), states=[StateDefinition(qualified_name='core:AvailabilityState', type='DiscreteState', values=['available', 'unavailable']), StateDefinition(qualified_name='core:FirmwareHashState', type='DataState', values=None), StateDefinition(qualified_name='core:FirmwareRevisionState', type='DataState', values=None), StateDefinition(qualified_name='core:NameState', type='DataState', values=None), StateDefinition(qualified_name='core:NewFirmwareAvailableState', type='DataState', values=None), StateDefinition(qualified_name='core:Private10State', type='DataState', values=None), StateDefinition(qualified_name='core:Private1State', type='DataState', values=None), StateDefinition(qualified_name='core:Private2State', type='DataState', values=None), StateDefinition(qualified_name='core:Private3State', type='DataState', values=None), StateDefinition(qualified_name='core:Private4State', type='DataState', values=None), StateDefinition(qualified_name='core:Private5State', type='DataState', values=None), StateDefinition(qualified_name='core:Private6State', type='DataState', values=None), StateDefinition(qualified_name='core:Private7State', type='DataState', values=None), StateDefinition(qualified_name='core:Private8State', type='DataState', values=None), StateDefinition(qualified_name='core:Private9State', type='DataState', values=None), StateDefinition(qualified_name='core:RemovableState', type='DataState', values=None), StateDefinition(qualified_name='core:StatusState', type='DiscreteState', values=['available', 'unavailable'])], widget_name='DynamicBridge', ui_class='ProtocolGateway', qualified_name='ogp:Bridge'), data_properties=None, widget=<UIWidget.DYNAMIC_BRIDGE: 'DynamicBridge'>, ui_class=<UIClass.PROTOCOL_GATEWAY: 'ProtocolGateway'>, states=States(_states=[State(name='core:NameState', type=<DataType.STRING: 3>, value='io2way'), State(name='core:AvailabilityState', type=<DataType.STRING: 3>, value='available'), State(name='core:StatusState', type=<DataType.STRING: 3>, value='available'), State(name='core:FirmwareRevisionState', type=<DataType.STRING: 3>, value='dev-A11DABE5C58178BEEC7D6898E2886809'), State(name='core:FirmwareHashState', type=<DataType.STRING: 3>, value='A11DABE5C58178BEEC7D6898E2886809')]), type=<ProductType.ACTUATOR: 1>, place_oid='e1907a76-ce09-4ddb-a08c-fa2b8cbcc7a9'))
2025-01-21 20:46:19.190 DEBUG (MainThread) [homeassistant.components.overkiz] The following device has been retrieved. Report an issue if not supported correctly (Device(attributes=States(_states=[State(name='core:Manufacturer', type=<DataType.STRING: 3>, value='Overkiz'), State(name='ogp:Features', type=<DataType.JSON_ARRAY: 10>, value=[{'name': 'pairing'}, {'name': 'private'}, {'name': 'identification', 'command_less': True}]), State(name='core:Technology', type=<DataType.STRING: 3>, value='rts'), State(name='core:ManufacturerReference', type=<DataType.STRING: 3>, value='bridge'), State(name='core:SupportedNodeDefinitions', type=<DataType.JSON_ARRAY: 10>, value=[{'name': 'outlet', 'sub_types': [{'name': 'default', 'definitions': ['favorite1']}]}, {'name': 'light', 'sub_types': [{'name': 'default', 'definitions': ['favorite1']}, {'name': 'dimming', 'definitions': ['favorite1']}]}, {'name': 'shutter', 'sub_types': [{'name': 'rolling', 'definitions': ['favorite1']}, {'name': 'sliding', 'definitions': ['favorite1']}, {'name': 'swinging', 'definitions': ['favorite1']}]}, {'name': 'gate', 'sub_types': [{'name': 'swinging', 'definitions': ['pedestrian']}, {'name': 'sliding', 'definitions': ['pedestrian']}]}, {'name': 'curtain', 'sub_types': [{'name': 'single', 'definitions': ['favorite1']}, {'name': 'dual', 'definitions': ['favorite1']}]}, {'name': 'awning', 'sub_types': [{'name': 'default', 'definitions': ['favorite1']}]}, {'name': 'blind', 'sub_types': [{'name': 'indoor', 'definitions': ['favorite1']}, {'name': 'outdoor', 'definitions': ['favorite1']}]}, {'name': 'venetianBlind', 'sub_types': [{'name': 'indoor', 'definitions': ['favorite1', 'tiltOnlyWithFavorite1']}, {'name': 'outdoor', 'definitions': ['favorite1']}]}, {'name': 'garageDoor', 'sub_types': [{'name': 'rolling', 'definitions': ['ventilation']}, {'name': 'sliding', 'definitions': ['pedestrian']}]}, {'name': 'pergola', 'sub_types': [{'name': 'default', 'definitions': ['favorite1']}]}])]), available=True, enabled=True, label=**, device_url=ogp://****-****-2581/16777214, gateway_id=****-****-2581, device_address=16777214, subsystem_id=None, is_sub_device=False, controllable_name='ogp:Bridge', definition=Definition(commands=CommandDefinitions(_commands=[CommandDefinition(command_name='sendPrivate', nparams=1), CommandDefinition(command_name='pair', nparams=3)]), states=[StateDefinition(qualified_name='core:AvailabilityState', type='DiscreteState', values=['available', 'unavailable']), StateDefinition(qualified_name='core:NameState', type='DataState', values=None), StateDefinition(qualified_name='core:Private10State', type='DataState', values=None), StateDefinition(qualified_name='core:Private1State', type='DataState', values=None), StateDefinition(qualified_name='core:Private2State', type='DataState', values=None), StateDefinition(qualified_name='core:Private3State', type='DataState', values=None), StateDefinition(qualified_name='core:Private4State', type='DataState', values=None), StateDefinition(qualified_name='core:Private5State', type='DataState', values=None), StateDefinition(qualified_name='core:Private6State', type='DataState', values=None), StateDefinition(qualified_name='core:Private7State', type='DataState', values=None), StateDefinition(qualified_name='core:Private8State', type='DataState', values=None), StateDefinition(qualified_name='core:Private9State', type='DataState', values=None), StateDefinition(qualified_name='core:RemovableState', type='DataState', values=None), StateDefinition(qualified_name='core:StatusState', type='DiscreteState', values=['available', 'unavailable'])], widget_name='DynamicBridge', ui_class='ProtocolGateway', qualified_name='ogp:Bridge'), data_properties=None, widget=<UIWidget.DYNAMIC_BRIDGE: 'DynamicBridge'>, ui_class=<UIClass.PROTOCOL_GATEWAY: 'ProtocolGateway'>, states=States(_states=[State(name='core:NameState', type=<DataType.STRING: 3>, value='rts'), State(name='core:AvailabilityState', type=<DataType.STRING: 3>, value='available'), State(name='core:StatusState', type=<DataType.STRING: 3>, value='available')]), type=<ProductType.ACTUATOR: 1>, place_oid='e1907a76-ce09-4ddb-a08c-fa2b8cbcc7a9'))
2025-01-21 20:46:19.190 DEBUG (MainThread) [homeassistant.components.overkiz] The following device has been retrieved. Report an issue if not supported correctly (Device(attributes=States(_states=[State(name='core:ManufacturerReference', type=<DataType.STRING: 3>, value='gateway'), State(name='core:Manufacturer', type=<DataType.STRING: 3>, value='Overkiz'), State(name='core:Technology', type=<DataType.STRING: 3>, value='BoxTHmini'), State(name='ogp:Features', type=<DataType.JSON_ARRAY: 10>, value=[{'name': 'reset'}, {'name': 'localAccess'}, {'name': 'firmware'}, {'name': 'private'}, {'name': 'identification', 'command_less': True}, {'name': 'diagnosis'}, {'name': 'supervision'}, {'name': 'time'}, {'name': 'wifi'}, {'name': 'networkv4'}]), State(name='core:Private1', type=<DataType.JSON_ARRAY: 10>, value=[{'supported_private_commands': 'scheduledUpdate'}])]), available=True, enabled=True, label=** **, device_url=ogp://****-****-2581/16777215, gateway_id=****-****-2581, device_address=16777215, subsystem_id=None, is_sub_device=False, controllable_name='ogp:Gateway', definition=Definition(commands=CommandDefinitions(_commands=[CommandDefinition(command_name='reboot', nparams=0), CommandDefinition(command_name='reset', nparams=0), CommandDefinition(command_name='sendPrivate', nparams=1), CommandDefinition(command_name='setTimezone', nparams=1), CommandDefinition(command_name='update', nparams=0)]), states=[StateDefinition(qualified_name='core:AvailabilityState', type='DiscreteState', values=['available', 'unavailable']), StateDefinition(qualified_name='core:ErrorState', type='DataState', values=None), StateDefinition(qualified_name='core:ErrorsState', type='DataState', values=None), StateDefinition(qualified_name='core:FirmwareHashState', type='DataState', values=None), StateDefinition(qualified_name='core:FirmwareRevisionState', type='DataState', values=None), StateDefinition(qualified_name='core:LocalAccessProofState', type='DataState', values=None), StateDefinition(qualified_name='core:NameState', type='DataState', values=None), StateDefinition(qualified_name='core:NewFirmwareAvailableState', type='DataState', values=None), StateDefinition(qualified_name='core:Private10State', type='DataState', values=None), StateDefinition(qualified_name='core:Private1State', type='DataState', values=None), StateDefinition(qualified_name='core:Private2State', type='DataState', values=None), StateDefinition(qualified_name='core:Private3State', type='DataState', values=None), StateDefinition(qualified_name='core:Private4State', type='DataState', values=None), StateDefinition(qualified_name='core:Private5State', type='DataState', values=None), StateDefinition(qualified_name='core:Private6State', type='DataState', values=None), StateDefinition(qualified_name='core:Private7State', type='DataState', values=None), StateDefinition(qualified_name='core:Private8State', type='DataState', values=None), StateDefinition(qualified_name='core:Private9State', type='DataState', values=None), StateDefinition(qualified_name='core:RemovableState', type='DataState', values=None), StateDefinition(qualified_name='core:SSIDState', type='DataState', values=None), StateDefinition(qualified_name='core:SignalQualityState', type='ContinuousState', values=None), StateDefinition(qualified_name='core:StatusState', type='DiscreteState', values=['available', 'unavailable']), StateDefinition(qualified_name='core:TimezoneState', type='DataState', values=None)], widget_name='DynamicGateway', ui_class='ProtocolGateway', qualified_name='ogp:Gateway'), data_properties=None, widget=<UIWidget.DYNAMIC_GATEWAY: 'DynamicGateway'>, ui_class=<UIClass.PROTOCOL_GATEWAY: 'ProtocolGateway'>, states=States(_states=[State(name='core:NameState', type=<DataType.STRING: 3>, value='Connectivity kit-box'), State(name='core:AvailabilityState', type=<DataType.STRING: 3>, value='available'), State(name='core:StatusState', type=<DataType.STRING: 3>, value='available'), State(name='core:SignalQualityState', type=<DataType.INTEGER: 1>, value=62), State(name='core:FirmwareRevisionState', type=<DataType.STRING: 3>, value='v-2024.4.3-2-d139e5b'), State(name='core:FirmwareHashState', type=<DataType.STRING: 3>, value='2024.4.3-2:d139e5b202bb946f94d60fafa1fe277b41b759a6:6611757c9ab720e10d2c2972048db089'), State(name='core:NewFirmwareAvailableState', type=<DataType.BOOLEAN: 6>, value=False), State(name='core:SSIDState', type=<DataType.STRING: 3>, value='WIFI_QM'), State(name='core:TimezoneState', type=<DataType.STRING: 3>, value='Europe/Paris')]), type=<ProductType.ACTUATOR: 1>, place_oid='e1907a76-ce09-4ddb-a08c-fa2b8cbcc7a9'))
2025-01-21 20:46:19.190 DEBUG (MainThread) [homeassistant.components.overkiz] Added gateway (Gateway(partners=[], functions='', sub_type=<GatewaySubType.TAHOMA_BASIC_PLUS: 2>, id=****-****-2581, gateway_id=****-****-2581, alive=True, mode='ACTIVE', place_oid='e1907a76-ce09-4ddb-a08c-fa2b8cbcc7a9', time_reliable=True, connectivity=Connectivity(status='OK', protocol_version='2'), up_to_date=True, update_status=<UpdateBoxStatus.UP_TO_DATE: 'UP_TO_DATE'>, sync_in_progress=False, type=<GatewayType.SOMFY_CONNECTIVITY_KIT: 99>))
2025-01-21 20:46:19.199 ERROR (ImportExecutor_0) [homeassistant.loader] Unexpected exception importing platform homeassistant.components.overkiz.sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1272, in _load_platform
    cache[full_name] = self._import_platform(platform_name)
                       ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1304, in _import_platform
    return importlib.import_module(f"{self.pkg_path}.{platform_name}")
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/util/loop.py", line 200, in protected_loop_func
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.13/importlib/__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 1026, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/usr/src/homeassistant/homeassistant/components/overkiz/sensor.py", line 462, in <module>
    key=OverkizState.MODBUS_ROOM_AMBIENT_TEMPERATURE_STATUS_ZONE_1,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: type object 'OverkizState' has no attribute 'MODBUS_ROOM_AMBIENT_TEMPERATURE_STATUS_ZONE_1'. Did you mean: 'MODBUS_ROOM_AMBIENT_TEMPERATURE_STATUS_ZONE_1_STATE'?
2025-01-21 20:46:19.214 ERROR (MainThread) [homeassistant.loader] Unexpected exception importing platform homeassistant.components.overkiz.sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1272, in _load_platform
    cache[full_name] = self._import_platform(platform_name)
                       ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1304, in _import_platform
    return importlib.import_module(f"{self.pkg_path}.{platform_name}")
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/util/loop.py", line 200, in protected_loop_func
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.13/importlib/__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 1026, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/usr/src/homeassistant/homeassistant/components/overkiz/sensor.py", line 462, in <module>
    key=OverkizState.MODBUS_ROOM_AMBIENT_TEMPERATURE_STATUS_ZONE_1,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: type object 'OverkizState' has no attribute 'MODBUS_ROOM_AMBIENT_TEMPERATURE_STATUS_ZONE_1'. Did you mean: 'MODBUS_ROOM_AMBIENT_TEMPERATURE_STATUS_ZONE_1_STATE'?
2025-01-21 20:46:19.217 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry [email protected] for overkiz
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1272, in _load_platform
    cache[full_name] = self._import_platform(platform_name)
                       ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1304, in _import_platform
    return importlib.import_module(f"{self.pkg_path}.{platform_name}")
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/util/loop.py", line 200, in protected_loop_func
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.13/importlib/__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 1026, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/usr/src/homeassistant/homeassistant/components/overkiz/sensor.py", line 462, in <module>
    key=OverkizState.MODBUS_ROOM_AMBIENT_TEMPERATURE_STATUS_ZONE_1,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: type object 'OverkizState' has no attribute 'MODBUS_ROOM_AMBIENT_TEMPERATURE_STATUS_ZONE_1'. Did you mean: 'MODBUS_ROOM_AMBIENT_TEMPERATURE_STATUS_ZONE_1_STATE'?

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 640, in __async_setup_with_context
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/overkiz/__init__.py", line 163, in async_setup_entry
    await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2278, in async_forward_entry_setups
    await integration.async_get_platforms(platforms)
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1185, in async_get_platforms
    import_future.result()
    ~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1185, in async_get_platforms
    import_future.result()
    ~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1185, in async_get_platforms
    import_future.result()
    ~~~~~~~~~~~~~~~~~~~~^^
  [Previous line repeated 1 more time]
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1173, in async_get_platforms
    platforms.update(self._load_platforms(platform_names))
                     ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1098, in _load_platforms
    platform_name: self._load_platform(platform_name)
                   ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1292, in _load_platform
    raise ImportError(
        f"Exception importing {self.pkg_path}.{platform_name}"
    ) from err
ImportError: Exception importing homeassistant.components.overkiz.sensor

@PvaI
Copy link

PvaI commented Jan 28, 2025

Overkiz from core still doesn't work, home-assistant/core#128438 hasn't been touched.
I'm rolling back to a 2024 version.

Is there any chance you have a look at this issue or the official integration?

@qlaffont
Copy link

qlaffont commented Feb 4, 2025

Any update on this one @iMicknl ?

@iMicknl
Copy link
Owner

iMicknl commented Feb 4, 2025

No updates planned to this custom component at the moment. Focus is on fixing bugs / adding features to the core integration.

@qlaffont
Copy link

qlaffont commented Feb 4, 2025

And for core integration is it planned to support connectivity kit ?

@iMicknl
Copy link
Owner

iMicknl commented Feb 5, 2025

And for core integration is it planned to support connectivity kit ?

Connectivity Kit is already supported since day one... What is your issue? Are specific devices not supported perhaps?

@PvaI
Copy link

PvaI commented Feb 5, 2025

I've modified the core integration and it now works for me, although I'm still not able to change the operation mode. I've changed the call to always set the mode to the mode (manual eco inactive) in which I can control the device, as I don't want it to start heating when energy prices are high and I want it to use the coil (State electric) when Im generating a lot of solar power.

I've enabled debugging, but I'm only getting the following error : Error fetching device events data: Too many requests, try again later.

If I set the mode in the call below, that I've changed, the 'human readable' mode is reflected correctly in Home Assistant as eco, electric, performance or heat_pump.
If I go to the device and try to set the mode there, the modes listed are: manualEcoActive, manualEcoInactive and autoMode which are the modes defined in the overkiz component, not the 'human readable' modes from component water_heater. And trying to set them fails.

In : await self.executor.async_execute_command
OverkizCommand.SET_DHW_MODE, self.operation_mode_to_overkiz[operation_mode]
doesn't work for the Atlantic Explorer V4, however, changing it to :
OverkizCommand.SET_DHW_MODE, OverkizCommandParam.MANUAL_ECO_INACTIVE
does work fine and shows the mode in human format in the interface.

I can't find where operation_mode is mapped to the modes from the water_heater component.
I'll add these comments to #128438, could you have a look?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants