diff --git a/packages/modules/display_themes/cards/source/src/views/ChargePointsView.vue b/packages/modules/display_themes/cards/source/src/views/ChargePointsView.vue index 73f680b164..fb1a9e1e2a 100644 --- a/packages/modules/display_themes/cards/source/src/views/ChargePointsView.vue +++ b/packages/modules/display_themes/cards/source/src/views/ChargePointsView.vue @@ -371,6 +371,27 @@ export default { template, ); }, + scheduledChargingPlanHours(time) { + return parseInt(time.split(":")[0], 10); + }, + scheduledChargingPlanMinutes(time) { + return parseInt(time.split(":")[1], 10); + }, + setChargePointConnectedVehicleScheduledChargingPlanTime( + id, + plan_id, + hours, + minutes, + ) { + const newTime = `${String(hours).padStart(2, "0")}:${String(minutes,).padStart(2, "0")}`; + const templateTopic = `openWB/chargepoint/${id}/set/charge_template`; + const template = this.mqttStore.updateState( + templateTopic, + newTime, + `chargemode.scheduled_charging.plans.${plan_id}.time`, + ); + this.$root.sendTopicToBroker(templateTopic, template); + }, }, }; @@ -1287,7 +1308,7 @@ export default { Es wurden noch keine Zeitpläne für das Zielladen eingerichtet. - - - - -
- {{ plan.name }} -
-
-
- - {{ mqttStore.formatDate(plan.frequency.once) }} -
-
- - täglich -
-
- - {{ - mqttStore.formatWeeklyScheduleDays(plan.frequency.weekly) - }} -
-
- - {{ plan.time }} -
-
- - {{ plan.limit.soc_scheduled }} % - - {{ plan.limit.soc_limit }} % -
-
- - {{ plan.limit.amount / 1000 }} kWh + + + + +
+ {{ plan.name }}
-
- +
+
+ + {{ mqttStore.formatDate(plan.frequency.once) }} +
+
+ + täglich +
+
+ + {{ + mqttStore.formatWeeklyScheduleDays(plan.frequency.weekly) + }} +
+
+ + {{ plan.time }} +
+
+ + {{ plan.limit.soc_scheduled }} % + + {{ plan.limit.soc_limit }} % +
+
+ + {{ plan.limit.amount / 1000 }} kWh +
+
+ +
-
-
+ +
+
+
+ + Ziel-Termin + + + + + + + - - + +
+