Switch 1 and have no area, it has to guess or ask, and every question is one more message for you.
This page covers what’s worth tidying up. None of it is required, but it’s what improves answers the most.
Anything you change in Home Assistant reaches HomiAgent within seconds. You don’t need to restart anything or reconnect the integration.
1. Use names you’d say out loud
HomiAgent uses the entity name as it appears in Home Assistant. It doesn’t see the physical device’s name or theentity_id (unless the entity has no name at all).
Many integrations create generic names like Switch 1, Plug 2, or Channel L1. On a three-gang switch, that’s three entities that look identical to the assistant.
A few tips:
- Use the name you actually say. If everyone at home calls it “the couch light”, that’s the name.
- Name it after what’s plugged in, not the hardware. A plug that powers the coffee maker is
Coffee maker, notSonoff plug. - Keep names unique within a room. Two entities called
Lightin the same room force HomiAgent to ask which one you mean. Having aMain lightin every room is fine: the area tells them apart.
1
Open the entity
In Home Assistant, go to Settings → Devices & services → Entities and click the entity.
2
Open its settings
Click the gear icon in the top-right corner of the dialog.
3
Change the name
Edit the Name field and save.
2. Put every device in an area
When you ask for something, HomiAgent first works out which room you’re talking about, and only then looks for the device inside it. An entity with no area is much harder to find. You can set the area on the device (all its entities inherit it) or directly on the entity, if it’s somewhere different from the rest of the device. If both are set, the entity’s area wins.1
Open the device
Go to Settings → Devices & services → Devices and click the device.
2
Edit the area
Click the pencil icon, pick the Area, and save.
- Name areas the way you talk about them. “Master bedroom”, “Anna’s room”, “Balcony”. HomiAgent understands variations, but the right name helps.
- Scenes, scripts, and automations don’t need an area. They’re found by name.
- Check the result on the Devices page of the dashboard. It shows your devices grouped by room, exactly the way HomiAgent sees them.
Tell it where you are
If you’re about to give several commands in the same room, say so once:I’m in the office.From then on, “turn on the light” or “turn on the AC” refers to the office until you move to another room. If you have more than one home connected, HomiAgent remembers a room for each one.
3. Say what each thing really is
Not every device is what it looks like. An LED strip wired to a relay shows up in Home Assistant as a switch, not a light. When you ask to “turn off all the lights”, HomiAgent might leave that strip out. To fix this, HomiAgent automatically creates a set of labels in your Home Assistant. Apply the right label to the entity and the assistant treats it as that type, without changing anything else in Home Assistant.1
Open the entity
Go to Settings → Devices & services → Entities and click the entity.
2
Add the label
Click the gear icon, pick the matching
homi_entityType_... label in the Labels field, and save.4. Hide what doesn’t matter
A typical home has hundreds of entities you’ll never ask the assistant about: Wi-Fi signal strength, firmware updates, status LEDs, diagnostic sensors. All they do is give HomiAgent more options to choose from and more chances to get it wrong. You can hide them in two ways, and both stay in sync:- In the HomiAgent dashboard
- In Home Assistant
Open the Devices page and uncheck the entities the assistant shouldn’t see.
Quick checklist
- The entities you use have names you’d say out loud.
- No room has two entities with the same name.
- Every physical device is in an area.
- Lights wired to relays or plugs have the
homi_entityType_lightlabel. - Diagnostic entities, and anything you don’t want exposed, are hidden.