home-assistant-eltako icon indicating copy to clipboard operation
home-assistant-eltako copied to clipboard

Problem with Enocean USB300 as Gateway device

Open lerteng opened this issue 6 months ago • 3 comments

Hello,

I followed the documentation and installed home-assistant-eltako via HACS and added the following lines to the configuration.yaml.

eltako:
  gateway:
  - id: 1
    base_id: FF-A6-DA-00        # baseId of USB300 gateway
    device_type: enocean-usb300

Unfortunatley the Eltako Integration cannot be startet, see following messages from the log:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 604, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/eltako/eltako_integration_init.py", line 140, in async_setup_entry
    usb_gateway = EnOceanGateway(general_settings, hass, gateway_id, gateway_device_type, gateway_serial_path, baud_rate, port, gateway_base_id, gateway_name, auto_reconnect, config_entry)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/eltako/gateway.py", line 81, in __init__
    self._init_bus()
  File "/config/custom_components/eltako/gateway.py", line 145, in _init_bus
    from esp2_gateway_adapter.esp3_serial_com import ESP3SerialCommunicator
  File "/usr/local/lib/python3.12/site-packages/esp2_gateway_adapter/esp3_serial_com.py", line 13, in <module>
    from enocean.protocol.packet import Packet, RadioPacket, RORG, PACKET, UTETeachInPacket
ImportError: cannot import name 'UTETeachInPacket' from 'enocean.protocol.packet' (/usr/local/lib/python3.12/site-packages/enocean/protocol/packet.py)

A manual installation via the custom_components folder led to the same behavior. The import of UTETeachInPacket in the python packages esp2_gateway_adapter seems not to work.

Does anyone have any idea what the problem could be and how to fix it?

grafik

lerteng avatar Aug 12 '24 10:08 lerteng