ReneNulschDE / mbapi2020

Custom Component to integrate MercedesME devices into Home-Assistant
Other
149 stars 29 forks source link

Rename of integration entity is not renaming all sensors #175

Closed dm82m closed 7 months ago

dm82m commented 7 months ago

Hey Rene,

thanks for your integration. Just got my new car, removed the old one and added the new one and renamed the integration. It then asks if it should rename all car entities. Answered that with yes. As result only a few are renamed and the rest of the entities stays the old name.

Best, Dirk

ReneNulschDE commented 7 months ago

Hi Dirk, I have never done this or seen this option to rename. Could you you share some details? I would propose to delete the integration and readd it to have a clear state. BR Rene

dm82m commented 7 months ago

Will show you my starting point. Usally all the sensors of the car are namend with the number plate you have configured in mercedesme app. If you select the pen in the upper right you can overwrite the name.

image

if you do so, it asks if you want to rename all the sensors. if you answer that with yes, only a couple of sensors are renamed. and others will stay with the number plate. this results in manually editing tons of sensors.

image
ReneNulschDE commented 7 months ago

Thx, never saw this pin in the corner :-) Let me try to understand this in an test environment...

dm82m commented 7 months ago

I am changing my car each year. A few of my automations and also my solar charging depends on specific sensor names. Due to that reason I prefer renaming the sensors in your integration instead of changing multiple in my different config files. This is also very error-prone. Currently I manually renamed all the sensors, but it would be great if it just works out of the box with the embedded renaming feature. again, thanks for all your work!

ReneNulschDE commented 7 months ago

Can you share an screenshot example where this not worked well? I have just done it my test and it renamed all sensors of one of my cars. Whenever this contains private information then you can send it to mbdev.i175@nulsch.de too.

dm82m commented 7 months ago

haha. damn it but it works now. I removed the integration configuration, re-added the car, renamed as described and it works. testet it on 16.01. three times the same way but it renamed only a few. no idea why. sorry for bothering you for no reason.