Skip to content
This repository has been archived by the owner on Apr 8, 2023. It is now read-only.

Commit

Permalink
docs fixed
Browse files Browse the repository at this point in the history
Fixed sensor templates
  • Loading branch information
sdesalve committed Jul 22, 2022
1 parent 75a56ac commit c5a350a
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 30 deletions.
30 changes: 15 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
30 changes: 15 additions & 15 deletions info.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit c5a350a

Please sign in to comment.