core: Glances Task exception - Platform glances does not generate unique IDs
The problem
Since home assistant 0.106.x and glances 0.7.0 I’m getting the following errors on server startup:
2020-02-29 10:30:13 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 425, in _async_add_entity raise HomeAssistantError(msg) homeassistant.exceptions.HomeAssistantError: Entity id already exists: sensor.glances_core_0_temp. Platform glances does not generate unique IDs
Environment
Home assistant version 0.106.2 Glances addon 0.7.0 Running home assistant (hassio) on a docker under Ubuntu linux
- Home Assistant release with the issue: 0.106.x
- Last working Home Assistant release (if known): 0.105.5
- Operating environment (Hass.io/Docker/Windows/etc.): Docker
- Integration causing this issue: Glances
- Link to integration documentation on our website: https://www.home-assistant.io/integrations/glances/
Problem-relevant configuration.yaml
{
"connection_class": "local_poll",
"data": {
"host": "localhost",
"name": "Glances",
"password": "****",
"port": 61208,
"ssl": false,
"username": "****",
"verify_ssl": false,
"version": 3
},
"domain": "glances",
"entry_id": "0b5c742db46e41c887601ed51f535d80",
"options": {
"scan_interval": 60
},
"source": "user",
"system_options": {
"disable_new_entities": false
},
"title": "Glances",
"unique_id": null,
"version": 1
}
Traceback/Error logs
2020-02-29 10:30:13 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 425, in _async_add_entity
raise HomeAssistantError(msg)
homeassistant.exceptions.HomeAssistantError: Entity id already exists: sensor.glances_thinkpad_1_temp. Platform glances [does](url) not generate unique IDs
2020-02-29 10:30:13 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 425, in _async_add_entity
raise HomeAssistantError(msg)
homeassistant.exceptions.HomeAssistantError: Entity id already exists: sensor.glances_core_2_temp. Platform glances does not generate unique IDs
2020-02-29 10:30:13 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 425, in _async_add_entity
raise HomeAssistantError(msg)
homeassistant.exceptions.HomeAssistantError: Entity id already exists: sensor.glances_core_0_temp. Platform glances does not generate unique IDs
Additional information
I have tried removing the integration, addon, make sure no entities exists, delete glances.conf file and adding all again.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 2
- Comments: 17 (10 by maintainers)
@engrbm87
I did dig future for that few weeks ago, the duplicated names are already at the lm_sensors package which is used to read the sensors data. However for glances it has no meaning, the glances UI can show the multiple sensors with the same name. In my opinion when trying to create a unique_id or name for them to add as sensors for home assistant the integration should add 1, 2, 3, etc for sensors which has the same name.
@skumka https://www.home-assistant.io/integrations/systemmonitor