Skip to content

Commit

Permalink
add readme for schedules
Browse files Browse the repository at this point in the history
  • Loading branch information
tobekas committed Nov 27, 2019
1 parent 971bf4b commit d1fd894
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,22 @@ For the setup of Google Drive, please follow the Google Drive Quickstart for Nod
##### Additional notes for Google Drive
* Pay attention so that your plugin does not issue multiple addEntry calls for the same accessory at the same time (this may results in improper behaviour of Google Drive to the its asynchronous nature)

### Schedules
For Eve Thermo you can also enable the schedule feature. You must pass your Thermostat service to the `addThermoSchedule` function:
```
this.loggingService = new FakeGatoHistoryService('thermo', accessoryObject, historyOptions);
let thermoScheduler = this.loggingService.addThermoSchedule(this.thermostatService);
```
This will add the custom characteristics `E863F12F` (ProgramData), `E863F12C` (ProgramCommand) and `E863F11E`(FirmwareInfo) to your Termostat service. The schedule is executed in the background and will fire set calls to TargetTemperature and TargetHeatingCoolingState at the specified times.
You does not have to return the 'thermoScheduler' instance, but you can play around with vacation mode and open window mode from your plugin:
```
thermoScheduler.setVacationMode(true, 16); // (enable, temp[°C])
thermoScheduler.setVacationMode(false); // (disable)
thermoScheduler.setOpenWindow(true); // (enable open window mode)
thermoScheduler.setOpenWindow(false); // (disable open window mode)
```
You can also use these features from the Eve app. Vacation mode will disable the schedule and set the target temperature to a fixed value. Open window mode will stop heating (and temporary disables schedule) and will remain heating after a timeout of 30min.

## TODO

- [x] Support for rolling-over of the history
Expand Down

0 comments on commit d1fd894

Please sign in to comment.