Skip to content
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

[MQTT] Apply config parameter names as 'Friendly name' in HA #4110

Open
richardstone opened this issue Jan 31, 2025 · 3 comments
Open

[MQTT] Apply config parameter names as 'Friendly name' in HA #4110

richardstone opened this issue Jan 31, 2025 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@richardstone
Copy link

Is your feature request related to a problem? Please describe.

No

Describe the solution you'd like

I'd like to see the name of the config parameter of the device when it has been set to be discovered through MQTT in HA. The entity ID must be the same as it is, holding the actual config parameter number.

Describe alternatives you've considered

Additional context

@richardstone richardstone added the enhancement New feature or request label Jan 31, 2025
@robertsLando
Copy link
Member

By looking at this again I just remember that actually you can already do this by setting a custom entity name template from MQTT discovery settings :) If you want label to be included you can use %l in the template. Under the input there is a helper to help you doing this. The default template is %ln_%o that means the node name + object id

@richardstone
Copy link
Author

richardstone commented Feb 5, 2025

Thing is that I’m already using “ _%o” as the template to not break previous functionality of using for example “relay_switch_3” as entityID in automations. With setting this “ _%o”, I’m getting the exact same behaviour as before, so I don’t have to revisit all of my automations. At some point HA discovery have been changed, and since then, only “_switch_3” was discovered as the entityID as HA omits the “%ln” part of the default discovery template.

@robertsLando
Copy link
Member

robertsLando commented Feb 6, 2025

All names are generated by this function so what could be the solution here? I mean I cannot make it work differently only for configuration CC values otherwise that would be a breaking change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants