Skip to content

Conversation

@Brett-S-OWB
Copy link
Contributor

No description provided.

@LKuemmel LKuemmel force-pushed the feature-integrated-charging-plans branch from 1d913e5 to 8da6e31 Compare June 25, 2025 05:17
Comment on lines 2445 to 2599
const plans = vehicleScheduledChargingPlans.value(chargePointId);
const plan = plans.find((p) => p.id === planId);
return plan?.phases_to_use_pv;
},
set(newValue: number) {
const baseTopic = `openWB/chargepoint/${chargePointId}/set/charge_template/chargemode/scheduled_charging/plans/${planId}`;
updateTopic(baseTopic, newValue, 'phases_to_use_pv', true);
const plans = vehicleScheduledChargingPlans.value(chargePointId);
const planIndex = plans.findIndex((plan) => plan.id === planId);
if (planIndex === -1) return;
const objectPath = `chargemode.scheduled_charging.plans.${planIndex}.phases_to_use_pv`;
updateTopic(
`openWB/chargepoint/${chargePointId}/set/charge_template`,
newValue,
objectPath,
true,
);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hier wird mehrfach der gleiche Code ausgeführt. Kann man das in eine Methode zusammen fassen?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hilfsfunktion hinzugefügt, um wiederholten Code zu vermeiden.

@LKuemmel LKuemmel force-pushed the feature-integrated-charging-plans branch from 8da6e31 to 25cbd10 Compare June 26, 2025 07:38
@Brett-S-OWB
Copy link
Contributor Author

SoC-Symbole entfernt, wenn die Energiemenge im Ladeplan aktiv ist.

@LKuemmel
Copy link
Contributor

SoC-Symbole entfernt, wenn die Energiemenge im Ladeplan aktiv ist.

Kannst Du das bitte in einen eigenen PR packen? Das hat inhaltlich nichts mit der Umstrukturierung der Pläne zu tun und muss auch nicht in den Feature-Branch, sondern kann direkt in den Master.

@Brett-S-OWB Brett-S-OWB force-pushed the integrated-charging-plans branch from 17d9168 to 8e39264 Compare June 27, 2025 14:34
@Brett-S-OWB
Copy link
Contributor Author

Commit SoC-Symbole entfernt

@Brett-S-OWB Brett-S-OWB force-pushed the integrated-charging-plans branch from 8e39264 to 4755868 Compare June 30, 2025 13:59
@LKuemmel LKuemmel merged commit 139af9b into openWB:feature-integrated-charging-plans Jun 30, 2025
1 check passed
LKuemmel added a commit that referenced this pull request Jul 1, 2025
* cards display: switch to integrated plans

* standard-legacy: switch to integrated plans

* backend

* fixes

* standard legacy: switch to plan lists

* cards display: switch to plan lists

* plans as list

* autolock update config

* fixes, remove subdata workaround

* fixes

* fixes, pytest

* fixes

* fixes

* fix copying auto lock plan

* fix initial once timestamp, fix max ids

* add missing ids in templates

* fix

* fix once

* fix once

* fix pytest

* Colors theme: adapt to integrated charging plans (#2495)

* adapt to integrated charging plans

* align time charging information to new temporary template

* fix pricechart axis

* Update time and scheduled charging plans for new topic structure (#2480)

* fix no plans

* build UI

* fix update config

---------

Co-authored-by: Lutz Bender <github@lutz-bender.de>
Co-authored-by: cshagen <cshagen@hagens.ch>
Co-authored-by: BrettS <168732306+Brett-S-OWB@users.noreply.github.com>
@Brett-S-OWB Brett-S-OWB deleted the integrated-charging-plans branch July 14, 2025 06:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants