Add energystorage interface
This commit is contained in:
parent
249393241c
commit
500f6c6cef
@ -20,13 +20,9 @@
|
|||||||
"optional": true
|
"optional": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "charging",
|
"name": "chargingState",
|
||||||
"type": "bool",
|
"type": "QString",
|
||||||
"optional": true
|
"allowdValues": ["idle", "charging", "discharging"],
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "discharging",
|
|
||||||
"type": "bool",
|
|
||||||
"optional": true
|
"optional": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
12
libnymea/interfaces/energystorage.json
Normal file
12
libnymea/interfaces/energystorage.json
Normal 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
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@ -88,5 +88,6 @@
|
|||||||
<file>cleaningrobot.json</file>
|
<file>cleaningrobot.json</file>
|
||||||
<file>airquality.json</file>
|
<file>airquality.json</file>
|
||||||
<file>indoorairquality.json</file>
|
<file>indoorairquality.json</file>
|
||||||
|
<file>energystorage.json</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
|||||||
Reference in New Issue
Block a user