From dc89240f1a8c5d107550921bc1a7e390ccd1503c Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Thu, 29 Aug 2019 23:48:43 +0200 Subject: [PATCH] Add a doorbell interface --- libnymea/interfaces/doorbell.json | 8 ++++++++ libnymea/interfaces/interfaces.qrc | 2 ++ 2 files changed, 10 insertions(+) create mode 100644 libnymea/interfaces/doorbell.json diff --git a/libnymea/interfaces/doorbell.json b/libnymea/interfaces/doorbell.json new file mode 100644 index 00000000..e90aad65 --- /dev/null +++ b/libnymea/interfaces/doorbell.json @@ -0,0 +1,8 @@ +{ + "description": "An interface for doorbells. Emits \"doorbellPressed\" when the doorbell is pressed.", + "events": [ + { + "name": "doorbellPressed" + } + ] +} diff --git a/libnymea/interfaces/interfaces.qrc b/libnymea/interfaces/interfaces.qrc index 5d70e051..e4c7b3b0 100644 --- a/libnymea/interfaces/interfaces.qrc +++ b/libnymea/interfaces/interfaces.qrc @@ -4,6 +4,7 @@ dimmablelight.json daylightsensor.json colortemperaturelight.json + doorbell.json colorlight.json garagegate.json gateway.json @@ -68,6 +69,7 @@ navigationpad.json extendednavigationpad.json closablesensor.json + powerswitch.json