Skip to content

Commit 87ffd48

Browse files
committed
Pro+: fix soc and mac (#2424)
1 parent 87108ed commit 87ffd48

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

packages/modules/common/store/_chargepoint_internal.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ def update(self):
3333
"/get/evse_current", self.state.evse_current, 2)
3434
pub_to_broker("openWB/set/internal_chargepoint/" + str(self.num) +
3535
"/get/max_evse_current", self.state.max_evse_current, 2)
36+
if self.state.soc is not None:
37+
pub_to_broker("openwb/set/internal_chargepoint/" + str(self.num) + "/get/soc", self.state.soc)
38+
if self.state.soc_timestamp is not None:
39+
pub_to_broker("openwb/set/internal_chargepoint/" + str(self.num) +
40+
"/soc_timestamp", self.state.soc_timestamp)
41+
if self.state.rfid_timestamp is not None:
42+
pub_to_broker("openwb/set/internal_chargepoint/" + str(self.num) + "/vehicle_id", self.state.vehicle_id)
3643

3744

3845
def get_internal_chargepoint_value_store(id: int) -> ValueStore[ChargepointState]:

0 commit comments

Comments
 (0)