Les paquets et cartes Home Assistant entrent enfin dans l historique
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
This commit is contained in:
124
dashboards/test_cards.yaml
Executable file
124
dashboards/test_cards.yaml
Executable file
@@ -0,0 +1,124 @@
|
||||
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"
|
||||
|
||||
Reference in New Issue
Block a user