Pyhiveapi
Pyhiveapi copied to clipboard
[WIP] 19 - Add schedule support for single zone heating in Hive boiler module
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
api.setState() implementation
Replace custom code that iterates over kwarg dictionary and constructs JSON string with a call to json.dumps(kwargs).