I just got my Xiaomi Gateway and it seems to work. Allthough on my dashboard its named with its defaule id. I can of course click on the unit and change its name…
I’m just wondering if it itsn’t possible to set this in my configuration file instead?
I can’t find it in the documentation, but is there some sort of “name:” I should use like i do in other units or what can i do, or is it the customisation part I should look into now?
It would be nice if the device could at least start as setup with the name given in the Mi Home app but, sadly, the gateway doesn’t report that name through the API.
It only seems annoying on first setup, because you have so many devices. Once you have everything built and you’re just moving a device from one place to another, or adding a single new device, it’s a lot easier.
Any other hard coded configurations would likely be problematic as you’d have to edit that Xiaomi config every time you added a new device when the GUI makes this so much easier. If you really want to edit a file instead of the GUI, though, look in entity_registry.yaml. The Xiaomi devices are all listed there and you can change their entity_ids in that file. However, you need to make changes to that file only when HASS is STOPPED. Otherwise, they will be overwritten the next time HASS shuts down and the changes don’t take effect until a restart any way.