Page 1 of 1

post notification with variables

Posted: Saturday 21 January 2017 13:58
by harrykausl
Hello,
I'm using lua scripts to theck my window sensors when activation security. The message sent differs by the number of open windows, so I createt a user variable message where I stored the text. Can anybody tell me the syntax of send notification with a variable message.

commandArray['Variable:message'] = 'Alarm aktiv\n123'
commandArray['SendNotification']='Alarmaktivierung#'message'#0'

This does not work, I get a error in the protocol.

Re: post notification with variables

Posted: Saturday 21 January 2017 14:12
by harrykausl
Solved, works with local variable.