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

Not able to connect to GW #36

Open
pissten opened this issue Jan 8, 2025 · 2 comments
Open

Not able to connect to GW #36

pissten opened this issue Jan 8, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@pissten
Copy link

pissten commented Jan 8, 2025

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`
@pissten pissten added the bug Something isn't working label Jan 8, 2025
@pissten
Copy link
Author

pissten commented Jan 8, 2025

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

@Breina
Copy link
Owner

Breina commented Jan 24, 2025

On 2025.1.4, this does work, I can't reproduce your error. :(

This code path is only triggered when attempting to discover panel servers, you should still be able to manually configure it instead.

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

2 participants