diff --git a/libnymea/interfaces/interfaces.qrc b/libnymea/interfaces/interfaces.qrc index 22f7e751..8c600126 100644 --- a/libnymea/interfaces/interfaces.qrc +++ b/libnymea/interfaces/interfaces.qrc @@ -60,6 +60,7 @@ extendedevcharger.json noisesensor.json co2sensor.json + presencesensor.json diff --git a/libnymea/interfaces/presencesensor.json b/libnymea/interfaces/presencesensor.json new file mode 100644 index 00000000..7806b3d9 --- /dev/null +++ b/libnymea/interfaces/presencesensor.json @@ -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" + } + ] +}