Closed TheZoker closed 10 months ago
Thank you for your pr. What happens if you have two or more cams?
Hi @roleoroleo
This should not be a problem. By default the integration still takes the cryptic device ID for the name and the entity ids.
So if you have two different cameras, the IDs will still be different.
Tested, it works properly. What about labels in lines 31 and 55 of custom_components/yi_hack/switch.py? "Switch" instead of "Switch On", is a typo?
Glad to hear :)
Ah sorry, yes it was a type. I fixed it. PR should be ready to merge 🎉
Thank you again for your time.
Thanks for considering my changes and merging the PR 🙂 And thanks for the integration and the firmware, really appreciate it!
This PR sets custom names for all the entities.
Before:
After:
Home Assistant will hide the device name in the entity name. Renaming the device will also work and will update the entity IDs. This change should bring the entity ids of this integration to work similar like native HA integration naming schema.
As you can see in this example, I renamed the device to Yi Home and this is the result of HAs automatic entity renaming: