add sensors interfaces
This commit is contained in:
parent
21a0085463
commit
a42b8fd5e7
11
libguh/interfaces/humiditysensor.json
Normal file
11
libguh/interfaces/humiditysensor.json
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"extends": "sensor",
|
||||||
|
"states": [
|
||||||
|
{
|
||||||
|
"name": "humidity",
|
||||||
|
"type": "double",
|
||||||
|
"minValue": 0,
|
||||||
|
"maxValue": 100
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@ -19,6 +19,9 @@
|
|||||||
<file>longpressbutton.json</file>
|
<file>longpressbutton.json</file>
|
||||||
<file>simplemultibutton.json</file>
|
<file>simplemultibutton.json</file>
|
||||||
<file>longpressmultibutton.json</file>
|
<file>longpressmultibutton.json</file>
|
||||||
|
<file>sensor.json</file>
|
||||||
|
<file>temperaturesensor.json</file>
|
||||||
|
<file>humiditysensor.json</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
<qresource prefix="/"/>
|
<qresource prefix="/"/>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
|||||||
3
libguh/interfaces/sensor.json
Normal file
3
libguh/interfaces/sensor.json
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
10
libguh/interfaces/temperaturesensor.json
Normal file
10
libguh/interfaces/temperaturesensor.json
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"extends": "sensor",
|
||||||
|
"states": [
|
||||||
|
{
|
||||||
|
"name": "temperature",
|
||||||
|
"type": "double"
|
||||||
|
}
|
||||||
|
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user