I guess you are right. I am not an expert but what I found on the SDK page:
{
"name": { "en": "My Driver" },
"images": {
"small": "/drivers/my_driver/assets/images/small.png",
"large": "/drivers/my_driver/assets/images/large.png"
},
"class": "battery",
"capabilities": ["measure_power", "measure_battery", "meter_power.charged", "meter_power.discharged"],
"capabilitiesOptions": {
"meter_power.charged": {
"title": { "en": "Charged Energy" }
},
"meter_power.discharged": {
"title": { "en": "Discharged Energy" }
}
},
"energy": {
"homeBattery": true,
"meterPowerImportedCapability": "meter_power.charged",
"meterPowerExportedCapability": "meter_power.discharged"
}
}
You can set the meter_power to .import or .export for the power plug but it seems it has to be .charged and .discharged?
According to the SDK page you can use battery_charging_state if the battery does not support the charging and discharging as separate values. But this also doesnt not work for me.