title: EVCS & Solar Dashboard views: - panel: false path: evcs_solar_hub badges: [] cards: # --- HEADER & INFO GÉNÉRALE --- - type: custom:grid-layout grid-template-columns: 1fr 2fr 1fr grid-template-rows: auto auto grid-template-areas: | "header header header" "stats stats stats" cards: # 1. Titre et Logo (Gauche) - type: custom:grid-item grid-column: 1 / 2 grid-row: 1 / 3 card: type: custom:button-card entity: sensor.solar_production_daily show_state: true show_label: true label: Installation tap_action: action: more-info color_type: card styles: card: - background-color: transparent - border-radius: 8px - padding: 10px - border: 1px solid rgba(0,0,0,0.1) - display: flex - flex-direction: column - align-items: center - justify-content: center - height: 100% - text-align: center tap: action: none # 2. Statistiques (Droite) - type: custom:grid-item grid-column: 3 / 4 grid-row: 1 / 3 card: type: entities title: "" entities: - entity: sensor.weather_temperature name: Température - entity: sensor.weather_condition name: Météo - entity: sensor.internet_status name: Internet # --- ZONE CENTRALE (STATUS BATTERIE & CONSOMMATION) --- # On utilise une grille 3 colonnes pour séparer la batterie, la charge (EV) et le réseau - type: grid columns: 3 cards: # CARTE GAUCHE : BATTERIE & RÉSEAU - type: entities entities: - type: divider - entity: sensor.battery_voltage name: État Décharge (62.0%) show_state: true show_icon: true show_unit_of_measurement: false - entity: sensor.battery_power name: Courant show_state: true - entity: sensor.battery_temperature name: Température - type: divider - entity: binary_sensor.network_status name: Réseau state: - value: 'off' attributes: - state: true color: red name: Connecté - entity: sensor.solar_production_now name: Production PV show_state: true # CARTE CENTRE : CHARGEUR EV - type: entities entities: - type: divider - entity: binary_sensor.ev_charge_state name: Chargeur VE show_state: true - entity: number.ev_max_current_setting name: Courant Max (Manual) show_state: true - entity: sensor.ev_charge_duration name: Temps restant show_state: true - entity: sensor.ev_charging_energy_total name: Énergie Totale (7kWh) # CARTE DROITE : GRID & MPPT (SIMULÉ) - type: entities entities: - type: divider - entity: sensor.ac_loads_power name: Charges CA (703 W) show_state: true - entity: sensor.frequency_hz name: Fréquence show_state: true - entity: sensor.mppt_current name: MPPT (PV) show_state: true # --- ZONE GRAPHIQUES DU BAS --- - type: custom:vertical-stack-in-card cards: # Courbe de consommation / production - type: custom:mini-graph-card entities: - entity: sensor.solar_production - entity: sensor.power_consumption show: state: false labels: false labels_secondary: false icons: false name: false legend: true hours_to_show: 24 show: points: false graph: line # Prévisions (Barres - simplifiées ici) - type: custom:mini-graph-card entities: - entity: sensor.solar_production_forecast show: legend: false hours_to_show: 24 show: points: false graph: bar