ramses_cc icon indicating copy to clipboard operation
ramses_cc copied to clipboard

0.31.16 ramses_cc.get_zone_schedule service failing

Open jrb80 opened this issue 10 months ago • 3 comments

v0.31.16 It seems like the ramses_cc.get_zone_schedule service is failing again with a traceback error.

  File "/config/custom_components/ramses_cc/climate.py", line 482, in async_get_zone_schedule
    await self._device.get_schedule()
  File "/usr/local/lib/python3.12/site-packages/ramses_rf/system/zones.py", line 152, in get_schedule
    await self._schedule.get_schedule(force_io=force_io)
  File "/usr/local/lib/python3.12/site-packages/ramses_rf/system/schedule.py", line 222, in get_schedule
    await asyncio.wait_for(
  File "/usr/local/lib/python3.12/asyncio/tasks.py", line 520, in wait_for
    return await fut
           ^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/ramses_rf/system/schedule.py", line 256, in _get_schedule
    self._global_ver, _ = await self.tcs._schedule_version(force_io=True)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/ramses_rf/system/heat.py", line 630, in _schedule_version
    self._msg_0006 = Message(pkt)
                     ^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/ramses_tx/message.py", line 64, in __init__
    self.src: Address = pkt.src
                        ^^^^^^^
AttributeError: 'NoneType' object has no attribute 'src'

jrb80 avatar Apr 16 '24 09:04 jrb80

@jrb80 Is this still broken for you?

zxdavb avatar Jun 23 '24 17:06 zxdavb

@jrb80 Is this still broken for you? Yes, it remains broken.

Traceback error from log on v41.23.

File "/config/custom_components/ramses_cc/climate.py", line 468, in async_get_zone_schedule
    await self._device.get_schedule()
  File "/usr/local/lib/python3.12/site-packages/ramses_rf/system/zones.py", line 167, in get_schedule
    await self._schedule.get_schedule(force_io=force_io)
  File "/usr/local/lib/python3.12/site-packages/ramses_rf/system/schedule.py", line 254, in get_schedule
    await asyncio.wait_for(
  File "/usr/local/lib/python3.12/asyncio/tasks.py", line 520, in wait_for
    return await fut
           ^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/ramses_rf/system/schedule.py", line 290, in _get_schedule
    self._global_ver, _ = await self.tcs._schedule_version(force_io=True)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/ramses_rf/system/heat.py", line 623, in _schedule_version
    return self._msg_0006.payload[SZ_CHANGE_COUNTER], True  # global_ver, did_io
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
KeyError: 'change_counter'

 File "/config/custom_components/ramses_cc/climate.py", line 468, in async_get_zone_schedule
    await self._device.get_schedule()
  File "/usr/local/lib/python3.12/site-packages/ramses_rf/system/zones.py", line 167, in get_schedule
    await self._schedule.get_schedule(force_io=force_io)
  File "/usr/local/lib/python3.12/site-packages/ramses_rf/system/schedule.py", line 254, in get_schedule
    await asyncio.wait_for(
  File "/usr/local/lib/python3.12/asyncio/tasks.py", line 520, in wait_for
    return await fut
           ^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/ramses_rf/system/schedule.py", line 290, in _get_schedule
    self._global_ver, _ = await self.tcs._schedule_version(force_io=True)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/ramses_rf/system/heat.py", line 623, in _schedule_version
    return self._msg_0006.payload[SZ_CHANGE_COUNTER], True  # global_ver, did_io
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
KeyError: 'change_counter'

jrb80 avatar Jun 23 '24 21:06 jrb80

get_zone_schedule service is failing for me in 0.42. I'm seeing RQ packets, but no corresponding RP packets, which results in timeout, and subsequent stack trace. These are the RQ packets from the packet log

2024-09-15T11:37:20.399492 000 RQ --- 18:136212 01:185426 --:------ 0404 007 02200008000100
2024-09-15T11:37:20.930339 000 RQ --- 18:136212 01:185426 --:------ 0404 007 02200008000100
2024-09-15T11:37:21.461513 000 RQ --- 18:136212 01:185426 --:------ 0404 007 02200008000100
2024-09-15T11:37:21.991434 000 RQ --- 18:136212 01:185426 --:------ 0404 007 02200008000100

lloyda avatar Sep 15 '24 10:09 lloyda