I have an integration that is added by an entry in the configuration file. This Integration, its Device and Entity do not show an Area.
I want this integration to be allocated to a specific area, but I can see no way to do it. If I click on the Integration, Device, or Entity entries I am not given the ability to set an area for any of them.
I think areas can only be assigned in the UI. There is an long standing feature request for this which has gathered quite a lot of votes:
If your integration entities are editable in the UI and there is no area option, itās presumably because the developer didnāt include one, so you could try raising an issue. If theyāre not editable in the UI you could try giving them unique IDs, but with yaml integrations this is often not a valid option.
I have to say that this seems a glaring omission. I donāt have much in my config file, but I know others do. I find it surprising that thereās not been a huge clamour for this to be resolved.
Itās not fixable, which is why it hasnāt been addressed. The only way it can be fixed is if unique_id is added to the yaml configuration or the integration is moved to the UI.
One possible workaround might be to use an integration like Device Tools to create a āvirtual deviceā to which an area could be assigned.
I have done this for a set of entities created by a yaml integration, and the āvirtual deviceā can be assigned an area in the UI.
This may be a special case, though, because my integration didnāt supply a device, only a bunch of entities from a cloud-based account. Not sure what would happen if a device already existed.
It means, if the yaml entity you created supports unique_id, add unique_id. If it doesnāt, thereās nothing you can do but wait for a developer to add unique_id or move it to the UI.
unique_id allows you to manage yaml entities in the UI. It would be covered in the documentation for the yaml integration youāre adding. It can be anything unique.
This seems an odd and rather silly limitation of HA. Iām rather surprised it hasnāt been fixed (as a software developer I was taught that no fix is impossible). The IP address of my V6 box alone is unique, as is the name Iāve given it. Yet these arenāt sufficient to do the job. Oh wellā¦
Itās a limitation of the integration not home assistant, and that integration looks custom. Itās a limitation because itās impossible to make a yaml entry unique without a unique_id. When something isnāt unique, HA doesnāt have the ability to know what it is to always assign it to the same area. Itās a chicken-egg scenario.
Itās not a reasonable compromise, this was done in the past and it caused all sorts of other issues. Mac addresses and IPs are not reliable sources for making things unique. We have 10 years of experience doing this.
Then you really have no leg to stand on here with this back and forth. This is open source after all and this is a custom integration that isnāt managed by Home Assistant.
Looks as if the integration was written about seven years ago - which is why itās yaml. There was an update five months ago, so the dev may still be active. Report an issue.