Skip to content

No longer working with older Fritz!OS Versions (<7.24) since 0.6.14 #115

@SecretMineDE

Description

@SecretMineDE

Version 0.6.14 added the wait_device_txbusy-Method with #103. This method uses the api-call getdeviceinfos. This api-call was added with Fritz!OS 7.24 and therefore breaks the option to use this package with older Fritz!OS Versions (I have an older Box with OS 6.88).

As this is the package that HomeAssistant uses for integration Fritz!Home-Devices, this integration is broken for older Fritz!Boxes since HomeAssistant 2025.2.

The error:

Traceback (most recent call last):
  File "/mnt/d/Benutzerdaten/Git/test.py", line 5, in <module>
    data = fritz.set_target_temperature("xx xx", 22)
  File "/home/timon/.local/lib/python3.10/site-packages/pyfritzhome/fritzhome.py", line 301, in set_target_temperature
    wait and self.wait_device_txbusy(ain)
  File "/home/timon/.local/lib/python3.10/site-packages/pyfritzhome/fritzhome.py", line 203, in wait_device_txbusy
    plain = self.get_device_infos(ain)
  File "/home/timon/.local/lib/python3.10/site-packages/pyfritzhome/fritzhome.py", line 239, in get_device_infos
    return self._aha_request("getdeviceinfos", ain=ain)
  File "/home/timon/.local/lib/python3.10/site-packages/pyfritzhome/fritzhome.py", line 117, in _aha_request
    plain = self._request(url, params)
  File "/home/timon/.local/lib/python3.10/site-packages/pyfritzhome/fritzhome.py", line 45, in _request
    rsp.raise_for_status()
  File "/usr/lib/python3/dist-packages/requests/models.py", line 943, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: http://192.168.178.1/webservices/homeautoswitch.lua?switchcmd=getdeviceinfos&sid=xx&ain=xx+xx

(Session-ID and ain removed)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions