We have moved at community.getvera.com

Author Topic: Using template with Vera Alerts and Plugin Forwarding  (Read 3449 times)

Online beerguy

  • Jr. Member
  • **
  • Posts: 96
  • Karma: +0/-0
Using template with Vera Alerts and Plugin Forwarding
« on: April 22, 2013, 02:09:16 pm »
Hi -
I've got Vera Alerts set up and working great with the Push Notification app. Now I'm trying to customize some of the messaging in the Vera Alerts app. I'm using the Prowl service so I have my setup in Vera Alerts as:

Event="Alert",Description="{Message}"

and everything works great.

Now when I try to put a template in the Message Override field I get an error. The message I'm putting in for testing is:

{DateTime(CurrentTime,%A %B %d, %Y at %H:%M)}

The error that I get is:

01   04/22/13 11:07:50.132   LuaInterface::CallFunction_Job device 31 function SVeraAlert_VeraAlert1_DeviceNotification_run failed [string "module("veraTemplateDateTime", package.seea..."]:35: bad argument #1 to 'find' (string expected, got nil) <0x2dff1680>
07   04/22/13 11:07:50.135   Event::Evaluate 17 GarageLeftOpenNotification scene GarageLeftOpenNotification is true users:280567 allow:1 <0x2dff1680>

Any help would be appreciated.

Thanks.

Offline RichardTSchaefer

  • Moderator
  • Master Member
  • *****
  • Posts: 10091
  • Karma: +764/-143
Re: Using template with Vera Alerts and Plugin Forwarding
« Reply #1 on: April 22, 2013, 04:30:17 pm »
Found a bug ...
Install this version of J_VeraAlert.js using: Apps -> Develop Apps -> Luup Files -> Upload File

Then reload your browser window!
Then go to Vera Alerts   control  and the Notification Configuration tab.
Then do a Save.
You should be good to go!

I will update the plugin on the App store soon.


Online beerguy

  • Jr. Member
  • **
  • Posts: 96
  • Karma: +0/-0
Re: Using template with Vera Alerts and Plugin Forwarding
« Reply #2 on: April 22, 2013, 06:47:30 pm »
Worked perfect. Thanks much.

Offline davidd1205

  • Full Member
  • ***
  • Posts: 158
  • Karma: +0/-0
Re: Using template with Vera Alerts and Plugin Forwarding
« Reply #3 on: April 23, 2013, 09:03:29 am »
Hello

Even with the patch I can not make a different alert
I want to change the "event" with Door eg
for the message is great but for Event imossible if someone has an idea

luup.call_action ("urn: richardgreen: serviceId: VeraAlert1", "SendAlert"
                   {Message = "EXAMPLE {DateTime ({device ([5XX] Service [urn: micasaverde-com: serviceId: SecuritySensor1].. LASTTRIP)}% A% B% d% Y% H:% M)}" Recipients = "Forward"}, YY)

Message text = ok
Evenenment = no text OK

and direct with Pushnotification is good

luup.call_action("urn:upnp-org:serviceId:IOSPush1", "SendProwlNotification",{ Event= "ALERTPERSO", Description="EXAMPLE", Priority=1, URL=""}, YY)

thank you David
« Last Edit: April 23, 2013, 09:07:02 am by davidd1205 »

Offline RichardTSchaefer

  • Moderator
  • Master Member
  • *****
  • Posts: 10091
  • Karma: +764/-143
Re: Using template with Vera Alerts and Plugin Forwarding
« Reply #4 on: April 23, 2013, 09:28:59 am »
@davidd1205

Need a little more details:
What are your settings for Plugin Forwarding ?

Quote
Message text = ok
Evenenment = no text OK

What does the above mean ? That the Message is expanded properly and forwarded through the Push Notification ?

Quote
I want to change the "event"
Does this mean you want to be able to use Text expansion in the Event Argument ?
I could run all arguments through the Template expansion.
Note: I have another patch out there: L_VeraAlerts.lua that will allow you to pass additional arguments on to the Forwarded Plugin.
http://forum.micasaverde.com/index.php/topic,14073.msg110267.html#msg110267

Offline davidd1205

  • Full Member
  • ***
  • Posts: 158
  • Karma: +0/-0
Re: Using template with Vera Alerts and Plugin Forwarding
« Reply #5 on: April 23, 2013, 09:48:08 am »
@davidd1205

Need a little more details:
What are your settings for Plugin Forwarding ?

Quote
Message text = ok
Evenenment = no text OK

What does the above mean ? That the Message is expanded properly and forwarded through the Push Notification ?

Quote
I want to change the "event"
Does this mean you want to be able to use Text expansion in the Event Argument ?
I could run all arguments through the Template expansion.
Note: I have another patch out there: L_VeraAlerts.lua that will allow you to pass additional arguments on to the Forwarded Plugin.
http://forum.micasaverde.com/index.php/topic,14073.msg110267.html#msg110267


Hi and thank you again

in fact all goes well I transferred with pushnotificaion plugin to prowl
by vera with alert against putting in pushnotification plugin Forward
I do not know precisely what to put in as an argument arg plugin dan veraalert

I put to test

Event = "Alert", description = "{Message}", Priority = 1 URL = ""

I get a good test of the transfer complete message but I can not seem to change the message header is always Alert
I would like to customize this t Event redirected to the next event in prowl

thank you for your help because I can not do

Offline RichardTSchaefer

  • Moderator
  • Master Member
  • *****
  • Posts: 10091
  • Karma: +764/-143
Re: Using template with Vera Alerts and Plugin Forwarding
« Reply #6 on: April 23, 2013, 09:53:52 am »
With the Patch I reference you should not be able to add arguments like:

Event = "Info"

To the call to luup.call_action ("urn: richardgreen: serviceId: VeraAlert1", "SendAlert", ...

The plugin will forward them, and override, definitions from the Plugin Forwarding arguments.

Offline davidd1205

  • Full Member
  • ***
  • Posts: 158
  • Karma: +0/-0
Re: Using template with Vera Alerts and Plugin Forwarding
« Reply #7 on: April 24, 2013, 07:08:19 am »
With the Patch I reference you should not be able to add arguments like:

Event = "Info"

To the call to luup.call_action ("urn: richardgreen: serviceId: VeraAlert1", "SendAlert", ...

The plugin will forward them, and override, definitions from the Plugin Forwarding arguments.

i don"t undersand it's possible or not ?
sorry for my poor english

Offline RichardTSchaefer

  • Moderator
  • Master Member
  • *****
  • Posts: 10091
  • Karma: +764/-143
Re: Using template with Vera Alerts and Plugin Forwarding
« Reply #8 on: April 24, 2013, 11:51:51 am »
That's not your English ... it's my bad message.

It should have said you should NOW   as opposed to what I typed which is you should NOT