No. We are going around in circles here. As I said before: Issues with utility meter - #11 by tom_l
1 Like
I tried to create new sensor (just to avoid any discrepancy of older data)
new format:
template:
- sensor:
- name: "Consumo totale casa2"
unique_id: tesla_card_consumo_totale_casa2
state: >-
{{ (states('sensor.giorno_consumo_casa') | float(2) + states('sensor.tesla_card_produzione_solare_immessa_in_casa2') | float(2)) | round(2) }}
device_class: energy
state_class: total_increasing
unit_of_measurement: kWh
- name: "Energia prodotta consumata in casa2"
unique_id: tesla_card_produzione_solare_immessa_in_casa2
state: >-
{{ (states('sensor.giorno_produzione_fotovoltaico') | float(2) - states('sensor.giorno_immissione_in_rete') | float(2)) | round(2) }}
device_class: energy
state_class: total_increasing
unit_of_measurement: kWh
and result con console:
1- {{states('sensor.tesla_card_consumo_totale_casa2')}}
2- {{states('sensor.giorno_consumo_casa')}}
3- {{states('sensor.tesla_card_produzione_solare_immessa_in_casa2')}}
4- {{states('sensor.giorno_produzione_fotovoltaico')}}
5- {{states('sensor.giorno_immissione_in_rete')}}
1- unknown
2- 2.3161
3- unknown
4- 20.5697
5- 13.9797
something is not working with the sum between sensor…
after a whole restart of my NAS (because my hassio is on docker) i was able to comment, correct the stats (deliting them) and comment out the utility…
the problem is still present. after this i try to create the same sensor using the new format but same result…of this reply.