Help with Sendnotification

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
oliviers
Posts: 74
Joined: Wednesday 16 September 2015 22:10
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: Paris area, France
Contact:

Help with Sendnotification

Post by oliviers »

Hello,
I need some assistance with "Sendnotification"

I'm trying the following very simple LUA script:

Code: Select all

--

print('this will end up in the domoticz log')

commandArray = {}
print(_VERSION)
commandArray[SendNotification]='subject#body#extraData#priority#sound'
return commandArray
The script executes, but the notification fails...
Here's what I fing in the log:

Code: Select all

 2016-05-12 21:44:18.173 LUA: this will end up in the domoticz log
2016-05-12 21:44:18.174 LUA: Lua 5.2
2016-05-12 21:44:18.174 Error: EventSystem: in /home/pi/domoticz/scripts/lua/script_device_version.lua: /home/pi/domoticz/scripts/lua/script_device_version.lua:7: table index is nil 
Why ? Any idea, anyone ?
Domoticz "last stable version" 3.4834
Thank you,
Olivies
Paris area
Raspberry Pi 4 - RFXComm 433 - IrTrans - Zwave
trixwood

Re: Help with Sendnotification

Post by trixwood »

commandArray[SendNotification]

->

commandArray['SendNotification']
oliviers
Posts: 74
Joined: Wednesday 16 September 2015 22:10
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: Paris area, France
Contact:

Re: Help with Sendnotification

Post by oliviers »

Of course !!!
How could I not have seen this....
So obvious..
Thanks!
Paris area
Raspberry Pi 4 - RFXComm 433 - IrTrans - Zwave
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest