views: - title: Test Cards path: default_view icon: mdi:test-tube cards: - type: markdown content: | ## Test cartes custom Ce dashboard sert uniquement à valider les cartes HACS. Si une carte plante ici, elle ne casse pas le Master. - 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 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: custom:button-card entity: switch.victron_evcs_charging name: EVCS Charge 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 hold_action: action: more-info styles: card: - border-radius: 18px - padding: 14px name: - font-size: 16px - font-weight: 600 state: - font-size: 13px state: - value: "on" color: "#43a047" - value: "off" color: "#757575" - type: custom:layout-card layout_type: grid layout: grid-template-columns: 1fr 1fr grid-gap: 16px margin: 0 cards: - type: tile entity: sensor.victron_pv_power_system name: Test Layout - PV - type: tile entity: sensor.victron_consumption_power_l1 name: Test Layout - Maison - type: markdown content: | **Card-mod OK si cette carte a une bordure bleue arrondie** card_mod: style: | ha-card { border: 2px solid #42a5f5; border-radius: 16px; padding: 8px; } - type: tile entity: sensor.victron_pv_power_system name: PV instantané vertical: false - type: custom:apexcharts-card graph_span: 6h 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" - type: custom:gauge-card-pro entity: sensor.victron_battery_soc header: Test Gauge Card Pro min: 0 max: 100 needle: true segments: - from: 0 color: "#f44336" - from: 25 color: "#ff9800" - from: 50 color: "#ffeb3b" - from: 75 color: "#4caf50"