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

ValueError: 523 is not a valid KNXIPServiceType #279

Closed
1 of 2 tasks
bluecmd opened this issue Apr 25, 2020 · 3 comments · Fixed by #541
Closed
1 of 2 tasks

ValueError: 523 is not a valid KNXIPServiceType #279

bluecmd opened this issue Apr 25, 2020 · 3 comments · Fixed by #541

Comments

@bluecmd
Copy link

bluecmd commented Apr 25, 2020

Description of problem:

Exception thrown when programming KNX application and running HA.

Apr 25 15:49:10 homeassistant hass[3550]: 2020-04-25 15:49:10 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback _SelectorDatagramTransport._read_ready()
Apr 25 15:49:10 homeassistant hass[3550]: ValueError: 523 is not a valid KNXIPServiceType
  • using xknx standalone
  • using Home-Assistant knx plugin

Version information:

  • xknx / Home-Assistant release with the issue: HA: version | 0.108.3
  • last working xknx / Home-Assistant release (if known):

KNX installation:

Using a LineMaster 762 IP gateway, HA using IP Router with the same Layer-2 as the LineMaster.

Problem-relevant xknx.yaml or configuration.yaml entries (fill out even if it seems unimportant):

general:
  own_address: '9.1.1'
connection:
  routing:

Traceback (if applicable):

Apr 25 15:49:10 homeassistant hass[3550]: 2020-04-25 15:49:10 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback _SelectorDatagramTransport._read_ready()
Apr 25 15:49:10 homeassistant hass[3550]: ValueError: 523 is not a valid KNXIPServiceType
Apr 25 15:49:10 homeassistant hass[3550]: During handling of the above exception, another exception occurred:
Apr 25 15:49:10 homeassistant hass[3550]: Traceback (most recent call last):
Apr 25 15:49:10 homeassistant hass[3550]:   File "/usr/lib/python3.7/asyncio/events.py", line 88, in _run
Apr 25 15:49:10 homeassistant hass[3550]:     self._context.run(self._callback, *self._args)
Apr 25 15:49:10 homeassistant hass[3550]:   File "/usr/lib/python3.7/asyncio/selector_events.py", line 965, in _read_ready
Apr 25 15:49:10 homeassistant hass[3550]:     self._protocol.datagram_received(data, addr)
Apr 25 15:49:10 homeassistant hass[3550]:   File "/home/homeassistant/app/lib/python3.7/site-packages/xknx/io/udp_client.py", line 55, in datagram_received
Apr 25 15:49:10 homeassistant hass[3550]:     self.data_received_callback(data)
Apr 25 15:49:10 homeassistant hass[3550]:   File "/home/homeassistant/app/lib/python3.7/site-packages/xknx/io/udp_client.py", line 87, in data_received_callback
Apr 25 15:49:10 homeassistant hass[3550]:     knxipframe.from_knx(raw)
Apr 25 15:49:10 homeassistant hass[3550]:   File "/home/homeassistant/app/lib/python3.7/site-packages/xknx/knxip/knxip.py", line 75, in from_knx
Apr 25 15:49:10 homeassistant hass[3550]:     pos = self.header.from_knx(data)
Apr 25 15:49:10 homeassistant hass[3550]:   File "/home/homeassistant/app/lib/python3.7/site-packages/xknx/knxip/header.py", line 34, in from_knx
Apr 25 15:49:10 homeassistant hass[3550]:     self.service_type_ident = KNXIPServiceType(data[2] * 256 + data[3])
Apr 25 15:49:10 homeassistant hass[3550]:   File "/usr/lib/python3.7/enum.py", line 310, in __call__
Apr 25 15:49:10 homeassistant hass[3550]:     return cls.__new__(cls, value)
Apr 25 15:49:10 homeassistant hass[3550]:   File "/usr/lib/python3.7/enum.py", line 564, in __new__
Apr 25 15:49:10 homeassistant hass[3550]:     raise exc
Apr 25 15:49:10 homeassistant hass[3550]:   File "/usr/lib/python3.7/enum.py", line 548, in __new__
Apr 25 15:49:10 homeassistant hass[3550]:     result = cls._missing_(value)
Apr 25 15:49:10 homeassistant hass[3550]:   File "/usr/lib/python3.7/enum.py", line 577, in _missing_
Apr 25 15:49:10 homeassistant hass[3550]:     raise ValueError("%r is not a valid %s" % (value, cls.__name__))
Apr 25 15:49:10 homeassistant hass[3550]: ValueError: 523 is not a valid KNXIPServiceType
@farmio
Copy link
Member

farmio commented Apr 25, 2020

Hi!
Thank you for reporting. As you said it should only occur when programming devices (523 is A_Memory_Read-service).
The error should be fixed by #271 - which will be included in the next release.

@bluecmd
Copy link
Author

bluecmd commented Apr 25, 2020

Perfect! :-) Let's close this and I can re-open it if the referenced fix for some reason doesn't work for this issue.

Thanks for the quick reply and really cool library!

@bluecmd bluecmd closed this as completed Apr 25, 2020
@bluecmd bluecmd reopened this Apr 28, 2020
@bluecmd bluecmd closed this as completed Apr 28, 2020
@farmio
Copy link
Member

farmio commented Dec 21, 2020

So this is back again when using routing. It appears when I choose an Interface in ETS (open dropdown menu).
Seems this is a "SearchRequestExtended" - can't find it in the specs... 🙄

@farmio farmio reopened this Dec 21, 2020
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

Successfully merging a pull request may close this issue.

2 participants