From cad4e04bfc3043291fec5629c5c930b2c75045de Mon Sep 17 00:00:00 2001 From: MartinRinas Date: Tue, 14 Jan 2025 20:56:39 +0000 Subject: [PATCH] publish soc_timestamp --- packages/modules/common/store/_car.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/modules/common/store/_car.py b/packages/modules/common/store/_car.py index 34621bd12a..6933ba7b9f 100644 --- a/packages/modules/common/store/_car.py +++ b/packages/modules/common/store/_car.py @@ -27,6 +27,9 @@ def update(self): pub_to_broker("openWB/set/vehicle/"+str(self.vehicle_id)+"/get/soc", self.state.soc, 2) if self.state.range: pub_to_broker("openWB/set/vehicle/"+str(self.vehicle_id)+"/get/range", self.state.range, 2) + if self.state.soc_timestamp: + pub_to_broker("openWB/set/vehicle/"+str(self.vehicle_id)+"/get/soc_timestamp", self.state.soc_timestamp) + except Exception as e: raise FaultState.from_exception(e)