Add energystorage interface

pull/463/head
Michael Zanetti 2021-09-21 13:40:50 +02:00 committed by Simon Stürz
parent 249393241c
commit 500f6c6cef
3 changed files with 16 additions and 7 deletions

View File

@ -20,13 +20,9 @@
"optional": true
},
{
"name": "charging",
"type": "bool",
"optional": true
},
{
"name": "discharging",
"type": "bool",
"name": "chargingState",
"type": "QString",
"allowdValues": ["idle", "charging", "discharging"],
"optional": true
}
]

View File

@ -0,0 +1,12 @@
{
"description": "Interfaces for devices that store electrical energy and can return it at a later point, such as batteries. The currentPower state follows the usual convention that positive is 'consumed' energy and negative values represent 'produced' or in this case 'returned' energy.",
"extends": ["battery", "smartmeter"],
"states": [
{
"name": "currentPower",
"type": "double",
"unit": "Watt",
"logged": true
}
]
}

View File

@ -88,5 +88,6 @@
<file>cleaningrobot.json</file>
<file>airquality.json</file>
<file>indoorairquality.json</file>
<file>energystorage.json</file>
</qresource>
</RCC>