Underscore in Names #1810
-
Hi all, i really love this addon but i ahve a Question and MAYBE a bug, i dont know. The Autodiscover Feature always changes the name of the discovered the device from "Uppercase Name" to "lowercase_name" This causes some tourbles with Formating for me, because it should use the actual Name. Example: AutoDiscover naming it "steckdose_trockner". And for another device, it was using the correct name without underscore... Is there a way to reset the autodisvocer DB so its re-generating the names ? |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
The procedure to get the name from the source entity (in your case "Steckdose Trockner") is done in following fallback mechanism:
So in your case it seems both 1 and 2 did not apply. Could you check file Anyway you can just rename the entities from the GUI by clicking the cog wheel. |
Beta Was this translation helpful? Give feedback.
-
Thanks for trying to help out :)
Iam wondering a bit, because another tuya works fine (but just one of them) which si called switch.steckdose_poolpumpe see:
PS: Even if i rename the pwoercalc Device later, the entity names staying the same (lowercase and underscore) |
Beta Was this translation helpful? Give feedback.
-
Both you JSON dumps above are for the same entity. Could you also add the one from To rename the entities, you have to rename the 5 entities. Click one one of them and than the cog wheel, there you have the option to give it a custom name, or even change the entity id's. |
Beta Was this translation helpful? Give feedback.
-
Sorry, ive updated / fixed the copy/paste issue. And renaming all 5 Entities for actual 12 devices is a lot of work i would like to avoid, becasue for one of the devices (all using the same pattern and addon) it was working like expected :| Anyway, if that its the way, i will do it :D PS: The Tuya Device offers a Power Sensor already, why Powercalc is adding another Power Sensor based on the given one ? |
Beta Was this translation helpful? Give feedback.
-
I might have an idea what causes this. There is some property
Powercalc provides profiles for some smart plugs which don't provide their self usage. Even though their consumption is very small, they will add up to your total consumption in your house. So you'll get a power sensor so you'll know how much the smart plug itself uses. Hence the naming |
Beta Was this translation helpful? Give feedback.
-
Should be fixed with #1811. Just released new version 1.9.1. |
Beta Was this translation helpful? Give feedback.
Should be fixed with #1811. Just released new version 1.9.1.
After updating you'll need to remove the config entry, that's from the list at the integration page.
That should also remove the related 5 entities.
After that restart HA and it should hopefully discover again. Now add again and it should set the correct names for both the config entry and the 5 entities.
Try that first for one. After that your can do the other 11 in one go.