Skip to content

Commit

Permalink
testing weekly_schedule exposes
Browse files Browse the repository at this point in the history
  • Loading branch information
sjorge committed Mar 10, 2023
1 parent 850e4eb commit 6d85183
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions devices/ubisys.js
Original file line number Diff line number Diff line change
Expand Up @@ -886,6 +886,20 @@ module.exports = [
.withPiHeatingDemand(ea.STATE_GET),
exposes.binary('vacation_mode', ea.STATE_GET, true, false)
.withDescription('When Vacation Mode is active the schedule is disabled and unoccupied_heating_setpoint is used.'),
// XXX: figure out why get is support, It sends a command to the device which then ingores it and doesn't send any data back ???
exposes.composite('schedule', 'weekly_schedule', ea.ALL)
.withFeature(exposes.list('dayofweek', ea.SET, exposes.enum('day', ea.SET, [
'monday', 'tuesday', 'wednesday', 'thursday', 'friday',
'saturday', 'sunday', 'away_or_vacation',
])).withLengthMin(1).withLengthMax(8).withDescription('Days on which the schedule will be active.'))
.withFeature(exposes.list('transitions', ea.SET, exposes.composite('transition', 'transition', ea.SET)
.withFeature(exposes.numeric('transitionTime', ea.SET)
.withDescription('Trigger transition after X minutes since 00:00'))
.withFeature(exposes.numeric('heatSetpoint', ea.SET)
.withDescription('Target heat setpoint')),
// .withFeature(exposes.numeric('coolSetpoint', ea.SET)
// .withDescription('Target cool setpoint'))
).withLengthMin(1).withLengthMax(10)),
],
configure: async (device, coordinatorEndpoint, logger) => {
const endpoint = device.getEndpoint(1);
Expand Down

0 comments on commit 6d85183

Please sign in to comment.