mirror of https://github.com/nymea/nymea.git
Add energystorage interface
parent
249393241c
commit
500f6c6cef
|
|
@ -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
|
||||
}
|
||||
]
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -88,5 +88,6 @@
|
|||
<file>cleaningrobot.json</file>
|
||||
<file>airquality.json</file>
|
||||
<file>indoorairquality.json</file>
|
||||
<file>energystorage.json</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
|
|
|||
Loading…
Reference in New Issue