{
    "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"
        }
    ]
}
