A user in Home Assistant is an account that can log in and control your home. Spook provides you with actions to enable and disable user accounts on the fly.
ActionsΒΆ
The following user management actions are added to your Home Assistant instance:
Disable a userΒΆ
This action allows you to disable a user account on the fly, preventing them from logging in.
Action properties | |
|---|---|
Disable a user π» | |
| |
No | |
No response | |
Newly added action. | |
Action data parameters | |||
|---|---|---|---|
Attribute | Type | Required | Default / Example |
| Yes |
|
Finding a user ID
Not sure what the user_id of a user is? You can find it in the Home Assistant UI by going to Settings β People β selecting the person β clicking on the User tab. The user ID is displayed on that page.
Alternatively, you can use the Developer Tools β Template tab and use the following template to list all user IDs:
{% for state in states.person %}
Name: {{ state.name }}
ID: {{ state.attributes.user_id }}
------------------
{% endfor %}1 2 3action: homeassistant.disable_user data: user_id: "bf1f3b59c7a842c8a9de3e1c12345678"
Or multiple users at once:
1 2 3 4 5action: homeassistant.disable_user data: user_id: - "bf1f3b59c7a842c8a9de3e1c12345678" - "a3c9d12e4f5b678901234567890abcde"
Enable a userΒΆ
This action allows you to enable a user account on the fly, allowing them to log in again.
Action properties | |
|---|---|
Enable a user π» | |
| |
No | |
No response | |
Newly added action. | |
Action data parameters | |||
|---|---|---|---|
Attribute | Type | Required | Default / Example |
| Yes |
|
Finding a user ID
Not sure what the user_id of a user is? You can find it in the Home Assistant UI by going to Settings β People β selecting the person β clicking on the User tab. The user ID is displayed on that page.
1 2 3action: homeassistant.enable_user data: user_id: "bf1f3b59c7a842c8a9de3e1c12345678"
Or multiple users at once:
1 2 3 4 5action: homeassistant.enable_user data: user_id: - "bf1f3b59c7a842c8a9de3e1c12345678" - "a3c9d12e4f5b678901234567890abcde"
Blueprints & tutorialsΒΆ
There are currently no known blueprints or tutorials for the enhancements Spook provides for these features. If you created one or stumbled upon one, please let us know in our discussion forums.
Features requests, ideas, and supportΒΆ
If you have an idea on how to further enhance this, for example, by adding a new action, entity, or repairs detection; feel free to let us know in our discussion forums.
Are you stuck using these new features? Or maybe youβve run into a bug? Please check the page on where to go for help.