From 6b636fb82ebebd182cf6ab2e1972a4a334c778ec Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Thu, 25 Oct 2018 11:29:19 +0200 Subject: [PATCH] initial take on adding a smartmeter interface --- libnymea/interfaces/interfaces.qrc | 1 + libnymea/interfaces/smartmeter.json | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 libnymea/interfaces/smartmeter.json diff --git a/libnymea/interfaces/interfaces.qrc b/libnymea/interfaces/interfaces.qrc index 521b87f5..0cc2c1f8 100644 --- a/libnymea/interfaces/interfaces.qrc +++ b/libnymea/interfaces/interfaces.qrc @@ -42,6 +42,7 @@ extendedshutter.json smartlock.json system.json + smartmeter.json diff --git a/libnymea/interfaces/smartmeter.json b/libnymea/interfaces/smartmeter.json new file mode 100644 index 00000000..043ccceb --- /dev/null +++ b/libnymea/interfaces/smartmeter.json @@ -0,0 +1,9 @@ +{ + "states": [ + { + "name": "totalEnergy", + "type": "double" + } + + ] +}