From be0647a23d21b6ded7a4fd217732217c3d13a54c Mon Sep 17 00:00:00 2001 From: Cornelius Suermann Date: Wed, 27 Mar 2024 15:45:32 +0100 Subject: [PATCH] add Thermostat_2, supporting upper and lower setpoints --- endpointTemplates.ts | 75 +++++++++++++++++++++++++++++++++++++++----- 1 file changed, 68 insertions(+), 7 deletions(-) diff --git a/endpointTemplates.ts b/endpointTemplates.ts index 343e107..91a907c 100644 --- a/endpointTemplates.ts +++ b/endpointTemplates.ts @@ -1229,7 +1229,7 @@ export default function (asRetrievable: boolean) { THERMOSTAT: { endpointId: '', manufacturerName: 'virtual smart home', - description: 'virtual thermostat', + description: 'virtual thermostat with one target setpoint', friendlyName: '', displayCategories: ['THERMOSTAT'], cookie: {}, @@ -1257,12 +1257,73 @@ export default function (asRetrievable: boolean) { { name: 'targetSetpoint', }, - // { - // name: 'lowerSetpoint', - // }, - // { - // name: 'upperSetpoint', - // }, + { + name: 'thermostatMode', + }, + ], + proactivelyReported: true, + retrievable: asRetrievable, + }, + configuration: { + supportedModes: ['AUTO', 'HEAT', 'COOL', 'ECO', 'OFF'], + supportsScheduling: false, + }, + }, + { + type: 'AlexaInterface', + interface: 'Alexa.TemperatureSensor', + version: '3', + properties: { + supported: [ + { + name: 'temperature', + }, + ], + proactivelyReported: true, + retrievable: asRetrievable, + }, + }, + { + type: 'AlexaInterface', + interface: 'Alexa', + version: '3', + }, + ], + }, + THERMOSTAT_2: { + endpointId: '', + manufacturerName: 'virtual smart home', + description: 'virtual thermostat with upper and lower setpoints', + friendlyName: '', + displayCategories: ['THERMOSTAT'], + cookie: {}, + capabilities: [ + { + type: 'AlexaInterface', + interface: 'Alexa.PowerController', + version: '3', + properties: { + supported: [ + { + name: 'powerState', + }, + ], + proactivelyReported: true, + retrievable: asRetrievable, + }, + }, + { + type: 'AlexaInterface', + interface: 'Alexa.ThermostatController', + version: '3', + properties: { + supported: [ + { + name: 'lowerSetpoint', + }, + { + name: 'upperSetpoint', + }, { name: 'thermostatMode', },