Home Assistant currently doesn’t support using !secret
in automations or scripts, which makes it difficult to securely manage sensitive data like Alarm code, API keys and tokens. I’m requesting that !secret
be extended to automations for improved security and consistency.
Why This Is Important:
- Security:
Automations often need sensitive data (Alarm code, API keys, tokens). Without!secret
support, this information has to be stored in plaintext, increasing the risk of exposure. - Consistency:
!secret
works inconfiguration.yaml
, but not inautomations.yaml
. Supporting it in automations would create a uniform way to handle sensitive data across all configuration files. - Easier Maintenance:
Without!secret
, updating sensitive data requires manual changes in multiple places. With!secret
, users could manage all sensitive information centrally.
EDIT: Automation definitely does not support secrets in the portal. When you edit the YAML and add a secret, it throws an error and won’t let you save.
(Alamro) is a custom add-on, but I was referring to native automation. The mod should have checked first before closing the post or waited for a reply.