fixed currentInstantWatts ioThink battery
MODIFY
src/integration/asset/iothink/IothinkAssetIntegration.ts
src/integration/asset/iothink/IothinkAssetIntegration.ts
@@ -111,7 +111,7 @@ export default class IothinkAssetIntegration extends AssetIntegration<AssetSetti
};
break;
case AssetType.CONSUMPTION_AND_PRODUCTION:
- Utils.createDecimal(this.getPropertyValue(mergedConsumption, IothinkProperty.IO_POW_ACTIVE)).mul(1000).toNumber();
+ consumption.currentInstantWatts = Utils.createDecimal(this.getPropertyValue(mergedConsumption, IothinkProperty.IO_POW_ACTIVE)).mul(1000).toNumber();
consumption.currentStateOfCharge = this.getPropertyValue(mergedConsumption, IothinkProperty.IO_SOC);
consumption.currentConsumptionWh = this.getPropertyValue(mergedConsumption, IothinkProperty.IO_ENERGY_CHARGE)
- this.getPropertyValue(mergedConsumption, IothinkProperty.IO_ENERGY_DISCHARGE);

fixed currentInstantWatts ioThink battery