#Secrets in Automations

1 messages · Page 1 of 1 (latest)

simple drift
#

Hello guys, is there any possibility to use secrets in automations/scripts instead of "hard coding" them?

rose elm
#

@simple drift Did you get this figured out? I'm also interested if I can use secrets inside the templates or part of the command_line argument?

trim bridge
#

cant use secrets with the UI editor. I think you can use a secret if you write your automation/script in a yaml file.

rose elm
#

like this?

command_line:
  - sensor:
      name: Leakomatic
      unique_id: "LeakomaticCommandLine"
      command: "python3 python_scripts/leakomatic/get_status.py -u {{!secrect myEmail}} -p {{!secrect myPass}} -j -d 2095"
trim bridge
#

can't get a secret with a template

#

put the entire command into secrets

#

command: !secret leakomatic_command