Skip to content

[BUG] Heat on demand fails #204

Description

@nsleigh

Describe the bug
When you try to change the thermostat "Heat on Demand" setting you get and error. Looking in the log I see this:

Logger: apyhiveapi.api.hive_async_api
Source: components/hive/switch.py:70
First occurred: 07:59:12 (2 occurrences)
Last logged: 09:29:22

Something has gone wrong calling https://beekeeper.hivehome.com/1.0/nodes/heating/7657f6ad-f0b9-4da2-b402-d8c3cfa2a00d - HTTP status is - 400 — response: {"error" : "MALFORMED_REQUEST" }

To Reproduce
Click the "Heat on Demand" switch in the thermostat.

Desktop (please complete the following information):

  • OS: Any
  • Browser Chrome
  • Version 2026.4.1

Thermostat SLT6

Additional Info

Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/commands.py:281
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 09:29:22 (1 occurrence)
Last logged: 09:29:22

[140418478916448] Unexpected exception
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 281, in handle_call_service
    response = await hass.services.async_call(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<7 lines>...
    )
    ^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2900, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2943, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 949, in entity_service_call
    response_data = await _async_handle_entity_calls(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<5 lines>...
    )
    ^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 828, in _async_handle_entity_calls
    single_result = await entity.async_request_call(_with_context(entity, coro))
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1708, in async_request_call
    return await coro
           ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 823, in _with_context
    return await coro
           ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 907, in _handle_single_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/hive/__init__.py", line 103, in wrapper
    await func(self, *args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/components/hive/switch.py", line 70, in async_turn_on
    await self.hive.switch.turnOn(self.device)
  File "/usr/local/lib/python3.14/site-packages/apyhiveapi/plug.py", line 223, in turnOn
    return await self.session.heating.setHeatOnDemand(device, "ENABLED")
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.14/site-packages/apyhiveapi/heating.py", line 501, in setHeatOnDemand
    resp = await self.session.api.setState(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        data["type"], device["hiveID"], autoBoost=state
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/local/lib/python3.14/site-packages/apyhiveapi/api/hive_async_api.py", line 318, in setState
    resp = await self.request("post", url, data=jsc)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.14/site-packages/apyhiveapi/api/hive_async_api.py", line 118, in request
    raise HiveApiError
apyhiveapi.helper.hive_exceptions.HiveApiError

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions