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" + } + + ] +}