Skip to content

v2.0.1

Choose a tag to compare

@csoscd csoscd released this 24 Jul 20:49
8ae0d4a

Fixed

  • jackery_home_power could show negative values: The base formula p_home = p_grid - p_ong can temporarily yield a negative result when the SmartMeter (type-101) and SolarVault (type-2) are sampled at different moments — e.g. when grid_sell momentarily exceeds ongrid_supply due to asynchronous sensor updates. House loads are physically never negative, so any negative result is a measurement artefact. Added max(0.0, p_home) clamp after all formula branches. Grid charging (inOngridPw > 0) is correctly handled by the formula itself and does not produce negative values.