tggm / rointe-hacs

A HACS repo for the Home Assistant Rointe Integration
13 stars 10 forks source link

Failed setup: retry 'schedule_day' error #17

Open paissad opened 1 month ago

paissad commented 1 month ago

Hi,

I have the following errors while using the integration. It's my first time using this integration. I am using the version 1.4.3 Here is what I get with the debug logs enabled! Any help would be appreciated. I also saw this discussion into the HA community site https://community.home-assistant.io/t/rointe-heaters-integration/758330/1

The device seems to be found! --> Towel F9D108 [oval_towel]

2024-10-01 17:28:21.407 DEBUG (MainThread) [custom_components.rointe] Finished fetching rointe data in 0.929 seconds (success: False)
2024-10-01 17:28:41.904 DEBUG (MainThread) [custom_components.rointe] Device manager updating
2024-10-01 17:28:42.261 DEBUG (MainThread) [custom_components.rointe] Found device ID: B8E2CAF9D108B8E2CAF9D108
2024-10-01 17:28:42.868 DEBUG (MainThread) [custom_components.rointe] Processing data for device ID: B8E2CAF9D108B8E2CAF9D108
2024-10-01 17:28:42.869 DEBUG (MainThread) [custom_components.rointe] Found new device Towel F9D108 [oval_towel] - v2. FW: 2_1_1
2024-10-01 17:28:42.869 ERROR (MainThread) [custom_components.rointe] Unexpected error fetching rointe data
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 354, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/rointe/coordinator.py", line 44, in _async_update_data
    new_devices = await self.device_manager.update()
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/rointe/device_manager.py", line 179, in update
    new_device = await self._process_api_data(
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/rointe/device_manager.py", line 225, in _process_api_data
    new_device = self._add_or_update_device(
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/rointe/device_manager.py", line 285, in _add_or_update_device
    rointe_device = RointeDevice(
                    ^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/rointesdk/device.py", line 73, in __init__
    self.update_data(device_info, energy_data, latest_fw)
  File "/usr/local/lib/python3.12/site-packages/rointesdk/device.py", line 110, in update_data
    self.schedule_day = data["schedule_day"]
                        ~~~~^^^^^^^^^^^^^^^^
KeyError: 'schedule_day'
Infeconex commented 1 month ago

Adding I'm also affected by this. I want to use this integration to trigger heating control when I'm leaving or arriving home.

Kaeroe commented 2 weeks ago

Having the same issue, only after removing and adding a new radiator (warranty repair) There was a firmware update to the radiators very recently, I think to 2.1.3 Could that have changed something to alter the key name so now it cannot be referenced?

Hethemaniac commented 12 hours ago

Having the same issue after adding a new radiator to the instalation. Would be wonderful to have some patch :)

Infeconex commented 7 hours ago

@tggm - from what I can see on the HA forum, Rointe don't want to support firmware downgrades, or engaging with the home assistant community. Is there any help you can provide on this breaking change?