Skip to content

The temperature property should be optional in SetZoneOverlaysArg for hot water control #127

@thoukydides

Description

@thoukydides

The current SetZoneOverlaysArg type requires a temperature to be specified. However, if this is done for a BU01 Extension Kit HOT_WATER zone:

POST 'https://my.tado.com/api/v2/homes/XXX/overlay
{"overlays":[{"overlay":{"setting":{"type":"HOT_WATER","isBoost":false,"power":"ON","temperature":{"celsius":60}},"termination":{"typeSkillBasedApp":"NEXT_TIME_BLOCK"}},"room":0}]}

the Tado API returns a 422 error with:

      errors: [
        {
          code: 'setting.notSupported',
          title: 'temperature not allowed'
        }
      ]

Omitting the temperature property works as expected.

It looks like the deprecated setZoneOverlay method supported this, but it is currently necessary to violate the Typescript type with the setZoneOverlays method.

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