Add a presencesensor interface
This commit is contained in:
parent
375ac1baea
commit
bb27615943
@ -60,6 +60,7 @@
|
|||||||
<file>extendedevcharger.json</file>
|
<file>extendedevcharger.json</file>
|
||||||
<file>noisesensor.json</file>
|
<file>noisesensor.json</file>
|
||||||
<file>co2sensor.json</file>
|
<file>co2sensor.json</file>
|
||||||
|
<file>presencesensor.json</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
<qresource prefix="/"/>
|
<qresource prefix="/"/>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
|||||||
15
libnymea/interfaces/presencesensor.json
Normal file
15
libnymea/interfaces/presencesensor.json
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"extends": "sensor",
|
||||||
|
"description": "The presence sensor interface provides information whether a certain thing, for instance a human person, a tracked animal, a tracked mobile phone or smart watch is currently present. Additionally it gives information about the last time the tracked thing has been seen.",
|
||||||
|
"states": [
|
||||||
|
{
|
||||||
|
"name": "isPresent",
|
||||||
|
"type": "bool"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "lastSeenTime",
|
||||||
|
"type": "int",
|
||||||
|
"unit": "UnixTime"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user