Treize paquets et dix-sept cartes n existaient qu en un seul exemplaire vivant sur le partage de 10.10.10.17. La sauvegarde quotidienne les couvre contre la perte, mais elle ne donne ni diff ni historique : le retrait des initial: du 06/09, les helpers de la reserve d orage, la politique batterie dynamique, la carte du conseiller reecrite hier n avaient aucune trace de leur evolution. ⚠️ Ce sont des COPIES. La source de verite reste le partage — c est l inverse de src/nodes/, et le LISEZMOI le dit en tete pour qu une prochaine session n edite pas la copie en croyant changer l installation. Verifie avant de verser : aucun identifiant en clair. Le paquet du bilan ne porte que la DECLARATION de la cle Forecast.Solar, en mode password ; sa valeur vit dans .storage, qui n entre pas ici. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GwpFpy2aQ2rJok6tNQSbVj
368 lines
15 KiB
YAML
Executable File
368 lines
15 KiB
YAML
Executable File
views:
|
|
- title: Master
|
|
path: default_view
|
|
icon: mdi:home-battery
|
|
cards:
|
|
- type: vertical-stack
|
|
cards:
|
|
- type: custom:mushroom-title-card
|
|
title: Victron Master
|
|
subtitle: Vue premium de synthèse énergie / pilotage
|
|
|
|
- type: conditional
|
|
conditions:
|
|
- entity: input_boolean.victron_auto_charge_enabled
|
|
state: "off"
|
|
card:
|
|
type: markdown
|
|
content: |
|
|
## ⚠️ Automatisation batterie désactivée
|
|
|
|
- type: conditional
|
|
conditions:
|
|
- entity: input_boolean.victron_charge_override_enabled
|
|
state: "on"
|
|
card:
|
|
type: markdown
|
|
content: |
|
|
## 🖐️ Override batterie actif
|
|
|
|
- type: conditional
|
|
conditions:
|
|
- entity: switch.edf_general_ok_switch
|
|
state: "off"
|
|
card:
|
|
type: markdown
|
|
content: |
|
|
## ⚠️ Réseau EDF désactivé
|
|
|
|
- type: custom:layout-card
|
|
layout_type: grid
|
|
layout:
|
|
grid-template-columns: repeat(auto-fit, minmax(360px, 1fr))
|
|
grid-gap: 16px
|
|
margin: 0
|
|
cards:
|
|
- type: custom:vertical-stack-in-card
|
|
cards:
|
|
- type: custom:gauge-card-pro
|
|
entity: sensor.victron_battery_soc
|
|
header: Batterie
|
|
min: 0
|
|
max: 100
|
|
needle: true
|
|
segments:
|
|
- from: 0
|
|
color: "#f44336"
|
|
- from: 25
|
|
color: "#fb8c00"
|
|
- from: 50
|
|
color: "#fdd835"
|
|
- from: 75
|
|
color: "#43a047"
|
|
|
|
- type: custom:mushroom-template-card
|
|
entity: sensor.victron_battery_soc
|
|
primary: Batterie
|
|
secondary: >
|
|
SOC {{ states('sensor.victron_battery_soc') | float(0) | round(1) }} %
|
|
• {{ states('sensor.victron_battery_power') | float(0) | round(0) }} W
|
|
• {{ states('input_text.victron_charge_mode') }}
|
|
multiline_secondary: true
|
|
icon: mdi:battery
|
|
icon_color: >
|
|
{% set s = states('sensor.victron_battery_soc') | float(0) %}
|
|
{% if s < 25 %} red
|
|
{% elif s < 50 %} orange
|
|
{% elif s < 75 %} yellow
|
|
{% else %} green
|
|
{% endif %}
|
|
|
|
- type: entities
|
|
show_header_toggle: false
|
|
entities:
|
|
- entity: sensor.victron_battery_voltage
|
|
name: Tension batterie
|
|
- entity: sensor.victron_battery_current
|
|
name: Courant batterie
|
|
- entity: input_text.victron_charge_reason
|
|
name: Raison batterie
|
|
|
|
- type: custom:vertical-stack-in-card
|
|
cards:
|
|
- type: custom:mushroom-title-card
|
|
title: Flux énergie
|
|
subtitle: Instantané
|
|
|
|
- type: custom:mushroom-template-card
|
|
primary: Production PV
|
|
secondary: >
|
|
{{ states('sensor.victron_pv_power_system') | float(0) | round(0) }} W
|
|
icon: mdi:solar-power
|
|
icon_color: >
|
|
{% set pv = states('sensor.victron_pv_power_system') | float(0) %}
|
|
{% if pv < 300 %} grey
|
|
{% elif pv < 1500 %} yellow
|
|
{% else %} green
|
|
{% endif %}
|
|
|
|
- type: custom:mushroom-template-card
|
|
primary: Consommation maison
|
|
secondary: >
|
|
{{ states('sensor.victron_consumption_power_l1') | float(0) | round(0) }} W
|
|
icon: mdi:home-lightning-bolt
|
|
icon_color: blue
|
|
|
|
- type: custom:mushroom-template-card
|
|
primary: Réseau
|
|
secondary: >
|
|
{{ states('sensor.victron_grid_power_l1') | float(0) | round(0) }} W
|
|
icon: mdi:transmission-tower
|
|
icon_color: >
|
|
{% set g = states('sensor.victron_grid_power_l1') | float(0) %}
|
|
{% if g > 0 %} red
|
|
{% elif g < 0 %} green
|
|
{% else %} blue
|
|
{% endif %}
|
|
|
|
- type: custom:vertical-stack-in-card
|
|
cards:
|
|
- type: custom:mushroom-title-card
|
|
title: Charges pilotées
|
|
subtitle: EVCS / Chauffe-eau / Garage
|
|
|
|
- type: custom:mushroom-template-card
|
|
entity: sensor.victron_evcs_status
|
|
primary: EVCS
|
|
secondary: >
|
|
{{ states('sensor.victron_evcs_status') }}
|
|
• Mode {{ states('sensor.victron_evcs_mode') }}
|
|
• {{ states('sensor.victron_evcs_current') | float(0) | round(0) }} A
|
|
multiline_secondary: true
|
|
icon: mdi:ev-station
|
|
icon_color: >
|
|
{% if is_state('switch.victron_evcs_charging', 'on') %}
|
|
green
|
|
{% elif is_state('binary_sensor.victron_evcs_vehicle_connected', 'on') %}
|
|
blue
|
|
{% else %}
|
|
grey
|
|
{% endif %}
|
|
|
|
- type: custom:mushroom-template-card
|
|
entity: switch.tt_chauffe_eau_pleumeur_switch
|
|
primary: Chauffe-eau
|
|
secondary: >
|
|
Mode recommandé : {{ states('input_select.victron_water_heater_recommended_mode') }}
|
|
multiline_secondary: true
|
|
icon: mdi:water-boiler
|
|
icon_color: >
|
|
{% if is_state('switch.tt_chauffe_eau_pleumeur_switch', 'on') %}
|
|
orange
|
|
{% else %}
|
|
grey
|
|
{% endif %}
|
|
|
|
- type: custom:mushroom-template-card
|
|
entity: switch.clim_hygro_socket_1
|
|
primary: Garage
|
|
secondary: >
|
|
{{ states('input_text.garage_clim_state') }}
|
|
multiline_secondary: true
|
|
icon: mdi:air-conditioner
|
|
icon_color: >
|
|
{% if is_state('switch.clim_hygro_socket_1', 'on') %}
|
|
cyan
|
|
{% else %}
|
|
grey
|
|
{% endif %}
|
|
|
|
- type: custom:vertical-stack-in-card
|
|
cards:
|
|
- type: custom:mushroom-title-card
|
|
title: Pilotage & conseils
|
|
subtitle: États système
|
|
|
|
- type: entities
|
|
show_header_toggle: false
|
|
entities:
|
|
- entity: input_boolean.victron_auto_charge_enabled
|
|
name: Automatisation batterie
|
|
- entity: input_boolean.victron_charge_override_enabled
|
|
name: Override batterie
|
|
- entity: input_boolean.victron_flexible_load_advisor_enabled
|
|
name: Flexible Load Advisor
|
|
- entity: input_boolean.victron_water_heater_advisor_enabled
|
|
name: Advisor chauffe-eau
|
|
- entity: input_boolean.victron_grid_hysteresis_enabled
|
|
name: Hystérésis réseau
|
|
- entity: input_text.victron_grid_control_state
|
|
name: État réseau
|
|
- entity: input_text.victron_flexible_load_state
|
|
name: État advisor
|
|
|
|
- type: custom:vertical-stack-in-card
|
|
cards:
|
|
- type: custom:mushroom-title-card
|
|
title: Actions rapides
|
|
subtitle: Contrôle direct
|
|
|
|
- type: grid
|
|
columns: 2
|
|
square: false
|
|
cards:
|
|
- type: custom:button-card
|
|
entity: switch.victron_evcs_charging
|
|
name: EVCS
|
|
icon: mdi:ev-station
|
|
show_state: true
|
|
state_display: >
|
|
[[[
|
|
if (!entity) return 'Inconnu';
|
|
if (entity.state === 'on') return 'ON';
|
|
if (entity.state === 'off') return 'OFF';
|
|
return entity.state;
|
|
]]]
|
|
tap_action:
|
|
action: more-info
|
|
styles:
|
|
card:
|
|
- border-radius: 18px
|
|
- padding: 12px
|
|
name:
|
|
- font-size: 15px
|
|
- font-weight: 600
|
|
state:
|
|
- value: "on"
|
|
color: "#43a047"
|
|
- value: "off"
|
|
color: "#757575"
|
|
|
|
- type: custom:button-card
|
|
entity: switch.tt_chauffe_eau_pleumeur_switch
|
|
name: Chauffe-eau
|
|
icon: mdi:water-boiler
|
|
show_state: true
|
|
state_display: >
|
|
[[[
|
|
if (!entity) return 'Inconnu';
|
|
if (entity.state === 'on') return 'ON';
|
|
if (entity.state === 'off') return 'OFF';
|
|
return entity.state;
|
|
]]]
|
|
tap_action:
|
|
action: more-info
|
|
styles:
|
|
card:
|
|
- border-radius: 18px
|
|
- padding: 12px
|
|
name:
|
|
- font-size: 15px
|
|
- font-weight: 600
|
|
state:
|
|
- value: "on"
|
|
color: "#fb8c00"
|
|
- value: "off"
|
|
color: "#757575"
|
|
|
|
- type: custom:button-card
|
|
entity: switch.edf_general_ok_switch
|
|
name: Réseau EDF
|
|
icon: mdi:transmission-tower
|
|
show_state: true
|
|
state_display: >
|
|
[[[
|
|
if (!entity) return 'Inconnu';
|
|
if (entity.state === 'on') return 'ON';
|
|
if (entity.state === 'off') return 'OFF';
|
|
return entity.state;
|
|
]]]
|
|
tap_action:
|
|
action: more-info
|
|
styles:
|
|
card:
|
|
- border-radius: 18px
|
|
- padding: 12px
|
|
name:
|
|
- font-size: 15px
|
|
- font-weight: 600
|
|
state:
|
|
- value: "on"
|
|
color: "#42a5f5"
|
|
- value: "off"
|
|
color: "#e53935"
|
|
|
|
- type: custom:button-card
|
|
entity: switch.clim_hygro_socket_1
|
|
name: Garage
|
|
icon: mdi:air-conditioner
|
|
show_state: true
|
|
state_display: >
|
|
[[[
|
|
if (!entity) return 'Inconnu';
|
|
if (entity.state === 'on') return 'ON';
|
|
if (entity.state === 'off') return 'OFF';
|
|
return entity.state;
|
|
]]]
|
|
tap_action:
|
|
action: more-info
|
|
styles:
|
|
card:
|
|
- border-radius: 18px
|
|
- padding: 12px
|
|
name:
|
|
- font-size: 15px
|
|
- font-weight: 600
|
|
state:
|
|
- value: "on"
|
|
color: "#26c6da"
|
|
- value: "off"
|
|
color: "#757575"
|
|
|
|
- type: custom:vertical-stack-in-card
|
|
cards:
|
|
- type: custom:mushroom-title-card
|
|
title: Verdict rapide
|
|
subtitle: Conseils automatisation
|
|
|
|
- type: entities
|
|
show_header_toggle: false
|
|
entities:
|
|
- entity: input_boolean.victron_advice_evcs_ok
|
|
name: EVCS OK
|
|
- entity: input_boolean.victron_advice_water_heater_ok
|
|
name: Chauffe-eau OK
|
|
- entity: input_boolean.victron_advice_garage_clim_ok
|
|
name: Garage OK
|
|
- entity: input_boolean.victron_advice_sdb_heater_ok
|
|
name: Chauffage SDB OK
|
|
- entity: input_select.victron_water_heater_recommended_mode
|
|
name: Mode recommandé chauffe-eau
|
|
|
|
- type: custom:vertical-stack-in-card
|
|
cards:
|
|
- type: custom:mushroom-title-card
|
|
title: Historique énergie
|
|
subtitle: 8 dernières heures
|
|
|
|
- type: custom:apexcharts-card
|
|
graph_span: 8h
|
|
header:
|
|
show: true
|
|
title: Flux énergie
|
|
show_states: false
|
|
series:
|
|
- entity: sensor.victron_pv_power_system
|
|
name: PV
|
|
color: "#fdd835"
|
|
- entity: sensor.victron_consumption_power_l1
|
|
name: Maison
|
|
color: "#42a5f5"
|
|
- entity: sensor.victron_grid_power_l1
|
|
name: Réseau
|
|
color: "#ef5350"
|
|
- entity: sensor.victron_battery_power
|
|
name: Batterie
|
|
color: "#ab47bc"
|
|
|