ssenart / home-assistant-gazpar

GrDF Gazpar meter integration for Home Assistant
MIT License
46 stars 10 forks source link

Energy dashboard - data not showing #67

Open francsoitv opened 1 month ago

francsoitv commented 1 month ago

First, thanks for your work!

I have setup this addon and It works, I receive all the data :

Capture d’écran 2024-10-13 à 10 08 52

But when I try to add it to the energy dashboard, nothing shows on the graph (0kWh every day, every month, ...)

I tried with the alias, both kWh and m3, nothing seems to enable the data ingestion

I don't see any logs that might help me..

HA 2024.10.0

ssenart commented 1 month ago

Hello, the data start to feed the energy dashboard from the time you set it up.

You won't get the past data.

C-Duv commented 1 month ago

Do you know any way to insert those old values manually?

francsoitv commented 1 month ago

Ok thanks! +1 i'd love to be able to get history

If that's of any help, it's possible for Linky (https://github.com/bokub/ha-linky)

C-Duv commented 1 month ago

Too bad ha-linky is not in Python, it would have been easy to mimic the feature.

francsoitv commented 1 month ago

So I'm trying to get the history myself, with these steps:

Capture d’écran 2024-10-14 à 09 51 16 Capture d’écran 2024-10-14 à 09 53 16

With metadata_id = the ID of sensor.gazpar in the statistics_metadata table Be careful to put everything in the same metrics, kWh only in my case. I had to average the m3<>kWh conversion so that I can use the total m3

I'm still struggling with the new data, it seems that there is confusion between state column (which should be differential) and sum column (which should be total)

albebert commented 2 weeks ago

@francsoitv can you please explain how to transform data from exported data ?

thanks in advance

enthalpie91 commented 2 weeks ago

Screenshot_20241105_230724 It is automatic if you have subscribe the dayly index . you will see that in energy card or in gaspard card for HA

Screenshot_20241105_230832

albebert commented 2 weeks ago

i've added the lovelace card and seems that i've data :

image

but nothing in energy dashboard :

image

i think that configuration of dashboard is ok :

image

Gandulf78 commented 1 week ago

Bonjour. J'ai un problème similaire avec le Dashboard Energy. J'ai installé l'intégration hier matin. J'ai toutes les données dans le sensor.gazpar. Au bout de quelques heures, des données de consommation sont apparues à la date d'hier dans le Dashboard energy (en utilisant sensor.gazpar comme source des données). Le problème c'est qu'en vrai ces données sont datées du 13/11/2024 et non du 16/11/2024, comme cela apparaît dans Energy. Est-ce qu'il est possible de régler ce problème temporel pour le Dashboard Energy? MyElectricalData arrive à gérer cela correctement à côté. Merci pour cette intégration très prometteur.