-
Notifications
You must be signed in to change notification settings - Fork 27
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
Duplicate device name in entity name #79
Comments
One of each duplicates should be unavailable and could be deleted. Please check the states of the sensors |
I don't have duplicate entities but the friendly name of all entities contains a duplicate device name. Like "dryer dryer door state" and "dryer dryer execute command START". |
Oh ok. Possible to have home assistant logs ? |
I checked but there were no errors or warnings. |
Yes but I need to understand from debug traces : the entity name is built from the fields reported by the API and from what I have seen there shouldn't be the same attribute name twice in the field. Otherwise to get debug traces, I need you to edit configuration.yaml like this : logger:
default: debug
logs:
custom_components.electrolux_status: debug |
This is by design and not a bug - your device is called Droger in the app but so is the Appliance Ie if you called it The first is the appliance name (and inherited from the device), the second is the entity name (which comes from a property in the JSON), then the actual property the entity is attached to This is all dynamic so that new devices are supported out the box For instance. Assume I gave 2 fridges. In the Electrolux app one would be called The integration creates entities the way HA core expects them, using the device name as part of the entity There is ability to submit a PR with friendly names for the devices if you wanted too. But you can just rename them once off too |
@albaintor for attention of my note above - let me know if that doesn't make sense |
Thanks for the detailed explanation! but it is a bit different than you describe. If you have two fridges
That does not seem right to me. And in previous versions this was not the case so I suspect this is a bug. |
Nope (well at least not the intended) 😀 The See how your entity changed to Your json is holding the elements in a parent element called You will notice some that sit at the root such as |
In the entity list the name also looks right. But when I select a particular entity a double name is shown. I understand If I change the AEG App name to Fridge and the HA device to Kitchen (what is not logical for a device name) I get the right name. But the need for changing the name manually after setting up the integration to get things right does not seem right to me. |
I have slightly changed the generation of entity names but this won't affect this. I don't have clear ideas but I guess that a part of the generation of the name should be common. |
After re adding the integration all the sensors names contains two times the device name. For example dryer dryer door state.
The text was updated successfully, but these errors were encountered: