diff --git a/dashboards/evcs_master.yaml b/dashboards/evcs_master.yaml index 996841d..5fee160 100755 --- a/dashboards/evcs_master.yaml +++ b/dashboards/evcs_master.yaml @@ -168,6 +168,33 @@ views: grey {% endif %} + # Un contournement manuel doit afficher son echeance, sinon + # « force_grid_now » se lit comme un etat permanent — c'est ce + # qui a laisse tourner une charge reseau au plein tarif le + # 17/09/2026. + - type: conditional + conditions: + - entity: input_select.victron_evcs_strategy + state: force_grid_now + card: + type: custom:mushroom-template-card + primary: Réseau forcé — échéance + secondary: > + {% set s = states.input_select.victron_evcs_strategy %} + {% set d = ((as_timestamp(now()) - as_timestamp(s.last_changed)) / 60) | round(0) %} + {% set p = states('input_number.evcs_force_grid_max_minutes') | float(180) %} + {% if is_state('input_boolean.evcs_expiration_force_grid_enabled', 'on') %} + Actif depuis {{ d }} min. S'arrête à la sortie de la fenêtre + d'heures creuses, ou après {{ p | round(0) }} min. + {% else %} + ⚠️ Expiration DÉSACTIVÉE : il ne s'arrêtera pas tout seul. + Actif depuis {{ d }} min. + {% endif %} + multiline_secondary: true + icon: mdi:timer-sand + icon_color: > + {% if is_state('input_boolean.evcs_expiration_force_grid_enabled', 'on') %}orange{% else %}red{% endif %} + - type: custom:mushroom-template-card primary: Besoin véhicule secondary: > @@ -196,6 +223,12 @@ views: name: ⚡ Réseau avant départ (P9) - entity: input_select.victron_evcs_strategy name: Stratégie EVCS + - entity: input_boolean.evcs_expiration_force_grid_enabled + name: └ ⏳ le réseau forcé expire tout seul + - entity: input_number.evcs_force_grid_max_minutes + name: " └ durée maximale" + - entity: input_text.evcs_force_grid_last_expiry + name: " └ dernière expiration" - entity: input_boolean.victron_evcs_allow_grid_hc_night name: Réseau HC nuit - entity: input_boolean.victron_evcs_night_battery_charge