From 09b50d2a0bf103f39cf53935d6501153205d01fb Mon Sep 17 00:00:00 2001 From: Jorge Schrauwen Date: Sun, 5 Mar 2023 11:39:20 +0100 Subject: [PATCH] testing weekly_schedule exposes --- devices/ubisys.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/devices/ubisys.js b/devices/ubisys.js index 271499b704425..327215ba14f26 100644 --- a/devices/ubisys.js +++ b/devices/ubisys.js @@ -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);