Skip to content

Commit

Permalink
web/power_manager: Fix phase display on managed chargers
Browse files Browse the repository at this point in the history
Show correct 1p/3p state on managed chargers.
  • Loading branch information
MattiasTF committed Dec 4, 2024
1 parent 7e7f848 commit 46ade10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion software/web/src/modules/power_manager/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ export class PowerManagerStatus extends Component {
let state = API.get('power_manager/state');
let ll_state = API.get('power_manager/low_level_state');
let config = API.get('power_manager/config');
const phases = API.get_unchecked('evse/low_level_state')?.phases_current | API.get_unchecked('energy_manager/state')?.phases_switched;

return <StatusSection name="power_manager">
{API.get('power_manager/config').enabled ?
Expand Down Expand Up @@ -212,7 +213,7 @@ export class PowerManagerStatus extends Component {
:
<FormRow label={__("power_manager.status.phase_switching")}>
<IndicatorGroup
value={!ll_state.is_3phase ? 0 : 1}
value={phases == 3 ? 1 : 0}
items={[
["primary", __("power_manager.status.single_phase")],
["primary", __("power_manager.status.three_phase")],
Expand Down

0 comments on commit 46ade10

Please sign in to comment.