Control devices without remembering entity IDs
When to use: You know what you want ("dim the kitchen to 30%") but not the exact entity_id.
Prerequisites
- Home Assistant Long-Lived Access Token — Profile → Security → Create Token; save as HA_TOKEN env var
- HA_URL set — Set HA_URL=http://homeassistant.local:8123 (or your URL)
Flow
-
Find the entityUse ha-mcp. Find entities matching 'kitchen light'. Show entity_id, area, and current state.✓ Copied→ 1–3 candidate entities with current state
-
Apply changeSet kitchen ceiling lights to 30% brightness, warm white.✓ Copied→ Service call succeeds; state confirmed
Outcome: Devices controlled by intent, not memorization.
Pitfalls
- Multiple entities match — wrong one toggled — Always confirm entity_id list before bulk action; use area filters