Create a Home Assistant user
ha_create_userCreate a Home Assistant user without sign-in credentials; then call ha_set_user_credentials to set their username and password.
Instructions
Create a new Home Assistant user with no login yet — call ha_set_user_credentials afterwards to give them a username and password, or they exist but cannot sign in.
A user this creates is a standing account on the home, independent of any API key. Deleting the token that created it does not remove the user. Choose 'role' deliberately: 'admin' grants full control of this Home Assistant, equivalent to the owner. Requires ha:config.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Display name for the new user. | |
| role | Yes | 'admin' (system-admin, full access), 'user' (system-users, normal dashboard access, no settings), or 'read_only' (system-read-only, cannot change anything). | |
| local_only | No | Restrict this user to local-network sign-in only (no remote/cloud access). | |
| instance_id | No | Optional: the instance you mean (as listed by vomehome_list_instances). When given, the call is refused if this session is targeting a different home, instead of answering from it. |