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

problems with connection to mgw-lan #113

Open
Seqway opened this issue Jun 23, 2024 · 8 comments
Open

problems with connection to mgw-lan #113

Seqway opened this issue Jun 23, 2024 · 8 comments
Assignees

Comments

@Seqway
Copy link

Seqway commented Jun 23, 2024

I followed the documentation but I do not know how to connect to my LAN Gateway. The doc says:

`eltako:
gateway:

  • id: 1
    device_type: mgw-lan
    base_id: FF-80-80-00 # baseId of LAN gateway`

How do I find the base-id ?
the ID from my FAM14 is it not because it seems not to connect to it.

@Seqway Seqway changed the title problems with connection to mow-lan problems with connection to mgw-lan Jun 23, 2024
@grimmpp
Copy link
Owner

grimmpp commented Jun 23, 2024

You can find out the base if with e.g. eo_man

In the config ip address is missing in field address.

@Seqway
Copy link
Author

Seqway commented Jun 24, 2024

You can find out the base if with e.g. eo_man

In the config ip address is missing in field address.

I didnt postet it but it is in the config.yaml:

`eltako:
gateway:

  • id: 1
    device_type: mgw-lan
    base_id: FF-A4-74-00 # baseId of LAN gateway
    address: 192.168.40.231 # address is only required for LAN gateway`

@grimmpp
Copy link
Owner

grimmpp commented Jun 24, 2024

Do you have maybe any logs which let us know what is going wrong?

@Seqway
Copy link
Author

Seqway commented Jun 24, 2024

Do you have maybe any logs which let us know what is going wrong?

Yes I can send logs. But I need to know how to do it to send properly information to you. So where to look in HA and send it to you ?

Detected blocking call to open inside the event loop by custom integration 'eltako' at custom_components/eltako/gateway.py, line 131: from esp2_gateway_adapter.esp3_tcp_com import TCP2SerialCommunicator (offender: /usr/local/lib/python3.12/site-packages/enocean/protocol/eep.py, line 24: with open(eep_path, 'r', encoding='UTF-8') as xml_file:), please create a bug report at https://github.com/grimmpp/home-assistant-eltako/issues Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/usr/src/homeassistant/homeassistant/__main__.py", line 223, in <module> sys.exit(main()) File "/usr/src/homeassistant/homeassistant/__main__.py", line 209, in main exit_code = runner.run(runtime_conf) File "/usr/src/homeassistant/homeassistant/runner.py", line 190, in run return loop.run_until_complete(setup_and_run_hass(runtime_config)) File "/usr/local/lib/python3.12/asyncio/base_events.py", line 672, in run_until_complete self.run_forever() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 639, in run_forever self._run_once() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1988, in _run_once handle._run() File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 742, in async_setup_locked await self.async_setup(hass, integration=integration) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 594, in async_setup result = await component.async_setup_entry(hass, self) File "/config/custom_components/eltako/eltako_integration_init.py", line 134, in async_setup_entry usb_gateway = EnOceanGateway(general_settings, hass, gateway_id, gateway_device_type, gateway_serial_path, baud_rate, gateway_base_id, gateway_name, config_entry) File "/config/custom_components/eltako/gateway.py", line 79, in __init__ self._init_bus() File "/config/custom_components/eltako/gateway.py", line 131, in _init_bus from esp2_gateway_adapter.esp3_tcp_com import TCP2SerialCommunicator Detected blocking call to open inside the event loop by custom integration 'icloud3' at custom_components/icloud3/support/hacs_ic3.py, line 70: with open(hacs_repository_file, 'r') as f: (offender: /config/custom_components/icloud3/support/hacs_ic3.py, line 70: with open(hacs_repository_file, 'r') as f:), please create a bug report at https://github.com/gcobb321/icloud3_v3/issues Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/usr/src/homeassistant/homeassistant/__main__.py", line 223, in <module> sys.exit(main()) File "/usr/src/homeassistant/homeassistant/__main__.py", line 209, in main exit_code = runner.run(runtime_conf) File "/usr/src/homeassistant/homeassistant/runner.py", line 190, in run return loop.run_until_complete(setup_and_run_hass(runtime_config)) File "/usr/local/lib/python3.12/asyncio/base_events.py", line 672, in run_until_complete self.run_forever() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 639, in run_forever self._run_once() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1988, in _run_once handle._run() File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/config/custom_components/icloud3/support/hacs_ic3.py", line 38, in check_hacs_icloud3_update_available hacs_ic3_items = _get_hacs_ic3_data(hacs_repository_file) File "/config/custom_components/icloud3/support/hacs_ic3.py", line 70, in _get_hacs_ic3_data with open(hacs_repository_file, 'r') as f:

Logger: eltakobus.tcp2serial Quelle: /usr/local/lib/python3.12/site-packages/esp2_gateway_adapter/esp3_tcp_com.py:127 Erstmals aufgetreten: 10:57:31 (22 Vorkommnisse) Zuletzt protokolliert: 11:01:08 [Errno 111] Connection refused

@grimmpp
Copy link
Owner

grimmpp commented Jun 25, 2024

I found something which I could fix. However I could not reproduce you issue. Can you test the new version? I already merged it into main but didn't create a new release.

@grimmpp grimmpp self-assigned this Jun 25, 2024
@Seqway
Copy link
Author

Seqway commented Jun 27, 2024

I found something which I could fix. However I could not reproduce you issue. Can you test the new version? I already merged it into main but didn't create a new release.

Ok i installed the new version and with my port number I do get a connection BUT it is every 10 sec ON and the OFF. This is done every 10 sec.
Pretty similar to someone else - see also forum

@grimmpp
Copy link
Owner

grimmpp commented Jul 1, 2024

My assumption is that your gateways either sends a different keep alive message or nothing. After 10sec the integration thinks there is a problem and tries to reconnect.
You can now disable this function. by using auto_reconnect: False in the config. Better would be to add the keep alive message from your device.

@legnad
Copy link

legnad commented Aug 19, 2024

I can confirm that setting auto_reconnect: False solves the 10 sec ON/OFF connection issue on my device (Piotek FAM-USB 515 via Ser2Net).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants