From 1b385dd03888aa11994439560be836f5096120aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Tue, 12 Oct 2021 10:00:33 +0200 Subject: [PATCH] Add heat pump interfaces --- libnymea/interfaces/heatpump.json | 3 +++ libnymea/interfaces/interfaces.qrc | 3 +++ libnymea/interfaces/simpleheatpump.json | 12 ++++++++++++ libnymea/interfaces/smartgridheatpump.json | 18 ++++++++++++++++++ 4 files changed, 36 insertions(+) create mode 100644 libnymea/interfaces/heatpump.json create mode 100644 libnymea/interfaces/simpleheatpump.json create mode 100644 libnymea/interfaces/smartgridheatpump.json diff --git a/libnymea/interfaces/heatpump.json b/libnymea/interfaces/heatpump.json new file mode 100644 index 00000000..6fe96126 --- /dev/null +++ b/libnymea/interfaces/heatpump.json @@ -0,0 +1,3 @@ +{ + "description": "The base for all heat pump interfaces. Can be used by the client to filter for heat pumps in the system." +} diff --git a/libnymea/interfaces/interfaces.qrc b/libnymea/interfaces/interfaces.qrc index 3d6ee2ca..f821404e 100644 --- a/libnymea/interfaces/interfaces.qrc +++ b/libnymea/interfaces/interfaces.qrc @@ -89,5 +89,8 @@ airquality.json indoorairquality.json energystorage.json + heatpump.json + smartgridheatpump.json + simpleheatpump.json diff --git a/libnymea/interfaces/simpleheatpump.json b/libnymea/interfaces/simpleheatpump.json new file mode 100644 index 00000000..bea56723 --- /dev/null +++ b/libnymea/interfaces/simpleheatpump.json @@ -0,0 +1,12 @@ +{ + "description": "This interface can be used for heat pumps offering one digital input for controlling whenever it is good to consume more energy than normal. This interface is intended to be used by an energy manager to enable boost whenever cheap or self produced energy is available.", + "extends": "heatpump", + "states": [ + { + "name": "boost", + "type": "bool", + "writable": true, + "logged": true + } + ] +} diff --git a/libnymea/interfaces/smartgridheatpump.json b/libnymea/interfaces/smartgridheatpump.json new file mode 100644 index 00000000..521d10ad --- /dev/null +++ b/libnymea/interfaces/smartgridheatpump.json @@ -0,0 +1,18 @@ +{ + "description": "This interface can be used for heat pumps offering the smart grid label \"SG-Ready\". The modes can be set to the heatpump either trough 2 digital outputs or directly using modbus registers. These modes should be used by an energy manager and are not intended to be set by an user since there are certain rules to consider when switchen the SG mode.", + "extends": "heatpump", + "states": [ + { + "name": "sgReadyMode", + "type": "QString", + "possibleValues": [ + "Off", + "Low", + "Standard", + "High" + ], + "writable": true, + "logged": true + } + ] +}