simont77 / fakegato-history

Module to emulate Elgato Eve history
MIT License
167 stars 15 forks source link

Thermo schedule #80

Open tobekas opened 4 years ago

tobekas commented 4 years ago

After some days of reverse-engineering i actually made it work and did an implementation for it right away. You can enable this feature as follows:

// in your module.exports:
Schedule = require('fakegato-history').Schedule(homebridge);
...
// in your code:
let thermoScheduler = new Schedule('thermo', log);
thermoScheduler.registerScheduleEvents(thermostatService);

or

// in your includes:
var fakegatoHistory = require('fakegato-history');
var Schedule;
...
// in your module.exports:
Schedule = fakegatoHistory.Schedule(homebridge);
...
// in your code:
let thermoScheduler = new Schedule('thermo', log);
thermoScheduler.registerScheduleEvents(thermostatService);

More details of my findings are documented in Ticket #40

ctschach commented 4 years ago

Great progress....now all I need would be the Scheduler for the Aqua :-)

tobekas commented 4 years ago

Yes. The schedule for Aqua (as well as for Eve Light Switch, Eve Energy and Eve Energy Strip) is working with TLV-encoded custom characteristics E863F11D (setConfiguration) and E863F131 (getConfiguration). This is different from the Thermo commands and seems to be more complicated, because there is much more functionality. But I've also found out some things about it.

simont77 commented 4 years ago

Are you ok with this PR? I will try to find some time to check and merge it in the next weeks