Use !secret in command line or link or

hi, i have lots of switches where i have curl or some other commands

i want to use the !secret, so in case i change the ip /user / pass for example, i only have to do it once

for example

  friendly_name: Bureau
  command_on: echo -e "\xED\x43\x31\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xAF\xAF\x44\x10\x01" | nc 1001
  command_off: echo -e "\xED\x43\x31\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xAF\xAF\x44\x10\x00" | nc 1001
#in this curl i have 3 variables IP , user and pass , that i want to use for !secret
  friendly_name: Home Mode
  command_on: 'curl -k ""Trigger"&version=1&eventId=1&account=XXXX&password=XXXX"'      
  command_off: 'curl -k ""Trigger"&version=1&eventId=2&account=XXXX&password=XXXX"'
1 Like