From a42b8fd5e73416862e22731dd1cb0931fbde8b91 Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Thu, 2 Nov 2017 00:02:37 +0100 Subject: [PATCH] add sensors interfaces --- libguh/interfaces/humiditysensor.json | 11 +++++++++++ libguh/interfaces/interfaces.qrc | 3 +++ libguh/interfaces/sensor.json | 3 +++ libguh/interfaces/temperaturesensor.json | 10 ++++++++++ 4 files changed, 27 insertions(+) create mode 100644 libguh/interfaces/humiditysensor.json create mode 100644 libguh/interfaces/sensor.json create mode 100644 libguh/interfaces/temperaturesensor.json diff --git a/libguh/interfaces/humiditysensor.json b/libguh/interfaces/humiditysensor.json new file mode 100644 index 00000000..0f15fd86 --- /dev/null +++ b/libguh/interfaces/humiditysensor.json @@ -0,0 +1,11 @@ +{ + "extends": "sensor", + "states": [ + { + "name": "humidity", + "type": "double", + "minValue": 0, + "maxValue": 100 + } + ] +} diff --git a/libguh/interfaces/interfaces.qrc b/libguh/interfaces/interfaces.qrc index 67151ec4..95981933 100644 --- a/libguh/interfaces/interfaces.qrc +++ b/libguh/interfaces/interfaces.qrc @@ -19,6 +19,9 @@ longpressbutton.json simplemultibutton.json longpressmultibutton.json + sensor.json + temperaturesensor.json + humiditysensor.json diff --git a/libguh/interfaces/sensor.json b/libguh/interfaces/sensor.json new file mode 100644 index 00000000..0db3279e --- /dev/null +++ b/libguh/interfaces/sensor.json @@ -0,0 +1,3 @@ +{ + +} diff --git a/libguh/interfaces/temperaturesensor.json b/libguh/interfaces/temperaturesensor.json new file mode 100644 index 00000000..8d7147eb --- /dev/null +++ b/libguh/interfaces/temperaturesensor.json @@ -0,0 +1,10 @@ +{ + "extends": "sensor", + "states": [ + { + "name": "temperature", + "type": "double" + } + + ] +}