Skip to content

Not able to connect to GW #36

Description

@pissten

Describe the bug
After upgrade to 2025.1.x i cannot make integration connection to PowerTag Link anymore.

Versions

  • HomeAssistant 2025.1.1
  • Integration: v1.5.0

Logs

Manual add gateway:
`[ Logger: root
Kilde: custom_components/powertag_gateway/config_flow.py:170
integrasjon: PowerTag Link Gateway (dokumentasjon, problemer)
Første forekomst: 17:45:16 (14 forekomster)
Sist logget: 17:50:39
502
Traceback (most recent call last):
File "/config/custom_components/powertag_gateway/config_flow.py", line 170, in async_step_configure
return await self.async_step_connect()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/powertag_gateway/config_flow.py", line 215, in async_step_connect
self.client = SchneiderModbus(self.host, type_of_gateway, self.port)

File "/config/custom_components/powertag_gateway/schneider_modbus.py", line 194, in init
self.client = ModbusTcpClient(host, port, timeout=timeout)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/pymodbus/client/tcp.py", line 151, in init
super().init(framer, retries)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/pymodbus/client/base.py", line 191, in init
self.framer: FramerBase = (FRAMER_NAME_TO_CLASS[framer])(DecodePDU(False))
~~~~~~~~~~~~~~~~~~~~^^^^^^^^
KeyError: 502]`

Discovery:
`2025-01-09 00:26:10.357 INFO (SyncWorker_21) [custom_components.powertag_gateway.soap_communication] Attempting to discover EnergyTag Gateway 2025-01-09 00:26:13.447 INFO (MainThread) [custom_components.powertag_gateway.config_flow] Found 2 candidates... 2025-01-09 00:26:13.447 INFO (MainThread) [custom_components.powertag_gateway.soap_communication] Attempting to discover EnergyTag Gateway File "/config/custom_components/powertag_gateway/config_flow.py", line 138, in async_step_discover File "/config/custom_components/powertag_gateway/config_flow.py", line 62, in async_discovery File "/config/custom_components/powertag_gateway/soap_communication.py", line 42, in dpws_discovery RuntimeError: Caught blocking call to sleep with args (3,) inside the event loop by custom integration 'powertag_gateway' at custom_components/powertag_gateway/soap_communication.py, line 42: services = wsd.searchServices(types=[QName(NAMESPACE_SCHNEIDER, LOCAL_NAME_GATEWAY_SERVER)]). (offender: /usr/local/lib/python3.13/site-packages/wsdiscovery/discovery.py, line 127: time.sleep(timeout)), please create a bug report at https://github.com/Breina/PowerTagGateway/issues`

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions