al-one / hass-xiaomi-miot

Automatic integrate all Xiaomi devices to HomeAssistant via miot-spec, support Wi-Fi, BLE, ZigBee devices. 小米米家智能家居设备接入Hass集成
https://miot-spec.com
Apache License 2.0
4.63k stars 659 forks source link

Platform xiaomi_miot does not generate unique IDs #1651

Open Toolmaster30 opened 6 months ago

Toolmaster30 commented 6 months ago

Hello, since today's update I get the following error in Home Assistant:

`Logger: homeassistant.components.sensor Quelle: helpers/entity_platform.py:744 Integration: Sensor (Dokumentation, Probleme) Erstmals aufgetreten: 16:47:53 (2 Vorkommnisse) Zuletzt protokolliert: 16:47:53

Platform xiaomi_miot does not generate unique IDs. ID dc:ed:83:1f:33:67-9e2bc02f93d55d0728268922c4da8050-environment-3.pm2_5_density-4 is already used by sensor.zhimi_cpa4_3367_pm25_density - ignoring sensor.zhimi_cpa4_3367_pm25_density Platform xiaomi_miot does not generate unique IDs. ID dc:ed:83:1f:33:67-9e2bc02f93d55d0728268922c4da8050-filter-4.filter_life_level-1 is already used by sensor.zhimi_cpa4_3367_filter_life_level - ignoring sensor.zhimi_cpa4_3367_filter_life_level`

kerryland commented 6 months ago

I wonder if this is why it keeps duplicating all my devices. Very frustrating having to keep renaming everything!! image

Dambo-nn commented 5 months ago

Hello, since today's update I get the following error in Home Assistant:

`Logger: homeassistant.components.sensor Quelle: helpers/entity_platform.py:744 Integration: Sensor (Dokumentation, Probleme) Erstmals aufgetreten: 16:47:53 (2 Vorkommnisse) Zuletzt protokolliert: 16:47:53

Platform xiaomi_miot does not generate unique IDs. ID dc:ed:83:1f:33:67-9e2bc02f93d55d0728268922c4da8050-environment-3.pm2_5_density-4 is already used by sensor.zhimi_cpa4_3367_pm25_density - ignoring sensor.zhimi_cpa4_3367_pm25_density Platform xiaomi_miot does not generate unique IDs. ID dc:ed:83:1f:33:67-9e2bc02f93d55d0728268922c4da8050-filter-4.filter_life_level-1 is already used by sensor.zhimi_cpa4_3367_filter_life_level - ignoring sensor.zhimi_cpa4_3367_filter_life_level`

+1 I have similar problems.

Andurilll commented 5 months ago

Also the Same problem here For this Integration:

Quelle: helpers/entity_platform.py:744
Integration: Sensor (Dokumentation, Probleme)
Erstmals aufgetreten: 10:26:36 (8 Vorkommnisse)
Zuletzt protokolliert: 21:21:00

Platform xiaomi_miot does not generate unique IDs. ID cc:b5:d1:91:40:41-30fd193b853551b86e08127fb4848fcc-environment-3.relative_humidity-1 is already used by sensor.zhimi_meb1_4041_relative_humidity - ignoring sensor.zhimi_meb1_4041_relative_humidity
Platform xiaomi_miot does not generate unique IDs. ID cc:b5:d1:91:40:41-30fd193b853551b86e08127fb4848fcc-environment-3.pm2_5_density-4 is already used by sensor.zhimi_meb1_4041_pm25_density - ignoring sensor.zhimi_meb1_4041_pm25_density
Platform xiaomi_miot does not generate unique IDs. ID cc:b5:d1:91:40:41-30fd193b853551b86e08127fb4848fcc-environment-3.temperature-7 is already used by sensor.zhimi_meb1_4041_temperature - ignoring sensor.zhimi_meb1_4041_temperature
Platform xiaomi_miot does not generate unique IDs. ID cc:b5:d1:91:40:41-30fd193b853551b86e08127fb4848fcc-filter-4.filter_life_level-1 is already used by sensor.zhimi_meb1_4041_filter_life_level - ignoring sensor.zhimi_meb1_4041_filter_life_level`

Maybe it is relevant to say:



Logger: custom_components.xiaomi_miot.sensor
Quelle: custom_components/xiaomi_miot/sensor.py:852
Integration: Xiaomi Miot Auto (Dokumentation, Probleme)
Erstmals aufgetreten: 10:26:04 (2 Vorkommnisse)
Zuletzt protokolliert: 21:20:28

Get xiaomi scene history for 6337906729 46001012142 failed: {'code': 0, 'message': '成功', 'result': {'history': []}}`
MBRjun commented 5 months ago

Same problem, only repro in v2024.3 or later HA vers.

hmmbob commented 4 months ago

This is still happening on HA v2024.7

pautinych commented 3 months ago

Hi! Try to rename your entities and device names, use only english letters. Not local letters (german, spanish, russian, etc).

hmmbob commented 3 months ago

Yeah, I don't have any of those. And as you can see in the error logs above, none of the logs show any non-lating characters.

pautinych commented 3 months ago

Yeah, I don't have any of those.

Too bad, heh I had a similar problem with ESP_home. With letters. And I thought it might be the same here..