{
    "states": [
        {
            "name": "batteryCritical",
            "type": "bool",
            "logged": true
        },
        {
            "name": "batteryLevel",
            "type": "int",
            "minValue": 0,
            "maxValue": 100,
            "unit": "Percentage",
            "optional": true,
            "logged": true
        },
        {
            "name": "pluggedIn",
            "type": "bool",
            "optional": true
        },
        {
            "name": "chargingState",
            "type": "QString",
            "allowedValues": ["idle", "charging", "discharging"],
            "optional": true
        }
    ]
}
