Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions packages/modules/chargepoints/smartwb/smartwb_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ class TestSmartWb:
plug_state=True,
charge_state=True,
rfid="0a1b2c3d",
rfid_timestamp=1652683252,
serial_number="94:B9:7E:69:F0:D1",
max_evse_current=16
)
Expand Down Expand Up @@ -100,7 +99,6 @@ class TestSmartWb:
plug_state=True,
charge_state=True,
rfid="0a1b2c3d",
rfid_timestamp=1652683252,
phases_in_use=None,
serial_number="94:B9:7E:69:F0:D1",
max_evse_current=16
Expand Down
5 changes: 1 addition & 4 deletions packages/modules/common/component_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,7 @@ def __init__(self,
self.charge_state = charge_state
self.plug_state = plug_state
self.rfid = rfid
if self.rfid and rfid_timestamp is None:
self.rfid_timestamp = timecheck.create_timestamp()
else:
self.rfid_timestamp = rfid_timestamp
self.rfid_timestamp = rfid_timestamp
if _check_none(power_factors):
power_factors = [0.0]*3
self.charging_current = charging_current
Expand Down
3 changes: 2 additions & 1 deletion packages/modules/common/store/_chargepoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ def update(self):
pub_to_broker("openWB/set/chargepoint/" + str(self.num) + "/get/charge_state", self.state.charge_state, 2)
pub_to_broker("openWB/set/chargepoint/" + str(self.num) + "/get/plug_state", self.state.plug_state, 2)
pub_to_broker("openWB/set/chargepoint/" + str(self.num) + "/get/rfid", self.state.rfid)
pub_to_broker("openWB/set/chargepoint/" + str(self.num) + "/get/rfid_timestamp", self.state.rfid_timestamp)
if self.state.rfid_timestamp is not None:
pub_to_broker("openWB/set/chargepoint/" + str(self.num) + "/get/rfid_timestamp", self.state.rfid_timestamp)
pub_to_broker("openWB/set/chargepoint/" + str(self.num) + "/get/serial_number", self.state.serial_number)
pub_to_broker("openWB/set/chargepoint/" + str(self.num) + "/get/soc", self.state.soc)
pub_to_broker("openWB/set/chargepoint/" + str(self.num) + "/get/soc_timestamp", self.state.soc_timestamp)
Expand Down
1 change: 1 addition & 0 deletions packages/modules/common/store/_chargepoint_internal.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def update(self):
pub_to_broker(f"{topic_prefix}/soc_timestamp", self.state.soc_timestamp)
if self.state.rfid_timestamp is not None:
pub_to_broker(f"{topic_prefix}/vehicle_id", self.state.vehicle_id)
pub_to_broker(f"{topic_prefix}/rfid_timestamp", self.state.rfid_timestamp)


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