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
sc_bureau:
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 192.168.0.10 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 192.168.0.10 1001
#in this curl i have 3 variables IP , user and pass , that i want to use for !secret
home_mode:
friendly_name: Home Mode
command_on: 'curl -k "https://192.168.0.15:6003/webapi/entry.cgi?api=SYNO.SurveillanceStation.ExternalEvent&method="Trigger"&version=1&eventId=1&account=XXXX&password=XXXX"'
command_off: 'curl -k "https://192.168.0.15:6003/webapi/entry.cgi?api=SYNO.SurveillanceStation.ExternalEvent&method="Trigger"&version=1&eventId=2&account=XXXX&password=XXXX"'