-
Notifications
You must be signed in to change notification settings - Fork 43
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
HomeAssistant >2023.8.0 Warning: MQTT device name is equal to entity name in your config #514
Comments
From the Breaking Changes: Naming of MQTT entities The naming of MQTT entities has been changed to be aligned with the entity naming guidelines:
I don't understand bullet point 3. But, maybe that doesn't apply to us? But it does sound like setting the name to |
My limited testing suggests that while existing users may receive the warning, the change will only affect new users. Since the |
Maybe I don't understand on my end but what do you propose for existing user that have this warning for example :
Should I just go to the UI and rename |
Upgrade to 1.2.0. It is fixed there for the default installation. If you defined your own custom discovery templates, you should read Home assistant's entity naming guidelines https://developers.home-assistant.io/docs/core/entity/#entity-naming |
It looks like your naming conventions for your modern scenes violates the HA naming guidelines. "Modem Scene 8" will not be allowed in HA in 6 months. But "Scene 8" is fine. |
I already update to 1.2.0, this message is from this version of Insteon MQTT. The Scene 2 to Scene 8 are the only entity that show this issue in my environment, everything else is good. I never used custom discovery on my end but my installation is very old (early day of insteon-mqtt). Should I simply rename those and go on from there? |
Describe the bug
Starting in 2023.8.0, depending on your configuration, you may start to see a warning for each device that looks like:
This is just a warning, things will continue to work until April 2024.
Cause
HomeAssistant has changed how it handles entity names. Previously it was acceptable to have the following:
Device: Garage KPL
Entity: Garage KPL Btn1
Now, if I understand things correctly, HomeAssistant wants the names to be:
Device: Garage KPL
Entity: Btn1
I believe HomeAssistant will automatically append the device name to the beginning of the entity name.
See: HA Forum Post for a discussion of the issue.
Solution
This is just a simple change in the discovery template config. In many cases we can just eliminate
{{name_user_case}}
from the start of the entity names.The unique IDs remain the same, so this shouldn't have any affect on a user's setup.
However, in a few cases (lights, switches, ...) the entity and the device share the same name since there is only a single entity. In these cases, I guess we will have to call the entity
light
orswitch
. Alternatively it looks like maybe not having a name at all for these single entity devices may work as well?Suggestions
I am open to any other suggestions people have.
Timetable
We have plenty of time to play with the options a bit before pushing out the solution. I would say September 2023 is the earliest expected release.
The text was updated successfully, but these errors were encountered: