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

Last data indisponible #14

Open
2 tasks done
davux opened this issue Feb 6, 2025 · 4 comments
Open
2 tasks done

Last data indisponible #14

davux opened this issue Feb 6, 2025 · 4 comments

Comments

@davux
Copy link

davux commented Feb 6, 2025

Détails de la santé du système

System Information

version core-2025.2.0
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.13.1
os_name Linux
os_version 6.6.73-haos
arch x86_64
timezone Europe/Paris
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web failed to load: timeout
HACS Data ok
GitHub API Calls Remaining 5000
Installed Version 2.0.5
Stage running
Available Repositories 1578
Downloaded Repositories 15
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 14.2
update_channel stable
supervisor_version supervisor-2025.02.0
agent_version 1.6.0
docker_version 27.2.0
disk_total 457.7 GB
disk_used 37.9 GB
healthy true
supported true
host_connectivity true
supervisor_connectivity true
ntp_synchronized true
virtualization
board generic-x86-64
supervisor_api ok
version_api ok
installed_addons Matter Server (7.0.0), Mosquitto broker (6.5.0), Let's Encrypt (5.2.10), Terminal & SSH (9.16.0), NGINX Home Assistant SSL proxy (3.11.1), Nginx Proxy Manager (1.0.1), Plex Media Server (3.6.2), Transmission (1.2.8)
Dashboards
dashboards 4
resources 4
views 6
mode storage
Network Configuration
adapters lo (disabled), enp0s25 (enabled, default, auto), docker0 (disabled), hassio (disabled), vethb728cb8 (disabled), veth05fc7fa (disabled), vethfeb0705 (disabled), veth9e120ed (disabled), vethc2e2076 (disabled), veth85793b1 (disabled), vethdeb5201 (disabled), vethc9067ba (disabled), veth24b8217 (disabled), veth66f8a91 (disabled), veth4aa9ce6 (disabled)
ipv4_addresses lo (127.0.0.1/8), enp0s25 (192.168.1.82/24), docker0 (172.30.232.1/23), hassio (172.30.32.1/23), vethb728cb8 (), veth05fc7fa (), vethfeb0705 (), veth9e120ed (), vethc2e2076 (), veth85793b1 (), vethdeb5201 (), vethc9067ba (), veth24b8217 (), veth66f8a91 (), veth4aa9ce6 ()
ipv6_addresses lo (::1/128), enp0s25 (2a01:e0a:a4a:a770:153a:8557:795:ca50/64, fe80::e3b1:6b6a:ad7c:6de2/64), docker0 (fe80::42:30ff:feb3:428d/64), hassio (fe80::42:deff:feaf:559f/64), vethb728cb8 (fe80::b46a:c0ff:fe9e:2aa5/64), veth05fc7fa (fe80::ec6f:77ff:feae:f82/64), vethfeb0705 (fe80::e844:b2ff:fe58:f088/64), veth9e120ed (fe80::7c82:eaff:fe60:21e1/64), vethc2e2076 (fe80::10d1:aff:fe85:bef4/64), veth85793b1 (fe80::f438:a2ff:fe25:b843/64), vethdeb5201 (fe80::4c7a:bdff:fed5:fc3a/64), vethc9067ba (fe80::9421:8cff:fefd:fa0f/64), veth24b8217 (fe80::6cb4:71ff:fe33:455d/64), veth66f8a91 (fe80::e033:68ff:fee9:a970/64), veth4aa9ce6 (fe80::d808:6aff:fea5:a6a5/64)
announce_addresses 192.168.1.82, 2a01:e0a:a4a:a770:153a:8557:795:ca50, fe80::e3b1:6b6a:ad7c:6de2
Recorder
oldest_recorder_run January 26, 2025 at 8:59 PM
current_recorder_run February 6, 2025 at 7:13 AM
estimated_db_size 142.09 MiB
database_engine sqlite
database_version 3.47.1
Solcast PV Forecast
can_reach_server ok

Checklist

  • Cette requête ne contient qu'un seul problème (si vous constater plusieurs problèmes, ouvrez un bug pour chaque problème).
  • Ce problème n'est pas un doublon de problèmes précédents.

URL du site web de Veolia

https://www.eau.veolia.fr/mon-espace

Décrire le problème

Les entités sont marquées comme indisponibles, et aucune valeur n'est remontée.

Pas d'erreur sur la page de l'intégration, par contre dans les logs j'ai une erreur (voir section plus bas). Il y en a plein d'autres après, toutes similaires. Toujours autour de "last data" indisponible. Je ne mets que la première mais je peux toutes les mettre si ça aide.

Étapes de reproduction

  1. Ajouter l'intégration
  2. Configurer mon compte
  3. Erreurs (voir description)

Journaux de débogage

2025-02-06 10:07:39.183 ERROR (MainThread) [homeassistant.components.sensor] Error adding entity sensor.veolia_consumption_index for domain sensor with platform veolia
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 609, in _async_add_entities
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 928, in _async_add_entity
    await entity.add_to_platform_finish()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1384, in add_to_platform_finish
    self.async_write_ha_state()
    ~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1023, in async_write_ha_state
    self._async_write_ha_state()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1148, in _async_write_ha_state
    self.__async_calculate_state()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1085, in __async_calculate_state
    state = self._stringify_state(available)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1029, in _stringify_state
    if (state := self.state) is None:
                 ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 520, in state
    value = self.native_value
            ^^^^^^^^^^^^^^^^^
  File "/config/custom_components/veolia/sensor.py", line 65, in native_value
    state = self.coordinator.data.daily_consumption[LAST_DATA][IDX][CUBIC_METER]
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
IndexError: list index out of range
@davux davux changed the title Last data unavailable Last data indisponible Feb 6, 2025
@Jezza34000
Copy link
Owner

Hello,
Peux tu me dire ce que tu as quand tu vas sur ton interface Veolia sur l'encart "Votre consommation" et tu sélectionnes "Du mois" pour voir les données de consommation au jour ?

@davux
Copy link
Author

davux commented Feb 6, 2025

Je n'ai ni "votre consommation", ni "du mois"... Voici une capture d'écran.

Image

@Jezza34000
Copy link
Owner

Ok effectivement je vois, tu n'as pas de relevés journalier. C'est pourquoi l'intégration plante. Je met ce point de côte à corriger 👍🏻

@davux
Copy link
Author

davux commented Feb 6, 2025

Si tu veux que je fasse un appel à l'API ou autre pour voir le résultat, pas de problème. Il suffit de me donner les commandes à lancer ou autre.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants