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

0.31.16 ramses_cc.get_zone_schedule service failing #183

Open
jrb80 opened this issue Apr 16, 2024 · 4 comments
Open

0.31.16 ramses_cc.get_zone_schedule service failing #183

jrb80 opened this issue Apr 16, 2024 · 4 comments

Comments

@jrb80
Copy link

jrb80 commented Apr 16, 2024

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 jrb80 changed the title ramses_cc.get_zone_schedule service failing 0.31.16 ramses_cc.get_zone_schedule service failing Apr 16, 2024
@zxdavb
Copy link
Owner

zxdavb commented Jun 23, 2024

@jrb80 Is this still broken for you?

@jrb80
Copy link
Author

jrb80 commented Jun 23, 2024

@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'

@lloyda
Copy link

lloyda commented Sep 15, 2024

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

@donaldwpage
Copy link

donaldwpage commented Oct 8, 2024

I'm also getting timeouts
If I call ramses_cc directly, I get
curl -X GET -H "Authorization: Bearer XX" -H "Content-Type: application/json" http://homeassistant:8123/api/states/climate.kitchen_2 {"entity_id":"climate.kitchen_2","state":"heat","attributes":{"hvac_modes":["heat","auto"],"min_temp":5.0,"max_temp":35.0,"target_temp_step":0.1,"preset_modes":["none","temporary","permanent"],"current_temperature":20.2,"temperature":20.0,"hvac_action":"idle","preset_mode":"none","id":"01:108199_02","params":{"config":{"min_temp":5.0,"max_temp":35.0,"local_override":false,"openwindow_function":true,"multiroom_mode":false},"mode":{"mode":"follow_schedule","setpoint":20.0},"name":"Kitchen"},"zone_idx":"02","heating_type":"radiator_valve","mode":{"mode":"follow_schedule","setpoint":20.0},"config":{"min_temp":5.0,"max_temp":35.0,"local_override":false,"openwindow_function":true,"multiroom_mode":false},"schedule":null,"schedule_version":null,"icon":"mdi:radiator","friendly_name":"Kitchen","supported_features":17},"last_changed":"2024-10-13T08:53:50.898045+00:00","last_reported":"2024-10-13T17:06:51.370715+00:00","last_updated":"2024-10-13T16:56:51.358701+00:00","context":{"id":"01JA3CZCCYZNT48YD0KCQ0WY5W","parent_id":null,"user_id":null}

and then querying the results the schedule appears to be null
curl -X GET -H "Authorization: Bearer XX " http://homeassistant:8123/api/states/climate.kitchen_2 {"entity_id":"climate.kitchen_2","state":"heat","attributes":{"hvac_modes":["heat","auto"],"min_temp":5.0,"max_temp":35.0,"target_temp_step":0.1,"preset_modes":["none","temporary","permanent"],"current_temperature":20.2,"temperature":20.0,"hvac_action":"idle","preset_mode":"none","id":"01:108199_02","params":{"config":{"min_temp":5.0,"max_temp":35.0,"local_override":false,"openwindow_function":true,"multiroom_mode":false},"mode":{"mode":"follow_schedule","setpoint":20.0},"name":"Kitchen"},"zone_idx":"02","heating_type":"radiator_valve","mode":{"mode":"follow_schedule","setpoint":20.0},"config":{"min_temp":5.0,"max_temp":35.0,"local_override":false,"openwindow_function":true,"multiroom_mode":false},"schedule":null,"schedule_version":null,"icon":"mdi:radiator","friendly_name":"Kitchen","supported_features":17},"last_changed":"2024-10-13T08:53:50.898045+00:00","last_reported":"2024-10-13T17:06:51.370715+00:00","last_updated":"2024-10-1

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

4 participants