Pyhiveapi icon indicating copy to clipboard operation
Pyhiveapi copied to clipboard

[WIP] 19 - Add schedule support for single zone heating in Hive boiler module

Open martintoreilly opened this issue 4 years ago • 1 comments

Description

Adds support for getting and setting the weekly schedule for heating only for a central Hive heating boiler module with a single heating zone.

Implementation

  • [x] Augment sync api.setState() function to handle dictionary states
  • [x] Augment async api.setState() function to handle dictionary states
  • [ ] Add heating.getSchedule() function
  • [ ] Add heating.setSchedule() function

Tests

Scope

Partially addresses #19

Includes:

  • Schedule support for single heating zone for single central boiler module.

Excludes:

  • Schedule support for hot water
  • Schedule support for multiple heating zones
  • Schedule support for individual radiator TRVs

martintoreilly avatar Jan 02 '22 14:01 martintoreilly

api.setState() implementation

Replace custom code that iterates over kwarg dictionary and constructs JSON string with a call to json.dumps(kwargs).

martintoreilly avatar Jan 02 '22 14:01 martintoreilly