I have this in a bash script and im running it from the command line:
Code: Select all
var=$(cat "/security/security.log")
curl -s "http://domoticzip:port/json.htm?param=udevice&type=command&idx=1385&nvalue=0&svalue="$var
And when i look in the text sensor i only see the first word.{
"status" : "OK",
"title" : "Update Device"
}
Could someone please give me some pointers to help me to get the contents (more than one word) of the file to the textsensor.