Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix chargepoint state / pv switch off #1873

Merged
merged 1 commit into from
Sep 6, 2024
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: 1 addition & 1 deletion packages/control/phase_switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ def _perform_phase_switch(chargepoint_module: AbstractChargepoint, phases: int,


def phase_switch_thread_alive(cp_num):
is_thread_alive(f"phase switch cp{cp_num}")
return is_thread_alive(f"phase switch cp{cp_num}")
4 changes: 3 additions & 1 deletion packages/modules/chargepoints/mqtt/chargepoint_module.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import logging

from helpermodules.utils.error_counter import CP_ERROR, ErrorTimerContext
from modules.chargepoints.mqtt.config import Mqtt
from modules.common.abstract_chargepoint import AbstractChargepoint
from modules.common.abstract_device import DeviceDescriptor
Expand All @@ -15,7 +16,8 @@ def __init__(self, config: Mqtt) -> None:
self.fault_state = FaultState(ComponentInfo(
self.config.id,
"Ladepunkt", "chargepoint"))
self.a = 5
self.client_error_context = ErrorTimerContext(
f"openWB/set/chargepoint/{self.config.id}/get/error_timestamp", CP_ERROR, hide_exception=True)

def set_current(self, current: float) -> None:
with SingleComponentUpdateContext(self.fault_state):
Expand Down