home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
72.65k stars 30.41k forks source link

"Platform group does not generate unique IDs" error when "YAML configuration reloading" groups #108246

Closed backcountrymountains closed 9 months ago

backcountrymountains commented 9 months ago

The problem

I reloaded my yaml configuration in developer tools and got the error:

2024-01-17 08:58:20.636 ERROR (MainThread) [homeassistant.components.light] Platform group does not generate unique IDs. ID livingroom_ceiling_wiz_lights already exists - ignoring light.livingroom_ceiling_wiz_lights

This is my yaml:

light:
  - platform: group
    name: "Livingroom Ceiling Wiz Lights"
    unique_id: livingroom_ceiling_wiz_lights
    entities:
      - light.livcw1
      - light.livcw2

I use packages to organize my yaml

I think this is very similar to #80188 and the bug with the command_line platform

Unrelated: If bedroom is one word, livingroom should be one word. Fight me.

System Information

version core-2024.1.3
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.11.6
os_name Linux
os_version 6.1.71-haos
arch x86_64
timezone America/Denver
config_dir /config
Home Assistant Community Store GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 5000 Installed Version | 1.33.0 Stage | running Available Repositories | 1384 Downloaded Repositories | 36
Home Assistant Supervisor host_os | Home Assistant OS 11.4 -- | -- update_channel | stable supervisor_version | supervisor-2023.12.1 agent_version | 1.6.0 docker_version | 24.0.7 disk_total | 30.8 GB disk_used | 14.4 GB healthy | true supported | true board | ova supervisor_api | ok version_api | ok installed_addons | Samba share (12.2.0), Mosquitto broker (6.4.0), RPC Shutdown (2.4), File editor (5.7.0), Log Viewer (0.17.0), Advanced SSH & Web Terminal (17.0.3), Terminal & SSH (9.8.1), Duck DNS (1.15.0), ESPHome (2021.12.3), Z-Wave JS (0.4.3), SQLite Web (4.1.0), Custom deps deployment (1.3.4), MQTT Explorer (browser-1.0.1)
Dashboards dashboards | 4 -- | -- resources | 25 views | 18 error | /config/notexist.yaml not found mode | yaml
Recorder oldest_recorder_run | December 21, 2023 at 11:37 PM -- | -- current_recorder_run | January 16, 2024 at 10:00 PM estimated_db_size | 2056.58 MiB database_engine | sqlite database_version | 3.41.2

What version of Home Assistant Core has the issue?

core-2024.1.3

What was the last working version of Home Assistant Core?

core-2024.1.3

What type of installation are you running?

Home Assistant OS

Integration causing the issue

No response

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

joostlek commented 9 months ago

This means you probably have this piece of YAML at more places

backcountrymountains commented 9 months ago

Yes, I was the problem all along. Oops.