Give a user a username and password
ha_set_user_credentialsAttach a local username and password to an existing Home Assistant user without a login. Fails if the username is taken or the user already has credentials.
Instructions
Create a local username/password login and attach it to an existing user that has none yet (use ha_create_user first). Fails if that username is already taken, or the user already has a login (use ha_change_user_password instead).
This mints a standing Home Assistant login independent of any VomeHome API key — revoking the key that called this does not revoke the login. Only do this for an account the home's owner actually wants to exist. Requires ha:config.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_id | Yes | User id from ha_list_users or ha_create_user. | |
| password | Yes | Login password, chosen by the caller. | |
| username | Yes | Login username. | |
| 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. |