It would be fantastic to be able to activate/disable a user from a script/automation.
At the moment I can’t find any way to do that programmatically, and I have to use the Person menù in settings.
The final goal is to better handle user management.
It would be fantastic to be able to activate/disable a user from a script/automation.
At the moment I can’t find any way to do that programmatically, and I have to use the Person menù in settings.
The final goal is to better handle user management.
You can do this with templates… but not a ‘normal condition’
condition:
- condition: template
value_template: "{{ context.user_id != states.person.xyz.context.id }}"
Anyways, there’s a WTH for this already, please search before you create WTHs and vote for this WTH here.