From 9b994916a1040c273680c3b699dda1b4399db3bf Mon Sep 17 00:00:00 2001 From: loosrob <79396812+loosrob@users.noreply.github.com> Date: Mon, 10 May 2021 12:51:23 +0200 Subject: [PATCH] Add flow rate control support to the ventilation interface --- libnymea/interfaces/ventilation.json | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/libnymea/interfaces/ventilation.json b/libnymea/interfaces/ventilation.json index db285c31..3b93609b 100644 --- a/libnymea/interfaces/ventilation.json +++ b/libnymea/interfaces/ventilation.json @@ -1,4 +1,14 @@ { - "description": "The ventilation interface is used for any sort of ventilation. It extends the \"power\" interface and thus can be turned on or off.", - "extends": "power" + "description": "The ventilation interface is used for any sort of ventilation. It extends the \"power\" interface and thus can be turned on or off. Optionally, the air flow can be controlled. The thing class must specify the minimum and maximum values for the flow control.", + "extends": "power", + "states": [ + { + "name": "flowRate", + "type": "int", + "minimumValue": "any", + "maximumValue": "any", + "writable": true, + "optional": true + } + ] }