Merge PR #463: Add energystorage interface

This commit is contained in:
Jenkins nymea 2021-12-11 00:30:55 +01:00
commit 9bd4aa2a32
6 changed files with 26 additions and 12 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,17 @@
{
"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
},
{
"name": "capacity",
"type": "double",
"unit": "KiloWattHour"
}
]
}

View File

@ -1,6 +1,6 @@
{
"description": "An EV-charger. Extends the power interface for charging/not charging an electric vehicle. Supports regulation of the max. charging current in addition to be powered on or off.",
"extends": "power",
"extends": ["smartmeterconsumer", "power"],
"states": [
{
"name": "maxChargingCurrent",

View File

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

View File

@ -5,13 +5,13 @@
{
"name": "totalEnergyConsumed",
"type": "double",
"unit": "KiloWattHour"
"unit": "KiloWattHour",
"logged": true
},
{
"name": "currentPower",
"type": "double",
"unit": "Watt",
"optional": true,
"logged": true
}
]

View File

@ -5,13 +5,13 @@
{
"name": "totalEnergyProduced",
"type": "double",
"unit": "KiloWattHour"
"unit": "KiloWattHour",
"logged": true
},
{
"name": "currentPower",
"type": "double",
"unit": "Watt",
"optional": true,
"logged": true
}
]