Add a presencesensor interface

pull/135/head
Michael Zanetti 2018-12-21 00:35:55 +01:00
parent 375ac1baea
commit bb27615943
2 changed files with 16 additions and 0 deletions

View File

@ -60,6 +60,7 @@
<file>extendedevcharger.json</file>
<file>noisesensor.json</file>
<file>co2sensor.json</file>
<file>presencesensor.json</file>
</qresource>
<qresource prefix="/"/>
</RCC>

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