I using some shell commands and rest command defined into configuration.yaml to send SMS
Like this:
shell_command:
openvindu: bash /config/sms.bat (this sends http curl as the same in the rest command)
and
notify:
- name: SMS
platform: rest
resource: "http://10.0.0.1/cgi-bin/sms_send?username=user&password=pass&number=123456789&text=LightON
I trigger this by automation. (se attachment)
I would like to add receiver and text into the automation and not in the configuration.yaml.
Maybe to add a “global” line into configuration.yaml…
shell_command:
openvindu: bash /config/sms.bat {NUMBER} {MESSAGE}
and
notify:
- name: SMS
platform: rest
resource: "http://10.0.0.1/cgi-bin/sms_send?username=user&password=pass&number={NUMBER}&text={MESSAGE}
Can this be done and how?