Mon problème
Bonjour, je suis en train d’essayer d’intégrer mon poêle Nobis à HA via l’intégration py-agua-iot (GitHub - vincentwolsink/py-agua-iot: py-agua-iot provides controlling heating devices connected via the IOT Agua platform of Micronova).
Mon poêle apparaît bien (alias + modèle + différents niveaux de puissance), il y a donc bien des informations récupérées via l’api agua mais le poêle est marqué comme indisponible et donc impossible de le piloter.
En cherchant un petit peu dans les logs, je suis tombé là-dessus :
2023-01-31 12:07:54.269 ERROR (MainThread) [homeassistant.components.climate] Error while setting up aguaiot platform for climate
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 297, in _async_setup_platform
await asyncio.gather(*pending)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 438, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 709, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 804, in add_to_platform_finish
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 556, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 599, in _async_write_ha_state
attr.update(self.state_attributes or {})
File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 297, in state_attributes
self.current_temperature,
File "/config/custom_components/aguaiot/climate.py", line 164, in current_temperature
return self._device.air_temperature
File "/usr/local/lib/python3.10/site-packages/py_agua_iot/__init__.py", line 583, in air_temperature
return float(self.__get_information_item('temp_air_get'))
File "/usr/local/lib/python3.10/site-packages/py_agua_iot/__init__.py", line 430, in __get_information_item
formula = self.__register_map_dict[item]['formula']
KeyError: 'temp_air_get'
C’est via le fichier init.py situé dans /usr/local/lib/python3.10/site-packages/py_agua_iot que ha communique avec l’api agua (ce fichier est aussi présent dans le github py-agua-iot).
Mon poêle Nobis est un poêle hybride (pellet et bois) alors que l’intégration a été développée pour les poêle à pellet uniquement (c’est mon intuition). Les informations renvoyées par l’api d’agua ne sont donc sans doute pas correctement « formatées » par l’intégration dans le cas de mon poêle.
J’en viens donc maintenant à ma question, comment accéder au fichier /usr/local/lib/python3.10/site-packages/py_agua_iot/init.py pour débugger tout ça ? J’ai essayé via le terminal intégrée ou via l’explorateur de fichier intégré mais le dossier /usr/local/lib est désespérément vide…
Merci pour vos réponses et bonne journée !!
Ma configuration
[center]## System Information
version | core-2023.1.7 |
---|---|
installation_type | Home Assistant OS |
dev | false |
hassio | true |
docker | true |
user | root |
virtualenv | false |
python_version | 3.10.7 |
os_name | Linux |
os_version | 5.15.90 |
arch | x86_64 |
timezone | Europe/Brussels |
config_dir | /config |
Home Assistant Community Store
GitHub API | ok |
---|---|
GitHub Content | ok |
GitHub Web | ok |
GitHub API Calls Remaining | 4989 |
Installed Version | 1.30.1 |
Stage | running |
Available Repositories | 1196 |
Downloaded Repositories | 32 |
Home Assistant Cloud
logged_in | true |
---|---|
subscription_expiration | 28 février 2023 à 01:00 |
relayer_connected | true |
remote_enabled | true |
remote_connected | true |
alexa_enabled | true |
google_enabled | true |
remote_server | eu-central-1-3.ui.nabu.casa |
can_reach_cert_server | ok |
can_reach_cloud_auth | ok |
can_reach_cloud | ok |
Home Assistant Supervisor
host_os | Home Assistant OS 9.5 |
---|---|
update_channel | stable |
supervisor_version | supervisor-2023.01.1 |
agent_version | 1.4.1 |
docker_version | 20.10.22 |
disk_total | 439.4 GB |
disk_used | 176.5 GB |
healthy | true |
supported | true |
board | generic-x86-64 |
supervisor_api | ok |
version_api | ok |
installed_addons | Terminal & SSH (9.6.1), File editor (5.5.0), MariaDB (2.5.1), phpMyAdmin (0.8.3), Home Assistant Google Drive Backup (0.110.1), SQLite Web (3.7.0), Ring-MQTT with Video Streaming (5.0.5), Mosquitto broker (6.1.3), Filebrowser (2.23.0), Duck DNS (1.15.0) |
Dashboards
dashboards | 4 |
---|---|
resources | 18 |
views | 4 |
mode | storage |
Recorder
oldest_recorder_run | 23 janvier 2023 à 11:24 |
---|---|
current_recorder_run | 31 janvier 2023 à 15:49 |
estimated_db_size | 698.48 MiB |
database_engine | sqlite |
database_version | 3.38.5 |
Xiaomi Miot Auto
component_version | 0.7.5 |
---|---|
can_reach_server | ok |
can_reach_spec | ok |
logged_accounts | 1 |
total_devices | 7 |