From bea44a96c0aa4069549e7cfcdb48ec2b720b2c27 Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Thu, 16 Mar 2023 17:03:33 +0100 Subject: [PATCH] Add windowOpen and windowOpenDetected states to the thermostat --- libnymea/interfaces/thermostat.json | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/libnymea/interfaces/thermostat.json b/libnymea/interfaces/thermostat.json index 559e5aaf..97876739 100644 --- a/libnymea/interfaces/thermostat.json +++ b/libnymea/interfaces/thermostat.json @@ -1,5 +1,5 @@ { - "description": "The thermostat interface describes devices which have a target temperature value and regulate themselves to match that target temperature.", + "description": "The thermostat interface describes devices which have a target temperature value and regulate themselves to match that target temperature. A thermostat may support detecting for open windows in which case the windowOpenDetected state should be implemented. On the other hand, a thermostat may allow setting a window open lock in which case the windowOpen state should be implemented.", "states": [ { "name": "targetTemperature", @@ -34,6 +34,19 @@ "type": "bool", "optional": true, "logged": true + }, + { + "name": "windowOpen", + "type": "bool", + "writable": true, + "optional": true, + "logged": true + }, + { + "name": "windowOpenDetected", + "type": "bool", + "optional": true, + "logged": true } ] }