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

flexit_bacnet.bacnet.DecodingError: unsupported response type: 7 #17

Open
lellky opened this issue Jan 12, 2024 · 1 comment
Open

flexit_bacnet.bacnet.DecodingError: unsupported response type: 7 #17

lellky opened this issue Jan 12, 2024 · 1 comment
Assignees

Comments

@lellky
Copy link
Contributor

lellky commented Jan 12, 2024

Trying to implement sensors in the home assistant integration flexit_bacnet craches after a while (probably when polling sensor values). It seems to work the first time.

Here is the added code in core: lellky/core@3cfb6b9

This is the error output:

2024-01-12 08:35:25.561 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.hvacfnct21y_a_exhaust_air_fan_control_signal fails
Traceback (most recent call last):
  File "/Users/lellky/Projects/core/venv/lib/python3.11/site-packages/flexit_bacnet/bacnet.py", line 490, in read_multiple
    return _parse_read_property_multiple_response(response)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/lellky/Projects/core/venv/lib/python3.11/site-packages/flexit_bacnet/bacnet.py", line 212, in _parse_read_property_multiple_response
    raise DecodingError(f"unsupported response type: {apdu_type}")
flexit_bacnet.bacnet.DecodingError: unsupported response type: 7

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

Traceback (most recent call last):
  File "/Users/lellky/Projects/core/homeassistant/helpers/entity.py", line 943, in async_update_ha_state
    await self.async_device_update()
  File "/Users/lellky/Projects/core/homeassistant/helpers/entity.py", line 1261, in async_device_update
    await self.async_update()
  File "/Users/lellky/Projects/core/homeassistant/components/flexit_bacnet/sensor.py", line 326, in async_update
    await self._device.update()
  File "/Users/lellky/Projects/core/venv/lib/python3.11/site-packages/flexit_bacnet/device.py", line 30, in update
    self._state = await self.bacnet.read_multiple(device_properties)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/lellky/Projects/core/venv/lib/python3.11/site-packages/flexit_bacnet/bacnet.py", line 492, in read_multiple
    raise DecodingError(
flexit_bacnet.bacnet.DecodingError: response decoding failed: unsupported response type: 7
810a00090100710109
@piotrbulinski
Copy link
Owner

As we discussed, this is an abort message from Flexit unit with reason "out-of-resources". That's due to too many request being sent by the home assistant - but as this is now fixed on your end with the use of HA Coordinator, I'll not rush fixing it. Let's keep the issue open, so I remember to add bacnet's abort response support to the code.

@piotrbulinski piotrbulinski self-assigned this Jan 15, 2024
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

2 participants