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

Nibe integration fails to setup, exceptions #117198

Closed
benv666 opened this issue May 10, 2024 · 4 comments
Closed

Nibe integration fails to setup, exceptions #117198

benv666 opened this issue May 10, 2024 · 4 comments

Comments

@benv666
Copy link

benv666 commented May 10, 2024

The problem

I'm trying to setup ESPHome + NibeGW hooked up through modbus with an ESP32+RS485 module attached to my SMO40 controller. I've reused the same module that ran NibePi earlier, since I'm trying to free up this pi.
This seemed to have setup correctly, the unit is visible in Home Assistant and the logs show data being sent, e.g.:

[14:34:23][D][nibegw:025]: UDP Packet with 6 bytes to send
[14:34:23][D][nibegw:025]: UDP Packet with 37 bytes to send
[14:34:23][D][nibegw:025]: UDP Packet with 6 bytes to send

etc. These packets are also observed through tcpdump as reaching the Home Assistant machine.

However, when I try to add the Nibe Heatpump integration the confusion starts, can't get it to work.
First question is the Model of the Heatpump - it's a F2120-12 connected to the SMO40.
I've tried both SMO40 and Custom, the first takes a few seconds and then gives this lovely error:
nibegw-integration
Custom immediately fails with "unexpected error", the logs show it searching for a file or directory called custom. Needs more docs.

The most promising option (SMO40) also produces some hopeful looking log entries where it seems to parse incoming packets for a bit, but then fails.
It claims homeassistant.components.nibe_heatpump.config_flow.FieldError: Timeout on read from pump, but it spouts a few other exceptions before that, so not sure what the problem is.

Relevant logs below.

What version of Home Assistant Core has the issue?

core-2024.5.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

nibe_heatpump

Link to integration documentation on our website

https://www.home-assistant.io/integrations/nibe_heatpump

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2024-05-10 16:29:53.579 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil bt1-outdoor-temperature-40004, value: 21.1
2024-05-10 16:29:53.579 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil bt1-outdoor-temperature-40004, value: 21.1
2024-05-10 16:29:53.579 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil bt7-hw-top-40013, value: 51.8
2024-05-10 16:29:53.579 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil bt7-hw-top-40013, value: 51.8
2024-05-10 16:29:53.579 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil heat-offset-s1-47011, value: 1.0
2024-05-10 16:29:53.579 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil heat-offset-s1-47011, value: 1.0
2024-05-10 16:29:53.579 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil heat-offset-s2-47010, value: 0.0
2024-05-10 16:29:53.579 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil heat-offset-s2-47010, value: 0.0
2024-05-10 16:29:53.579 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil heat-offset-s3-47009, value: 0.0
2024-05-10 16:29:53.579 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil heat-offset-s3-47009, value: 0.0
2024-05-10 16:29:53.579 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil heat-offset-s4-47008, value: 0.0
2024-05-10 16:29:53.579 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil heat-offset-s4-47008, value: 0.0
2024-05-10 16:29:53.579 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil temporary-lux-48132, value: OFF
2024-05-10 16:29:53.579 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil temporary-lux-48132, value: OFF
2024-05-10 16:29:53.579 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil alarm-45001, value: 0
2024-05-10 16:29:53.579 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil alarm-45001, value: 0
2024-05-10 16:29:53.579 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil operational-mode-47137, value: AUTO
2024-05-10 16:29:53.579 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil operational-mode-47137, value: AUTO
2024-05-10 16:29:53.579 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil hw-production-47387, value: ON
2024-05-10 16:29:53.579 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil hw-production-47387, value: ON
2024-05-10 16:29:53.579 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil bt50-room-temp-s1-40033, value: 22.8
2024-05-10 16:29:53.579 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil bt50-room-temp-s1-40033, value: 22.8
2024-05-10 16:29:55.559 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil bt1-outdoor-temperature-40004, value: 21.0
2024-05-10 16:29:55.559 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil bt1-outdoor-temperature-40004, value: 21.0
2024-05-10 16:29:55.559 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil bt7-hw-top-40013, value: 51.8
2024-05-10 16:29:55.559 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil bt7-hw-top-40013, value: 51.8
2024-05-10 16:29:55.559 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil heat-offset-s1-47011, value: 1.0
2024-05-10 16:29:55.559 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil heat-offset-s1-47011, value: 1.0
2024-05-10 16:29:55.559 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil heat-offset-s2-47010, value: 0.0
2024-05-10 16:29:55.559 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil heat-offset-s2-47010, value: 0.0
2024-05-10 16:29:55.559 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil heat-offset-s3-47009, value: 0.0
2024-05-10 16:29:55.559 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil heat-offset-s3-47009, value: 0.0
2024-05-10 16:29:55.559 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil heat-offset-s4-47008, value: 0.0
2024-05-10 16:29:55.559 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil heat-offset-s4-47008, value: 0.0
2024-05-10 16:29:55.559 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil temporary-lux-48132, value: OFF
2024-05-10 16:29:55.559 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil temporary-lux-48132, value: OFF
2024-05-10 16:29:55.559 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil alarm-45001, value: 0
2024-05-10 16:29:55.560 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil alarm-45001, value: 0
2024-05-10 16:29:55.560 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil operational-mode-47137, value: AUTO
2024-05-10 16:29:55.560 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil operational-mode-47137, value: AUTO
2024-05-10 16:29:55.560 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil hw-production-47387, value: ON
2024-05-10 16:29:55.560 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil hw-production-47387, value: ON
2024-05-10 16:29:55.560 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil bt50-room-temp-s1-40033, value: 22.8
2024-05-10 16:29:55.560 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil bt50-room-temp-s1-40033, value: 22.8
2024-05-10 16:29:57.559 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil bt1-outdoor-temperature-40004, value: 21.1
2024-05-10 16:29:57.559 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil bt1-outdoor-temperature-40004, value: 21.1
2024-05-10 16:29:57.559 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil bt7-hw-top-40013, value: 51.8
2024-05-10 16:29:57.559 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil bt7-hw-top-40013, value: 51.8
2024-05-10 16:29:57.559 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil heat-offset-s1-47011, value: 1.0
2024-05-10 16:29:57.559 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil heat-offset-s1-47011, value: 1.0
2024-05-10 16:29:57.559 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil heat-offset-s2-47010, value: 0.0
2024-05-10 16:29:57.559 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil heat-offset-s2-47010, value: 0.0
2024-05-10 16:29:57.559 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil heat-offset-s3-47009, value: 0.0
2024-05-10 16:29:57.559 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil heat-offset-s3-47009, value: 0.0
2024-05-10 16:29:57.559 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil heat-offset-s4-47008, value: 0.0
2024-05-10 16:29:57.559 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil heat-offset-s4-47008, value: 0.0
2024-05-10 16:29:57.559 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil temporary-lux-48132, value: OFF
2024-05-10 16:29:57.559 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil temporary-lux-48132, value: OFF
2024-05-10 16:29:57.559 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil alarm-45001, value: 0
2024-05-10 16:29:57.559 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil alarm-45001, value: 0
2024-05-10 16:29:57.559 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil operational-mode-47137, value: AUTO
2024-05-10 16:29:57.559 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil operational-mode-47137, value: AUTO
2024-05-10 16:29:57.560 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil hw-production-47387, value: ON
2024-05-10 16:29:57.560 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil hw-production-47387, value: ON
2024-05-10 16:29:57.560 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil bt50-room-temp-s1-40033, value: 22.8
2024-05-10 16:29:57.560 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil bt50-room-temp-s1-40033, value: 22.8
2024-05-10 16:29:59.550 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil bt1-outdoor-temperature-40004, value: 21.1
2024-05-10 16:29:59.550 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil bt1-outdoor-temperature-40004, value: 21.1
2024-05-10 16:29:59.550 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil bt7-hw-top-40013, value: 51.8
2024-05-10 16:29:59.550 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil bt7-hw-top-40013, value: 51.8
2024-05-10 16:29:59.550 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil heat-offset-s1-47011, value: 1.0
2024-05-10 16:29:59.550 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil heat-offset-s1-47011, value: 1.0
2024-05-10 16:29:59.550 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil heat-offset-s2-47010, value: 0.0
2024-05-10 16:29:59.550 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil heat-offset-s2-47010, value: 0.0
2024-05-10 16:29:59.550 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil heat-offset-s3-47009, value: 0.0
2024-05-10 16:29:59.550 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil heat-offset-s3-47009, value: 0.0
2024-05-10 16:29:59.550 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil heat-offset-s4-47008, value: 0.0
2024-05-10 16:29:59.550 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil heat-offset-s4-47008, value: 0.0
2024-05-10 16:29:59.550 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil temporary-lux-48132, value: OFF
2024-05-10 16:29:59.550 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil temporary-lux-48132, value: OFF
2024-05-10 16:29:59.550 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil alarm-45001, value: 0
2024-05-10 16:29:59.550 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil alarm-45001, value: 0
2024-05-10 16:29:59.550 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil operational-mode-47137, value: AUTO
2024-05-10 16:29:59.551 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil operational-mode-47137, value: AUTO
2024-05-10 16:29:59.551 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil hw-production-47387, value: ON
2024-05-10 16:29:59.551 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil hw-production-47387, value: ON
2024-05-10 16:29:59.551 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil bt50-room-temp-s1-40033, value: 22.8
2024-05-10 16:29:59.551 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil bt50-room-temp-s1-40033, value: 22.8
2024-05-10 16:29:59.555 WARNING (MainThread) [nibe.nibe.connection.nibegw] Ignoring packet from ('192.168.178.81', 9999) due to parse error: d0f281f88bff9af7d5ef94b6d1b4c09fec95e68fe187e8caf08bf68bf6:
2024-05-10 16:30:01.551 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil bt1-outdoor-temperature-40004, value: 21.1
2024-05-10 16:30:01.551 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil bt1-outdoor-temperature-40004, value: 21.1
2024-05-10 16:30:01.551 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil bt7-hw-top-40013, value: 51.8
2024-05-10 16:30:01.551 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil bt7-hw-top-40013, value: 51.8
2024-05-10 16:30:01.551 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil heat-offset-s1-47011, value: 1.0
2024-05-10 16:30:01.551 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil heat-offset-s1-47011, value: 1.0
2024-05-10 16:30:01.551 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil heat-offset-s2-47010, value: 0.0
2024-05-10 16:30:01.551 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil heat-offset-s2-47010, value: 0.0
2024-05-10 16:30:01.551 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil heat-offset-s3-47009, value: 0.0
2024-05-10 16:30:01.551 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil heat-offset-s3-47009, value: 0.0
2024-05-10 16:30:01.551 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil heat-offset-s4-47008, value: 0.0
2024-05-10 16:30:01.551 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil heat-offset-s4-47008, value: 0.0
2024-05-10 16:30:01.551 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil temporary-lux-48132, value: OFF
2024-05-10 16:30:01.551 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil temporary-lux-48132, value: OFF
2024-05-10 16:30:01.551 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil alarm-45001, value: 0
2024-05-10 16:30:01.551 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil alarm-45001, value: 0
2024-05-10 16:30:01.551 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil operational-mode-47137, value: AUTO
2024-05-10 16:30:01.551 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil operational-mode-47137, value: AUTO
2024-05-10 16:30:01.551 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil hw-production-47387, value: ON
2024-05-10 16:30:01.551 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil hw-production-47387, value: ON
2024-05-10 16:30:01.552 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil bt50-room-temp-s1-40033, value: 22.8
2024-05-10 16:30:01.552 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil bt50-room-temp-s1-40033, value: 22.8
<*snip more of the same*>
2024-05-10 16:30:05.739 WARNING (MainThread) [nibe.nibe.connection.nibegw] Ignoring packet from ('192.168.178.29', 9999) due to parse error: d0f281f88bff9af7d5ef94b6d1b4c09fec95e68fe187e8caf08bf68bf6:
2024-05-10 16:30:07.564 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil bt1-outdoor-temperature-40004, value: 21.1
2024-05-10 16:30:07.564 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil bt1-outdoor-temperature-40004, value: 21.1
2024-05-10 16:30:07.564 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil bt7-hw-top-40013, value: 51.8
2024-05-10 16:30:07.564 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil bt7-hw-top-40013, value: 51.8
2024-05-10 16:30:07.564 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil heat-offset-s1-47011, value: 1.0
2024-05-10 16:30:07.564 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil heat-offset-s1-47011, value: 1.0
2024-05-10 16:30:07.564 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil heat-offset-s2-47010, value: 0.0
2024-05-10 16:30:07.564 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil heat-offset-s2-47010, value: 0.0
2024-05-10 16:30:07.564 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil heat-offset-s3-47009, value: 0.0
2024-05-10 16:30:07.564 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil heat-offset-s3-47009, value: 0.0
2024-05-10 16:30:07.564 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil heat-offset-s4-47008, value: 0.0
2024-05-10 16:30:07.564 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil heat-offset-s4-47008, value: 0.0
2024-05-10 16:30:07.564 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil temporary-lux-48132, value: OFF
2024-05-10 16:30:07.564 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil temporary-lux-48132, value: OFF
2024-05-10 16:30:07.564 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil alarm-45001, value: 0
2024-05-10 16:30:07.564 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil alarm-45001, value: 0
2024-05-10 16:30:07.564 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil operational-mode-47137, value: AUTO
2024-05-10 16:30:07.564 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil operational-mode-47137, value: AUTO
2024-05-10 16:30:07.564 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil hw-production-47387, value: ON
2024-05-10 16:30:07.564 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil hw-production-47387, value: ON
2024-05-10 16:30:07.564 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil bt50-room-temp-s1-40033, value: 22.8
2024-05-10 16:30:07.564 INFO (MainThread) [nibe.nibe.connection.nibegw] Coil bt50-room-temp-s1-40033, value: 22.8
2024-05-10 16:30:08.325 ERROR (MainThread) [homeassistant.components.nibe_heatpump] Validation error
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/asyncio/tasks.py", line 520, in wait_for
    return await fut
           ^^^^^^^^^
asyncio.exceptions.CancelledError

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

Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/nibe/connection/nibegw.py", line 278, in read_coil
    return await asyncio.wait_for(future, timeout)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/asyncio/tasks.py", line 519, in wait_for
    async with timeouts.timeout(timeout):
  File "/usr/local/lib/python3.12/asyncio/timeouts.py", line 115, in __aexit__
    raise TimeoutError from exc_val
TimeoutError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/nibe_heatpump/config_flow.py", line 111, in validate_nibegw_input
    await connection.verify_connectivity()
  File "/usr/local/lib/python3.12/site-packages/nibe/connection/nibegw.py", line 468, in verify_connectivity
    await verify_connectivity_read_write_alarm(self, self._heatpump)
  File "/usr/local/lib/python3.12/site-packages/nibe/connection/__init__.py", line 91, in verify_connectivity_read_write_alarm
    coil_data = await connection.read_coil(coil)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/tenacity/_asyncio.py", line 88, in async_wrapped
    return await fn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/tenacity/_asyncio.py", line 47, in __call__
    do = self.iter(retry_state=retry_state)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/tenacity/__init__.py", line 325, in iter
    raise retry_exc.reraise()
          ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/tenacity/__init__.py", line 158, in reraise
    raise self.last_attempt.result()
          ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/concurrent/futures/_base.py", line 449, in result
    return self.__get_result()
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result
    raise self._exception
  File "/usr/local/lib/python3.12/site-packages/tenacity/_asyncio.py", line 50, in __call__
    result = await fn(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/nibe/connection/nibegw.py", line 280, in read_coil
    raise ReadTimeoutException(
nibe.exceptions.ReadTimeoutException: Timeout waiting for read response for alarm-reset-45171

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

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/nibe_heatpump/config_flow.py", line 218, in async_step_nibegw
    title, data = await validate_nibegw_input(self.hass, user_input)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/nibe_heatpump/config_flow.py", line 117, in validate_nibegw_input
    raise FieldError("Timeout on read from pump", "base", "read") from exception
homeassistant.components.nibe_heatpump.config_flow.FieldError: Timeout on read from pump

Additional information

No response

@home-assistant
Copy link

Hey there @elupus, mind taking a look at this issue as it has been labeled with an integration (nibe_heatpump) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of nibe_heatpump can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign nibe_heatpump Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


nibe_heatpump documentation
nibe_heatpump source
(message by IssueLinks)

@elupus
Copy link
Contributor

elupus commented May 10, 2024

What is your nibegw config?. Not sure what nibepi has to do with anything.

@elupus
Copy link
Contributor

elupus commented May 10, 2024

It looks like your gw device is either not receiving the requests from home assistant, or not able to send them to the pump.

@benv666
Copy link
Author

benv666 commented May 10, 2024

Hej @elupus,

Nibepi has nothing to do with it, apart from proving to me that the modbus module works.

Meanwhile I've figured out my failure: modbus40 needed to be enabled in the SMO40. This was not clear to me, but now that I've gone through it, it's obvious.

Thanks!

@benv666 benv666 closed this as completed May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants