Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Null values don’t mean no values #45

Closed
pbranly opened this issue Nov 14, 2021 · 4 comments
Closed

Null values don’t mean no values #45

pbranly opened this issue Nov 14, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@pbranly
Copy link
Contributor

pbranly commented Nov 14, 2021

When using a PDL that is not used ( e.g. with values equal to 0) program considers absence of values and don’t update Enedis (Saniho) Card

@m4dm4rtig4n m4dm4rtig4n added the bug Something isn't working label Nov 14, 2021
@pbranly
Copy link
Contributor Author

pbranly commented Nov 15, 2021

traces :
2021-11-15 08:08:23.817414 - DEBUG : Insert detail 2021-11-14 20:30:00 => 0 2021-11-15 08:08:23.818306 - DEBUG : Insert detail 2021-11-14 21:00:00 => 0 2021-11-15 08:08:23.819249 - DEBUG : Insert detail 2021-11-14 21:30:00 => 0 2021-11-15 08:08:23.820327 - DEBUG : Insert detail 2021-11-14 22:00:00 => 0 2021-11-15 08:08:23.821447 - DEBUG : Insert detail 2021-11-14 22:30:00 => 0 2021-11-15 08:08:23.823042 - DEBUG : Insert detail 2021-11-14 23:00:00 => 0 2021-11-15 08:08:23.827994 - DEBUG : Insert detail 2021-11-14 23:30:00 => 0 2021-11-15 08:08:23.829109 - DEBUG : Insert detail 2021-11-15 00:00:00 => 0 2021-11-15 08:08:23.833419 - INFO : => Data exported 2021-11-15 08:08:23.833672 - INFO : #################################################################################### 2021-11-15 08:08:23.856932 - INFO : Generate Sensor for myEnedis card 2021-11-15 08:08:23.857526 - DEBUG : MQTT Send : homeassistant/sensor/enedisgateway/xxxxxxxxxxxxxxx/config => {"name": "enedisgateway_xxxxxxxxxxxx", "uniq_id": "enedisgateway.xxxxxxxxxxx", "stat_t": "homeassistant/sensor/enedisgateway/xxxxxxxxxxxxx/state", "json_attr_t": "homeassistant/sensor/enedisgateway/xxxxxxxxxxxxx/attributes", "unit_of_measurement": "kWh", "device": {"identifiers": ["linky_xxxxxxxxxxxxxxx"], "name": "Linky xxxxxxxxxxxxxx", "model": "Linky", "manufacturer": "Enedis"}} **2021-11-15 08:08:23.900263 - INFO : => No data found (skip HA MyEnedis Sensor)** 2021-11-15 08:08:23.900522 - INFO : => Sensor generated 2021-11-15 08:08:23.919614 - INFO : #################################################################################### 2021-11-15 08:08:23.919730 - INFO : IMPORT FINISH 2021-11-15 08:08:23.919754 - INFO : ####################################################################################

@m4dm4rtig4n
Copy link
Collaborator

Faut que je regarde, mais il me semble qu'Enedis m'envoie 0 quand j'ai pas de data, du coup ci c'est le cas je peut pas faire la différence entre les cas ou je n'ai pas de consommation et pas de data :/
Faut que je check.

m4dm4rtig4n added a commit that referenced this issue Nov 20, 2021
@m4dm4rtig4n
Copy link
Collaborator

Si tu sais tester en remplacent ton fichier /app/myenedis.py par celui-ci :
https://github.com/m4dm4rtig4n/enedisgateway2mqtt/blob/master/app/myenedis.py

@pbranly
Copy link
Contributor Author

pbranly commented Nov 20, 2021

Je viens de tester avec ce fichier et cela fonctionne : la carte « saniho » se remplie correctement de zéros, la plage de date de la carte est correcte
Philippe

@pbranly pbranly closed this as completed Nov 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants