mirror of https://github.com/nymea/nymea.git
Add a presencesensor interface
parent
375ac1baea
commit
bb27615943
|
|
@ -60,6 +60,7 @@
|
|||
<file>extendedevcharger.json</file>
|
||||
<file>noisesensor.json</file>
|
||||
<file>co2sensor.json</file>
|
||||
<file>presencesensor.json</file>
|
||||
</qresource>
|
||||
<qresource prefix="/"/>
|
||||
</RCC>
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Reference in New Issue