post notification with variables

Moderator: leecollings

Post Reply
harrykausl
Posts: 184
Joined: Sunday 13 November 2016 10:43
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: Germany
Contact:

post notification with variables

Post 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.
harrykausl
Posts: 184
Joined: Sunday 13 November 2016 10:43
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: Germany
Contact:

Re: post notification with variables

Post by harrykausl »

Solved, works with local variable.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest