{
    "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"],
    "states": [
        {
            "name": "maxChargingCurrent",
            "type": "uint",
            "writable": true,
            "unit": "Ampere",
            "minValue": "any",
            "maxValue": "any"
        },
        {
            "name": "pluggedIn",
            "type": "bool",
            "optional": true
        },
        {
            "name": "charging",
            "type": "bool",
            "logged": true,
            "optional": true
        },
        {
            "name": "phaseCount",
            "type": "uint",
            "minValue": 1,
            "maxValue": 3,
            "optional": true
        },
        {
            "name": "desiredPhaseCount",
            "type": "uint",
            "minValue": 1,
            "maxValue": 3,
            "possibleValues": "any",
            "writable": true,
            "optional": true
        },
        {
            "name": "sessionEnergy",
            "type": "double",
            "logged": true,
            "unit": "KiloWattHour",
            "optional": true
        }
    ]
}
