Vera Alerts Plugin Version 2.2

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.

Great, just wanted to make sure where the error message was coming from.

Thank you all your help! I learned a lot and will hopefully not be such a newbie for long.

Hey Richard,

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).

luup.call_action(“urn:upnp-org:serviceId:IOSPush1”, “SendPushOverNotification”,{ Title= “Title”, Message=“Message”, Priority=1, URL=“”, URLTitle=“”, Sound=“Siren”}, 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.

You would have to set the arguments as follows:

Title= “Title”, Message=“{Message}”, Priority=1, URL=“”, URLTitle=“”, Sound=“Siren”

If you want to use the name of the notification as the title:

Title= “{Name}”, Message=“{Message}”, Priority=1, URL=“”, URLTitle=“”, Sound=“Siren”

Totally Agree. I was doing some testing and I noticed some other error messages. So I reboot my Vera Lite. Now notifications are being sent.

Thanks for all the help, am really looking forward to using your Plugin!

[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.

It’s released … waiting on MCV approval.

Thank you. I, for one, would be glad to pay/donate to your efforts. The plug-in and Android app combo adds tremendous utility.

I tried {timestamp} with the Android client version 3.01, but can’t get it to work. Does it work for anyone else? (I might be doing something wrong.)

Fixed in Vera Alerts 3.0

Hi Richard
It seems that I am still having issues with {timestamp} function as aux message. I am using the lastest versions as far as I’m aware

Hi

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>

is something missing.

Thanks

Oops … a recent change I made had a typo.

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!

I will release an update.

Thanks. All working now.

Hi Richard

I’m am having issues with receiving pictures from my ip cam on vera alerts.
Can I send you my log file?

Regards Frode

Yes I need two things.

I need the Vera Log (not the android side).
Start the log
http://YourVeraIP/cgi-bin/cmh/log.sh?Device=LuaUPnP

From the Vera Alerts Send Alert tab, Send:
Picture {Picture(xxx)}

Where xxx is the device id of a Vera Camera.
A few seconds after the Phone receives the message … you can save the log file.

And I need to have someone do a listing:
ls -al /tmp/cmh/log/va.*

Any idea whats going on here? Error in luup code yedi yedi:

luup.call_action(“urn:upnp-org:serviceId:IOSPush1”, “SendPushOverNotification”,[Title= “{Alarm}”, Message=“{Testmessage}”, Priority=1, URL=“”, URLTitle=“”, Sound=“Siren”], 57)

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…

Tommy

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.

I got it to work :slight_smile:

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?