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:
383
dashboards/victron_mobile.yaml
Executable file
383
dashboards/victron_mobile.yaml
Executable file
@@ -0,0 +1,383 @@
|
||||
views:
|
||||
- title: Mobile
|
||||
path: default_view
|
||||
icon: mdi:cellphone
|
||||
cards:
|
||||
- type: vertical-stack
|
||||
cards:
|
||||
- type: custom:mushroom-title-card
|
||||
title: Victron Mobile
|
||||
subtitle: Vue rapide iPhone / écran étroit
|
||||
|
||||
- type: conditional
|
||||
conditions:
|
||||
- entity: input_boolean.victron_auto_charge_enabled
|
||||
state: "off"
|
||||
card:
|
||||
type: markdown
|
||||
content: |
|
||||
## ⚠️ Auto batterie OFF
|
||||
|
||||
- type: conditional
|
||||
conditions:
|
||||
- entity: input_boolean.victron_charge_override_enabled
|
||||
state: "on"
|
||||
card:
|
||||
type: markdown
|
||||
content: |
|
||||
## 🖐️ Override actif
|
||||
|
||||
- type: conditional
|
||||
conditions:
|
||||
- entity: switch.edf_general_ok_switch
|
||||
state: "off"
|
||||
card:
|
||||
type: markdown
|
||||
content: |
|
||||
## ⚠️ Réseau EDF OFF
|
||||
|
||||
- type: custom:vertical-stack-in-card
|
||||
mode: vertical
|
||||
card_mod:
|
||||
style: |
|
||||
ha-card {
|
||||
border-radius: 20px;
|
||||
border: 1px solid rgba(255,255,255,0.10);
|
||||
box-shadow: 0 6px 16px rgba(0,0,0,0.18);
|
||||
}
|
||||
cards:
|
||||
- type: custom:gauge-card-pro
|
||||
entity: sensor.victron_battery_soc
|
||||
header: SOC 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: >
|
||||
{{ 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: custom:vertical-stack-in-card
|
||||
mode: vertical
|
||||
card_mod:
|
||||
style: |
|
||||
ha-card {
|
||||
border-radius: 20px;
|
||||
border: 1px solid rgba(255,255,255,0.10);
|
||||
box-shadow: 0 6px 16px rgba(0,0,0,0.18);
|
||||
}
|
||||
cards:
|
||||
- type: custom:mushroom-title-card
|
||||
title: É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: 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
|
||||
mode: vertical
|
||||
card_mod:
|
||||
style: |
|
||||
ha-card {
|
||||
border-radius: 20px;
|
||||
border: 1px solid rgba(255,255,255,0.10);
|
||||
box-shadow: 0 6px 16px rgba(0,0,0,0.18);
|
||||
}
|
||||
cards:
|
||||
- type: custom:mushroom-title-card
|
||||
title: Charges pilotées
|
||||
subtitle: États clés
|
||||
|
||||
- type: custom:mushroom-template-card
|
||||
entity: sensor.victron_evcs_status
|
||||
primary: EVCS
|
||||
secondary: >
|
||||
{{ states('sensor.victron_evcs_status') }}
|
||||
• {{ 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: >
|
||||
{{ 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
|
||||
mode: vertical
|
||||
card_mod:
|
||||
style: |
|
||||
ha-card {
|
||||
border-radius: 20px;
|
||||
border: 1px solid rgba(255,255,255,0.10);
|
||||
box-shadow: 0 6px 16px rgba(0,0,0,0.18);
|
||||
}
|
||||
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: 10px
|
||||
name:
|
||||
- font-size: 14px
|
||||
- font-weight: 600
|
||||
state:
|
||||
- font-size: 12px
|
||||
state:
|
||||
- value: "on"
|
||||
color: "#43a047"
|
||||
- value: "off"
|
||||
color: "#757575"
|
||||
|
||||
- type: custom:button-card
|
||||
entity: switch.tt_chauffe_eau_pleumeur_switch
|
||||
name: ECS
|
||||
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: 10px
|
||||
name:
|
||||
- font-size: 14px
|
||||
- font-weight: 600
|
||||
state:
|
||||
- font-size: 12px
|
||||
state:
|
||||
- value: "on"
|
||||
color: "#fb8c00"
|
||||
- value: "off"
|
||||
color: "#757575"
|
||||
|
||||
- type: custom:button-card
|
||||
entity: switch.edf_general_ok_switch
|
||||
name: Réseau
|
||||
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: 10px
|
||||
name:
|
||||
- font-size: 14px
|
||||
- font-weight: 600
|
||||
state:
|
||||
- font-size: 12px
|
||||
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: 10px
|
||||
name:
|
||||
- font-size: 14px
|
||||
- font-weight: 600
|
||||
state:
|
||||
- font-size: 12px
|
||||
state:
|
||||
- value: "on"
|
||||
color: "#26c6da"
|
||||
- value: "off"
|
||||
color: "#757575"
|
||||
|
||||
- type: custom:vertical-stack-in-card
|
||||
mode: vertical
|
||||
card_mod:
|
||||
style: |
|
||||
ha-card {
|
||||
border-radius: 20px;
|
||||
border: 1px solid rgba(255,255,255,0.10);
|
||||
box-shadow: 0 6px 16px rgba(0,0,0,0.18);
|
||||
}
|
||||
cards:
|
||||
- type: custom:mushroom-title-card
|
||||
title: Verdict rapide
|
||||
subtitle: 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: ECS OK
|
||||
- entity: input_boolean.victron_advice_garage_clim_ok
|
||||
name: Garage OK
|
||||
- entity: input_boolean.victron_advice_sdb_heater_ok
|
||||
name: SDB OK
|
||||
- entity: input_select.victron_water_heater_recommended_mode
|
||||
name: Mode ECS
|
||||
- entity: input_text.victron_grid_control_state
|
||||
name: État réseau
|
||||
|
||||
- type: custom:vertical-stack-in-card
|
||||
mode: vertical
|
||||
card_mod:
|
||||
style: |
|
||||
ha-card {
|
||||
border-radius: 20px;
|
||||
border: 1px solid rgba(255,255,255,0.10);
|
||||
box-shadow: 0 6px 16px rgba(0,0,0,0.18);
|
||||
}
|
||||
cards:
|
||||
- type: custom:mushroom-title-card
|
||||
title: Historique court
|
||||
subtitle: 4 dernières heures
|
||||
|
||||
- type: custom:apexcharts-card
|
||||
graph_span: 4h
|
||||
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"
|
||||
|
||||
Reference in New Issue
Block a user