You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
im trying to debug the discovery of my heatpump. As mentioned in Discussion 311 it returns None as heatpump model.
Is a similar behavior known?
Using current main branch.
Heatpump: LD9V
Luxtronik: V3.89.5
While doing so, I'm confused about the [...] wrong content, skipping debug message:
2025-01-01 10:18:55.738 DEBUG (MainThread) [custom_components.luxtronik2] Received response from 192.168.3.159 ['2500', '111', '8889', '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00']
2025-01-01 10:18:55.738 DEBUG (MainThread) [custom_components.luxtronik2] Received response from 192.168.3.159, but with wrong content, skipping
Are the zero-bytes a special feature of my current firmware / heatpump or is it an acceptable behavior?
Could somebody check his discovery? In case it is the intended behavior I would like to suggest following changes:
"Received response from %s %s", ip_address, str(res_list)
)
try:
res_port: int|None=int(res_list[2])
ifres_portisNoneorres_port<1orres_port>65535:
LOGGER.debug("Response contained an invalid port, ignoring")
res_port=None
exceptValueError:
res_port=None
ifres_portisNone:
LOGGER.debug(
"Response did not contain a valid port number,"
"an old Luxtronic software version might be the reason"
)
results.append((ip_address, res_port))
LOGGER.debug(
"Received response from %s, but with wrong content, skipping",
ip_address,
)
continue
The debug in line 86 says we are skipping this device, but essentially we keep using it, as it is returned.
Shouldn't the continue after line 85 be contained at the end of the if block, after the results.append((ip_address, res_port)), as Luxtronik replied with a acceptable discovery response?
ifres.startswith(LUXTRONIK_DISCOVERY_RESPONSE_PREFIX):
res_list=res.split(";")
LOGGER.debug(
"Received response from %s %s", ip_address, str(res_list)
)
try:
res_port: int|None=int(res_list[2])
ifres_portisNoneorres_port<1orres_port>65535:
LOGGER.debug("Response contained an invalid port, ignoring")
res_port=NoneexceptValueError:
res_port=Noneifres_portisNone:
LOGGER.debug(
"Response did not contain a valid port number,""an old Luxtronic software version might be the reason"
)
results.append((ip_address, res_port))
continueLOGGER.debug(
"Received response from %s, but with wrong content, skipping",
ip_address,
)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello everbody,
im trying to debug the discovery of my heatpump. As mentioned in Discussion 311 it returns
None
as heatpump model.Is a similar behavior known?
Using current main branch.
Heatpump: LD9V
Luxtronik: V3.89.5
While doing so, I'm confused about the
[...] wrong content, skipping
debug message:Are the zero-bytes a special feature of my current firmware / heatpump or is it an acceptable behavior?
Could somebody check his discovery? In case it is the intended behavior I would like to suggest following changes:
Looking at:
luxtronik/custom_components/luxtronik/lux_helper.py
Lines 68 to 90 in 9e7f06c
The debug in line 86 says we are skipping this device, but essentially we keep using it, as it is returned.
Shouldn't the continue after line 85 be contained at the end of the if block, after the
results.append((ip_address, res_port))
, as Luxtronik replied with a acceptable discovery response?Beta Was this translation helpful? Give feedback.
All reactions