#Secret in automation

1 messages · Page 1 of 1 (latest)

wild quiver
#

I'm getting this error: Error in parsing YAML: unknown tag !<!secret> on the !secret line while editing in the UI.

alias: Test
triggers:
  - trigger: event
    event_type: basement_keypad
actions:
  - variables:
      code: !secret mycode
kind nexus
#

Does the secret exist in the secrets file?
Did you restart HA after adding the secret to the file?

#

Both are needed in order to call a secret like that.

dreamy dove
#

Do you see this in VSCode? It often gives false messages about this

wild quiver
#

The secret does exist in the secrets.yaml file. HA has been restarted. I'm using the automations editor.

dreamy dove
#

I don't think secrets work when using the GUI

wild quiver
#

🤔

#

This sounds like a strong candidate for WTH.

#

The docs made no mention of this. I spent about an hour searching for an answer before coming here.

dreamy dove