Vera Alerts Plugin Version 2.2

Thanks a million! Whenever I have some free time this evening I’m going to sit down and play with this thing.

Richard

I am using the VERA alert succesfully on a tablet in my kitchen. both the C2DM methods works well as via LAN.
I have also added my phone (galaxy SIII) and another tablet (galaxy) and I can use the C2DM method to send messages to those units as well, but I can not use the LAN method.

I have checked the ip settings, port settings etc. when I test from the Vera alert app i can send to the C2DM for the phone and other tablet but not using the LAN method.

Strange, as it works on the tablet in the kitchen. Any hint?

If you go to the Settings tab for the Android … while the WiFi is enabled it will show you your current WiFi IP address where you set the port. Verify it versus what you are sending.

Look at your log when you send an alert … Send anything interesting to me.

Open this first:
http://YourVeraIPAddress/cgi-bin/cmh/log.sh?Device=LuaUPnP

Then send an a VeraAlert to your phone using the IPAddress:Port recipient.

for some reason the phone started to work via LAN, but not the other tablet.

in the log file i notice LEAK message, i copied here below:

50 01/13/13 12:54:40.552 luup_log:38: VeraAlert:38:SendAlert:LAN: Target:192.168.0.15:1050 Msg:Vera Startup LEAK this:8192 start:520192 to 0x123c000 <0x2b559680>
50 01/13/13 12:54:40.559 luup_log:38: VeraAlert:38:SendAlert:LAN: Target:192.168.0.28:1050 Msg:Vera Startup LEAK this:8192 start:528384 to 0x123e000 <0x2b559680>
50 01/13/13 12:54:40.637 luup_log:38: VeraAlert:38:SendAlert:LAN: Error Connection Target:192.168.0.14:1050 Msg:Vera Startup LEAK this:12288 start:540672 to 0x1241000 <0x2b559680>

now… somewhat later in time… all seems to work OK

no error message, all works.

maybe something to do with LEAK message? (i know you don’t like the LEAK message :wink: )

Check your Android power configuration.
It might turn the Wifi off if it is not being used.

Hi

Wifi always stays on, i checked. Also the pingsensor did not report that wifi was down on the tablet…
Strange, but working now.

I configured Vera Alerts plugin to add forwarding to massalia’s Push Notification plugin via IOS Prowl and my configuration was a bit different than what’s on the Vera Alerts doc website.

Under Settings → Plugin Forwarding, I compiled the following settings from the Vera Alerts website (Vera Alerts - Vera Plugin for Notifications) and the Push Notification info post (http://forum.micasaverde.com/index.php/topic,11520.0.html):

Plugin Service ID: urn:upnp-org:serviceId:IOSPush1          //Different from what's in screenshot 4 under Settings in Vera Alerts website
Plugin Action:	SendProwlNotification
Plugin Args:	Event="Vera Notification",Description="{Message}",Priority=1,URL=""

Also, in the Vera Alerts plugin, I added a new user with “Forward” as the Vera Alerts ID under Notification Configuration. For some reason, it didn’t send when this field was blank even though default recipients had a “VeraAlertsID,Forward” in it.

Does it forward when you specify forward as a recipient ?

I’ve been trying to get this working by forwarding to massalia’s Push Notification as well, but using push notifications. I’ve had the push notifications working but haven’t been able to get the forwarding from Vera Alerts as yet.
My configuration is:
Settings, General - defined default recipient and have checked both Process Notifications and Internal Alerts
Settings, Pluging Forwarding
Pluging Service ID - urn:schemas-upnp-org:device:IOSPush:1 (Copied from push notification)
Plugin Action - SendPushOverNotification
Plugin Args - msgarg={Message} (Just keeping it simple to start with)
Plugin Device ID - 31 (push notification ID)
Notification Configuration - I have setup a test notification on a light switch which is listed here, so I think that is setup correctly.

I’m missing something, does anyone have any ideas what it is? Any help would be appreciated by this newbie.

Richard - yes it does. Sorry if I wasn’t clear in the last post: I was posting my info in case someone else was having similar problems.

tjoyce - it looks to me like your Args should be:
Message=“{Message}”
based on info in the Push Notifications thread. Be sure to keep the quotes also.

Thanks for the response Damathon.

I did try Message=“{Message}” But with the same result. I original pulled the msgarg={Message}nfrom the VeravAlerts plugin.

Check your log file when you do a SendAlert with a forward:
[url=http://192.168.XXX.YYY/cgi-bin/cmh/log.sh?Device=LuaUPnP]http://192.168.XXX.YYY/cgi-bin/cmh/log.sh?Device=LuaUPnP[/url]

Replace IP address with your Vera IP.
Send me the log around the event.

RichardTSchaefer, thanks for the help and steps. Please find log file attached.

You did not specify a recipient in the VeraAlerts device Notification Configuration tab for the specified user. If you wanted a specic Vera User to be forwarded than this is where you would put the recipient address as Forward. You indicated you did this … but the log does not show this.

As a result the notification will be sent to the Default Recipients in the settings tab.
Looks like your default recipients only contains an Android VeraAlerts ID … and not a “Forward”.

Can you verify the contents of your settings page does indeed have two entries … an Android VeraAlerts id and a Forward. The log file does not show a Forward … there should be an entry in the log … even if it fails.

Maybe you have NOT run the VeraAlerts device Notification Configuration tab and then done a Save after you selected your forwarded user in your notification. You must go back to the VeraAlerts tab every time you change a Notification … so that Vera Alerts can find the change.

Hi Richard
Have you by any chance managed to find out why the timestamp keyword does not work properly?

Yes, I reported this as a bug … I accidentally left it out when I did the major rewrite … I have added it back for the next release … maybe later this week.

The new version will have the option to send pictures or video from a camera device with your notification.

wow you are doing some amazing things for the vera community…look forward to the next release

Hey Richard,

Thanks for the reply, your right I did miss the step of putting Forward within the Settings and Notification Tab. That is now there and it looks like it is now trying to forward to the push notification plugin. But I’m now getting an error that the job handler can not find the:

JobHandler_LuaUPnP::HandleActionRequest can’t find urn:schemas-upnp-org:device:IOSPush:1 <0x2beb9680>

This was what I copied and pasted out of the push notification and it did match the documentation for the plugin screenshot.

Here are all the lines from the log:

06 02/04/13 12:10:25.249 Device_Variable::m_szValue_set device: 11 service: urn:upnp-org:serviceId:SwitchPower1 variable: Status was: 0 now: 1 #hooks: 3 upnp: 0 v:0x90aa50/NONE duplicate:0 <0x2beb9680>
08 02/04/13 12:10:25.251 JobHandler_LuaUPnP::HandleActionRequest device: 83 service: urn:richardgreen:serviceId:VeraAlert1 action: DeviceNotification <0x2beb9680>
08 02/04/13 12:10:25.251 JobHandler_LuaUPnP::HandleActionRequest argument DeviceID=11 <0x2beb9680>
08 02/04/13 12:10:25.251 JobHandler_LuaUPnP::HandleActionRequest argument Description=%20Front%20Hall%20Light%20is%20turned%20on <0x2beb9680>
08 02/04/13 12:10:25.252 JobHandler_LuaUPnP::HandleActionRequest argument Name=Light%20On <0x2beb9680>
08 02/04/13 12:10:25.252 JobHandler_LuaUPnP::HandleActionRequest argument Service=urn:upnp-org:serviceId:SwitchPower1 <0x2beb9680>
08 02/04/13 12:10:25.252 JobHandler_LuaUPnP::HandleActionRequest argument Variables=Status <0x2beb9680>
08 02/04/13 12:10:25.252 JobHandler_LuaUPnP::HandleActionRequest argument Msg=%20Front%20Hall%20Light%20is%20turned%20on <0x2beb9680>
08 02/04/13 12:10:25.252 JobHandler_LuaUPnP::HandleActionRequest argument SceneID=43 <0x2beb9680>
08 02/04/13 12:10:25.252 JobHandler_LuaUPnP::HandleActionRequest argument Recipients=Forward <0x2beb9680>
50 02/04/13 12:10:25.254 luup_log:83: VeraAlert:83:Msg:: Front Hall Light is turned on <0x2beb9680>
50 02/04/13 12:10:25.255 luup_log:83: VeraAlert:83:SendAlert:Forward Msg: Front Hall Light is turned on <0x2beb9680>
08 02/04/13 12:10:25.256 JobHandler_LuaUPnP::HandleActionRequest device: 31 service: urn:schemas-upnp-org:device:IOSPush:1 action: SendPushOverNotification <0x2beb9680>
08 02/04/13 12:10:25.256 JobHandler_LuaUPnP::HandleActionRequest argument Message= Front Hall Light is turned on <0x2beb9680>
01 02/04/13 12:10:25.256 JobHandler_LuaUPnP::HandleActionRequest can’t find urn:schemas-upnp-org:device:IOSPush:1 <0x2beb9680>
07 02/04/13 12:10:25.257 Event::Evaluate 28 Light On scene Light On is true users:254471 allow:1 <0x2beb9680>
08 02/04/13 12:10:25.257 Scene::RunScene running 43 Light On <0x2beb9680>

Any ideas as to why on my VeraLite its not finding the push plugin?

Either you have the wrong device ID for the Push Notification plugin or you do not have the right arguments for the Push Notification.
Check with the developer for proper call_action arguments.