From 4e3b0ddb05e29095c96fd86f4907b18d2a3b90f3 Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Mon, 26 Mar 2018 11:40:28 +0200 Subject: [PATCH] split battery level into 2 --- libnymea/interfaces/battery.json | 6 ------ libnymea/interfaces/batterylevel.json | 11 +++++++++++ libnymea/interfaces/interfaces.qrc | 1 + 3 files changed, 12 insertions(+), 6 deletions(-) create mode 100644 libnymea/interfaces/batterylevel.json diff --git a/libnymea/interfaces/battery.json b/libnymea/interfaces/battery.json index 7385f5c9..8c580479 100644 --- a/libnymea/interfaces/battery.json +++ b/libnymea/interfaces/battery.json @@ -1,11 +1,5 @@ { "states": [ - { - "name": "batteryLevel", - "type": "int", - "minValue": 0, - "maxValue": 100 - }, { "name": "batteryCritical", "type": "bool" diff --git a/libnymea/interfaces/batterylevel.json b/libnymea/interfaces/batterylevel.json new file mode 100644 index 00000000..5a90b91a --- /dev/null +++ b/libnymea/interfaces/batterylevel.json @@ -0,0 +1,11 @@ +{ + "extends": "battery", + "states": [ + { + "name": "batteryLevel", + "type": "int", + "minValue": 0, + "maxValue": 100 + } + ] +} diff --git a/libnymea/interfaces/interfaces.qrc b/libnymea/interfaces/interfaces.qrc index 60fac03b..fca3439c 100644 --- a/libnymea/interfaces/interfaces.qrc +++ b/libnymea/interfaces/interfaces.qrc @@ -14,6 +14,7 @@ mediametadataprovider.json mediaplayer.json battery.json + batterylevel.json button.json simplebutton.json longpressbutton.json