So looked through the log for my device and found that the name listed there is urn:upnp-org:serviceId:IOSPush1 (which Damathon posted as well on 2/2). So changed that within the pluging and it now looks like it connects to the push notification. I checked with the push notification arguments requirements, it only requires Message for a Pushover, so that is all that I have defined here (just trying to keep it simple).
Now I’m getting the following error:
LuaInterface::CallFunction_Job device 31 function SIosPush_IOSPush1_SendPushOverNotification_run failed [string “…”]:294: attempt to concatenate local ‘p’ (a nil value) <0x2b25b680>
Overall log looks like:
06 02/04/13 13:56:14.189 Device_Variable::m_szValue_set device: 11 service: urn:upnp-org:serviceId:SwitchPower1 variable: Status was: 0 now: 1 #hooks: 3 upnp: 0 v:0xffab40/NONE duplicate:0 <0x2bf97680>
08 02/04/13 13:56:14.191 JobHandler_LuaUPnP::HandleActionRequest device: 83 service: urn:richardgreen:serviceId:VeraAlert1 action: DeviceNotification <0x2bf97680>
08 02/04/13 13:56:14.191 JobHandler_LuaUPnP::HandleActionRequest argument DeviceID=11 <0x2bf97680>
08 02/04/13 13:56:14.191 JobHandler_LuaUPnP::HandleActionRequest argument Description=%20Front%20Hall%20Light%20is%20turned%20on <0x2bf97680>
08 02/04/13 13:56:14.191 JobHandler_LuaUPnP::HandleActionRequest argument Name=Light%20On <0x2bf97680>
08 02/04/13 13:56:14.192 JobHandler_LuaUPnP::HandleActionRequest argument Service=urn:upnp-org:serviceId:SwitchPower1 <0x2bf97680>
08 02/04/13 13:56:14.192 JobHandler_LuaUPnP::HandleActionRequest argument Variables=Status <0x2bf97680>
08 02/04/13 13:56:14.192 JobHandler_LuaUPnP::HandleActionRequest argument Msg=%20Front%20Hall%20Light%20is%20turned%20on <0x2bf97680>
08 02/04/13 13:56:14.192 JobHandler_LuaUPnP::HandleActionRequest argument SceneID=43 <0x2bf97680>
08 02/04/13 13:56:14.193 JobHandler_LuaUPnP::HandleActionRequest argument Recipients=Forward <0x2bf97680>
50 02/04/13 13:56:14.194 luup_log:83: VeraAlert:83:Msg:: Front Hall Light is turned on <0x2bf97680>
50 02/04/13 13:56:14.195 luup_log:83: VeraAlert:83:SendAlert:Forward Msg: Front Hall Light is turned on <0x2bf97680>
08 02/04/13 13:56:14.196 JobHandler_LuaUPnP::HandleActionRequest device: 31 service: urn:upnp-org:serviceId:IOSPush1 action: SendPushOverNotification <0x2bf97680>
08 02/04/13 13:56:14.196 JobHandler_LuaUPnP::HandleActionRequest argument Message= Front Hall Light is turned on <0x2bf97680>
01 02/04/13 13:56:14.200 LuaInterface::CallFunction_Job device 31 function SIosPush_IOSPush1_SendPushOverNotification_run failed [string “…”]:294: attempt to concatenate local ‘p’ (a nil value) <0x2bf97680>
07 02/04/13 13:56:14.205 Event::Evaluate 28 Light On scene Light On is true users:254471 allow:1 LEAK this:57344 start:1544192 to 0x182f000 <0x2bf97680>
08 02/04/13 13:56:14.206 Scene::RunScene running 43 Light On <0x2bf97680>
That error message is coming out of the Push Notification Plugin.
You may not have met it’s minimum argument list requirements … You will need to submit help request on the other plugin’s forum.
Following up on some testing, what is the luup code format sent for a pushover notification?
In reading the push notification plugin documentation. specifically what is required to send, I found the following luup test code which I tested successfully on my Vera Lite (changing the device id to 31).
When I try and send just the arguments from the Vera Alerts plugin, it fails with the previous error message. So just trying to be accurate when I post to Massalia Push Notification forum for help that things are being past correctly.
[quote=“baxy_AU, post:36, topic:173913”]Hi Richard
Have you by any chance managed to find out why the timestamp keyword does not work properly?[/quote]
Thank you Richard!! Looking forward to have the {timestamp} variable working.
I’ve got the plugin setup and working sending SMTP messages and it looks great. I’m also trying to setup forwarding to the Push notification app and Prowl
It’s not sending to the Push Notification app and I’m seeing the following error in the log:
01 06/12/13 16:21:36.011 LuaInterface::CallFunction_Job device 85 function SVeraAlert_VeraAlert1_SendAlert_run failed [string “module(“L_VeraAlert”, package.seeall)…”]:354: attempt to index global ‘lil_settings’ (a nil value) <0x2fafa680>
You can locally edit this file.
Apps->Develop Apps → Luup Files.
Download the L_VeraAlerts.lua file to your PC.
Edit the file with a text editor.
Search and replace from lil_settings to lul_settings. There is a single instance.
Upload the file back to Vera. Click restart Luup after upload. Go!
Vera Alerts device is device 57…works fine when i use the Advanced and type in a message…but i need to use Lua so I can send an alert message with priority that switches on the sound if its off…
You are mixing up Pushover Plugin actions and Vera Alerts Actions.
The ServiceId for Vera Alerts is: urn:richardgreen:serviceId:VeraAlert1
The Action is: SendAlert
You need to set the Recipient argument to the name of your pushover Profile.
The only thing that is a bit weird is when I try to set priotiry 2 and also put in the retry and expire argument no messages is sent. When I switch back to priority 1 it works allright. I guess this might be a problem with the API at pushover and not the plugin?