Tableau Energie : RS 450 separe en Sud et Ouest, historique importe
This commit is contained in:
32
packages/evcs_energie_trackers.yaml
Executable file
32
packages/evcs_energie_trackers.yaml
Executable file
@@ -0,0 +1,32 @@
|
||||
# =====================================================
|
||||
# EVCS — PRODUCTION SUD / OUEST DU RS 450/200 POUR LE TABLEAU ENERGIE (04/10/2026)
|
||||
# Le RS 450/200 porte le SUD (trackers 1-3, 3 strings de 10 panneaux, 35°) et
|
||||
# l'OUEST (tracker 4, 9 panneaux, 45°) — MANUEL §0. Ses trackers ne publient
|
||||
# qu'une production DU JOUR ; les quatre se remettent a zero au MEME instant
|
||||
# (verifie le 03/10 a 00:23), donc la somme est sure en total_increasing (la
|
||||
# remise a zero est vue comme un nouveau cycle de compteur, pas une baisse).
|
||||
# Historique anterieur importe depuis les statistiques des trackers.
|
||||
# =====================================================
|
||||
template:
|
||||
- sensor:
|
||||
- name: "PV RS 450 Sud - production du jour"
|
||||
unique_id: evcs_pv_rs450_sud_jour
|
||||
unit_of_measurement: kWh
|
||||
device_class: energy
|
||||
state_class: total_increasing
|
||||
icon: mdi:solar-panel
|
||||
availability: >
|
||||
{{ (1, 2, 3) | map('string') | map('regex_replace', '^', 'sensor.mppt_450_200_hq2449yr9pt_tracker_solar_')
|
||||
| map('regex_replace', '$', '_yield_today') | map('states') | map('is_number') | min }}
|
||||
state: >
|
||||
{{ (states('sensor.mppt_450_200_hq2449yr9pt_tracker_solar_1_yield_today') | float
|
||||
+ states('sensor.mppt_450_200_hq2449yr9pt_tracker_solar_2_yield_today') | float
|
||||
+ states('sensor.mppt_450_200_hq2449yr9pt_tracker_solar_3_yield_today') | float) | round(2) }}
|
||||
- name: "PV RS 450 Ouest - production du jour"
|
||||
unique_id: evcs_pv_rs450_ouest_jour
|
||||
unit_of_measurement: kWh
|
||||
device_class: energy
|
||||
state_class: total_increasing
|
||||
icon: mdi:solar-panel
|
||||
availability: "{{ states('sensor.mppt_450_200_hq2449yr9pt_tracker_solar_4_yield_today') | is_number }}"
|
||||
state: "{{ states('sensor.mppt_450_200_hq2449yr9pt_tracker_solar_4_yield_today') | float | round(2) }}"
|
||||
Reference in New Issue
Block a user