From c5a350ab2644182436a864aca700747ce2771082 Mon Sep 17 00:00:00 2001 From: sdesalve Date: Fri, 22 Jul 2022 19:08:30 +0200 Subject: [PATCH] docs fixed Fixed sensor templates --- README.md | 30 +++++++++++++++--------------- info.md | 30 +++++++++++++++--------------- 2 files changed, 30 insertions(+), 30 deletions(-) diff --git a/README.md b/README.md index c37e4f7..d7d9196 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ template: - name: "Potenza Istantanea" unit_of_measurement: "W" state: > - {% set power = state_attr('sensor.zcsazzurro','current')['powerGenerating'] | int(0) %} + {% set power = state_attr('sensor.fotovoltaico','current')['powerGenerating'] | int(0) %} {{ power }} state_class: measurement device_class: power @@ -46,7 +46,7 @@ template: - name: "Batteria" unit_of_measurement: "%" state: > - {% set energy = state_attr('sensor.zcsazzurro','current')['batterySoC'] | float(0) %} + {% set energy = state_attr('sensor.fotovoltaico','current')['batterySoC'] | float(0) %} {{ energy | round(2) }} state_class: measurement device_class: energy @@ -55,7 +55,7 @@ template: - name: "Consumo Giorno Casa" unit_of_measurement: "kWh" state: > - {% set energy = state_attr('sensor.zcsazzurro','current')['energyConsuming'] | float(0) %} + {% set energy = state_attr('sensor.fotovoltaico','current')['energyConsuming'] | float(0) %} {{ energy | round(2) }} state_class: measurement device_class: energy @@ -64,7 +64,7 @@ template: - name: "Autoconsum Giorno" unit_of_measurement: "kWh" state: > - {% set energy = state_attr('sensor.zcsazzurro','current')['energyAutoconsuming'] | float(0) %} + {% set energy = state_attr('sensor.fotovoltaico','current')['energyAutoconsuming'] | float(0) %} {{ energy | round(2) }} state_class: measurement device_class: energy @@ -73,7 +73,7 @@ template: - name: "Scarica" unit_of_measurement: "kWh" state: > - {% set energy = state_attr('sensor.zcsazzurro','current')['energyDischarging'] | float(0) %} + {% set energy = state_attr('sensor.fotovoltaico','current')['energyDischarging'] | float(0) %} {{ energy | round(2) }} state_class: measurement device_class: energy @@ -82,7 +82,7 @@ template: - name: "Carica" unit_of_measurement: "kWh" state: > - {% set energy = state_attr('sensor.zcsazzurro','current')['energyCharging'] | float(0) %} + {% set energy = state_attr('sensor.fotovoltaico','current')['energyCharging'] | float(0) %} {{ energy | round(2) }} state_class: measurement device_class: energy @@ -91,7 +91,7 @@ template: - name: "Produzione" unit_of_measurement: "kWh" state: > - {% set energy = state_attr('sensor.zcsazzurro','current')['energyGenerating'] | float(0) %} + {% set energy = state_attr('sensor.fotovoltaico','current')['energyGenerating'] | float(0) %} {{ energy | round(2) }} state_class: measurement device_class: energy @@ -100,7 +100,7 @@ template: - name: "Prelievo" unit_of_measurement: "kWh" state: > - {% set energy = state_attr('sensor.zcsazzurro','current')['energyImporting'] | float(0)%} + {% set energy = state_attr('sensor.fotovoltaico','current')['energyImporting'] | float(0)%} {{ energy | round(2) }} state_class: measurement device_class: energy @@ -109,7 +109,7 @@ template: - name: "Immissione" unit_of_measurement: "kWh" state: > - {% set energy = state_attr('sensor.zcsazzurro','current')['energyExporting'] | float (0) %} + {% set energy = state_attr('sensor.fotovoltaico','current')['energyExporting'] | float (0) %} {{ energy | round(2) }} state_class: measurement device_class: energy @@ -119,7 +119,7 @@ template: - name: "Produzione Totale" unit_of_measurement: "kWh" state: > - {% set energy = state_attr('sensor.zcsazzurro','total')['energyGenerating'] | float(0) %} + {% set energy = state_attr('sensor.fotovoltaico','total')['energyGenerating'] | float(0) %} {{ energy | round(2) }} state_class: total_increasing device_class: energy @@ -128,7 +128,7 @@ template: - name: "Prelievo Totale" unit_of_measurement: "kWh" state: > - {% set energy = state_attr('sensor.zcsazzurro','total')['energyImporting'] | float (0) %} + {% set energy = state_attr('sensor.fotovoltaico','total')['energyImporting'] | float (0) %} {{ energy | round(2) }} state_class: total_increasing device_class: energy @@ -137,7 +137,7 @@ template: - name: "Immissione Totale" unit_of_measurement: "kWh" state: > - {% set energy = state_attr('sensor.zcsazzurro','total')['energyExporting'] | float(0) %} + {% set energy = state_attr('sensor.fotovoltaico','total')['energyExporting'] | float(0) %} {{ energy | round(2) }} state_class: total_increasing device_class: energy @@ -146,7 +146,7 @@ template: - name: "Autoconsum Totale" unit_of_measurement: "kWh" state: > - {% set energy = state_attr('sensor.zcsazzurro','total')['energyAutoconsuming'] | float(0) %} + {% set energy = state_attr('sensor.fotovoltaico','total')['energyAutoconsuming'] | float(0) %} {{ energy | round(2) }} state_class: total_increasing device_class: energy @@ -155,7 +155,7 @@ template: - name: "Scarica Totale" unit_of_measurement: "kWh" state: > - {% set energy = state_attr('sensor.zcsazzurro','total')['energyDischarging'] | float(0) %} + {% set energy = state_attr('sensor.fotovoltaico','total')['energyDischarging'] | float(0) %} {{ energy | round(2) }} state_class: total_increasing device_class: energy @@ -164,7 +164,7 @@ template: - name: "Carica Totale" unit_of_measurement: "kWh" state: > - {% set energy = state_attr('sensor.zcsazzurro','total')['energyCharging'] | float(0) %} + {% set energy = state_attr('sensor.fotovoltaico','total')['energyCharging'] | float(0) %} {{ energy | round(2) }} state_class: total_increasing device_class: energy diff --git a/info.md b/info.md index c37e4f7..d7d9196 100644 --- a/info.md +++ b/info.md @@ -37,7 +37,7 @@ template: - name: "Potenza Istantanea" unit_of_measurement: "W" state: > - {% set power = state_attr('sensor.zcsazzurro','current')['powerGenerating'] | int(0) %} + {% set power = state_attr('sensor.fotovoltaico','current')['powerGenerating'] | int(0) %} {{ power }} state_class: measurement device_class: power @@ -46,7 +46,7 @@ template: - name: "Batteria" unit_of_measurement: "%" state: > - {% set energy = state_attr('sensor.zcsazzurro','current')['batterySoC'] | float(0) %} + {% set energy = state_attr('sensor.fotovoltaico','current')['batterySoC'] | float(0) %} {{ energy | round(2) }} state_class: measurement device_class: energy @@ -55,7 +55,7 @@ template: - name: "Consumo Giorno Casa" unit_of_measurement: "kWh" state: > - {% set energy = state_attr('sensor.zcsazzurro','current')['energyConsuming'] | float(0) %} + {% set energy = state_attr('sensor.fotovoltaico','current')['energyConsuming'] | float(0) %} {{ energy | round(2) }} state_class: measurement device_class: energy @@ -64,7 +64,7 @@ template: - name: "Autoconsum Giorno" unit_of_measurement: "kWh" state: > - {% set energy = state_attr('sensor.zcsazzurro','current')['energyAutoconsuming'] | float(0) %} + {% set energy = state_attr('sensor.fotovoltaico','current')['energyAutoconsuming'] | float(0) %} {{ energy | round(2) }} state_class: measurement device_class: energy @@ -73,7 +73,7 @@ template: - name: "Scarica" unit_of_measurement: "kWh" state: > - {% set energy = state_attr('sensor.zcsazzurro','current')['energyDischarging'] | float(0) %} + {% set energy = state_attr('sensor.fotovoltaico','current')['energyDischarging'] | float(0) %} {{ energy | round(2) }} state_class: measurement device_class: energy @@ -82,7 +82,7 @@ template: - name: "Carica" unit_of_measurement: "kWh" state: > - {% set energy = state_attr('sensor.zcsazzurro','current')['energyCharging'] | float(0) %} + {% set energy = state_attr('sensor.fotovoltaico','current')['energyCharging'] | float(0) %} {{ energy | round(2) }} state_class: measurement device_class: energy @@ -91,7 +91,7 @@ template: - name: "Produzione" unit_of_measurement: "kWh" state: > - {% set energy = state_attr('sensor.zcsazzurro','current')['energyGenerating'] | float(0) %} + {% set energy = state_attr('sensor.fotovoltaico','current')['energyGenerating'] | float(0) %} {{ energy | round(2) }} state_class: measurement device_class: energy @@ -100,7 +100,7 @@ template: - name: "Prelievo" unit_of_measurement: "kWh" state: > - {% set energy = state_attr('sensor.zcsazzurro','current')['energyImporting'] | float(0)%} + {% set energy = state_attr('sensor.fotovoltaico','current')['energyImporting'] | float(0)%} {{ energy | round(2) }} state_class: measurement device_class: energy @@ -109,7 +109,7 @@ template: - name: "Immissione" unit_of_measurement: "kWh" state: > - {% set energy = state_attr('sensor.zcsazzurro','current')['energyExporting'] | float (0) %} + {% set energy = state_attr('sensor.fotovoltaico','current')['energyExporting'] | float (0) %} {{ energy | round(2) }} state_class: measurement device_class: energy @@ -119,7 +119,7 @@ template: - name: "Produzione Totale" unit_of_measurement: "kWh" state: > - {% set energy = state_attr('sensor.zcsazzurro','total')['energyGenerating'] | float(0) %} + {% set energy = state_attr('sensor.fotovoltaico','total')['energyGenerating'] | float(0) %} {{ energy | round(2) }} state_class: total_increasing device_class: energy @@ -128,7 +128,7 @@ template: - name: "Prelievo Totale" unit_of_measurement: "kWh" state: > - {% set energy = state_attr('sensor.zcsazzurro','total')['energyImporting'] | float (0) %} + {% set energy = state_attr('sensor.fotovoltaico','total')['energyImporting'] | float (0) %} {{ energy | round(2) }} state_class: total_increasing device_class: energy @@ -137,7 +137,7 @@ template: - name: "Immissione Totale" unit_of_measurement: "kWh" state: > - {% set energy = state_attr('sensor.zcsazzurro','total')['energyExporting'] | float(0) %} + {% set energy = state_attr('sensor.fotovoltaico','total')['energyExporting'] | float(0) %} {{ energy | round(2) }} state_class: total_increasing device_class: energy @@ -146,7 +146,7 @@ template: - name: "Autoconsum Totale" unit_of_measurement: "kWh" state: > - {% set energy = state_attr('sensor.zcsazzurro','total')['energyAutoconsuming'] | float(0) %} + {% set energy = state_attr('sensor.fotovoltaico','total')['energyAutoconsuming'] | float(0) %} {{ energy | round(2) }} state_class: total_increasing device_class: energy @@ -155,7 +155,7 @@ template: - name: "Scarica Totale" unit_of_measurement: "kWh" state: > - {% set energy = state_attr('sensor.zcsazzurro','total')['energyDischarging'] | float(0) %} + {% set energy = state_attr('sensor.fotovoltaico','total')['energyDischarging'] | float(0) %} {{ energy | round(2) }} state_class: total_increasing device_class: energy @@ -164,7 +164,7 @@ template: - name: "Carica Totale" unit_of_measurement: "kWh" state: > - {% set energy = state_attr('sensor.zcsazzurro','total')['energyCharging'] | float(0) %} + {% set energy = state_attr('sensor.fotovoltaico','total')['energyCharging'] | float(0) %} {{ energy | round(2) }} state_class: total_increasing device_class: energy