Skip to content

Add heating schedule setter for circuits#701

Draft
lackas wants to merge 1 commit intoopenviess:masterfrom
lackas:feature/heating-schedule-setter
Draft

Add heating schedule setter for circuits#701
lackas wants to merge 1 commit intoopenviess:masterfrom
lackas:feature/heating-schedule-setter

Conversation

@lackas
Copy link
Contributor

@lackas lackas commented Feb 3, 2026

Summary

Adds methods to set heating circuit schedules:

  • setHeatingSchedule(schedule) - set the heating schedule for a circuit
  • getHeatingScheduleModes() - get available schedule modes (e.g., reduced, normal, fixed)

This complements the existing getHeatingSchedule() method and follows the same pattern as setDomesticHotWaterCirculationSchedule().

Fixes #539

Test plan

  • Added test for getHeatingScheduleModes() using Vitocal300G test data
  • All tests pass

Adds ability to set heating circuit schedules via the API, complementing
the existing getHeatingSchedule() method.

Fixes openviess#539
@lackas lackas force-pushed the feature/heating-schedule-setter branch from 93e6ce0 to c23842b Compare February 3, 2026 09:20
@lackas
Copy link
Contributor Author

lackas commented Feb 3, 2026

See also PR #368 which adds setDomesticHotWaterSchedule() - similar pattern for DHW schedules.

}

@handleAPICommandErrors
def setHeatingSchedule(self, schedule):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we type this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure! The schedule structure is a nested dict (day keys → list of time slot dicts), so the most accurate type would be quite verbose. Would dict be sufficient, or do you have something more specific in mind? Note that the existing setDomesticHotWaterCirculationSchedule has the same untyped schedule parameter — happy to type that one too while we're at it.

@CFenner CFenner marked this pull request as draft February 12, 2026 08:23
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

Successfully merging this pull request may close these issues.

Setting heating schedule

2 participants