Author Topic: Push notification plugin for HomeWave  (Read 46625 times)

Online intveltr

  • Moderator
  • Hero Member
  • *****
  • Posts: 1727
  • Karma: +100/-5
Push notification plugin for HomeWave
« on: September 10, 2013, 06:37:08 pm »
I've thrown together a Vera plugin to make sending push notifications to HomeWave a little easier.  This plugin works with the VeraAlerts plugin as well!

The plugin is now available in the Vera app store

Installing manually
  • Download the attached Zip file and extract the 4 files.
  • On your Vera's UI, go Apps->Develop Apps->Luup Files
  • Under Upload Files, specify the 4 plugin files, tick Restart Luup after upload, and click Go
  • Wait for Vera to reboot
  • Go Apps->Develop Apps->Create Device
  • Enter a name for the device in the Description field, for example "HomeWave Push"
  • In the Upnp Device Filename field, enter D_HWPush1.xml
  • Click Create Device, then click the Reload button to restart the Vera engine.
You are now ready to set up the device.


Setting up
The device you just created should be on your dashboard, with the text "No valid Push ID"
Open the device, enter your Push ID into the appropriate field, and click Set

No need to "escape" special characters or spaces in your push ID, just enter it exactly as you specified it in HomeWave's settings.

Now click Test.  A test message should arrive on your iPhone.


Sending messages with Luup code

To send Push messages from Scenes, use the luup code below
luup.call_action("urn:intvelt-com:serviceId:HWPush1", "SendMessage", {Msg = "Bla"}, deviceid)

Be sure to substitute deviceid with the ID of the HomeWave Push device, and replace Bla with the message you want to send.


Using with VeraAlerts
  • Open the VeraAlerts device and switch to the Settings tab.
  • On the Settings tab, switch to Plugin Forwarding
  • Enter the following values:
    - ServiceID: urn:intvelt-com:serviceId:HWPush1
    - Action: SendMessage
    - Args: Msg="{Message}"
    - Device ID: the device ID of the HomeWave Push device
You may want to set Default Recipients (under General) to Forward
« Last Edit: January 03, 2014, 10:48:45 am by intveltr »
HomeWave is available in the App Store!  Turn your iPhone/iPad into an easy-to-use remote control for Vera.

Offline shmixx

  • Full Member
  • ***
  • Posts: 171
  • Karma: +2/-1
Re: Push notification plugin for HomeWave
« Reply #1 on: September 10, 2013, 10:41:56 pm »
intveltr, thanks for putting this together!!

I attempted installing this just now but seem to be hitting a stumbling block. I've gotten the files uploaded, created the device, but when the device appears, it doesn't show the "No push ID". When opening the device, there doesn't seem to be a Push ID field either to modify. Not sure if perhaps something isn't configured quite right on my side, or in the files? Any ideas?

Offline futzle

  • Beta Testers
  • Master Member
  • *****
  • Posts: 3258
  • Karma: +191/-9
Re: Push notification plugin for HomeWave
« Reply #2 on: September 10, 2013, 10:49:30 pm »
The most common user errors when creating devices are:
- Uploading the files wrong (for instance, by doing it with Internet Explorer).
- Misspelling the device filename when creating the device. Capitalization is important. No leading or trailing spaces is important.

Offline Gjones

  • Jr. Member
  • **
  • Posts: 53
  • Karma: +1/-0
Re: Push notification plugin for HomeWave
« Reply #3 on: September 11, 2013, 05:14:20 am »
Hi intveltr

all installed and test messages are being sent by veraalerts but device changes don't appear to be working as it was with the push plugin to prowl. I'll have to look again later

Thanks

Online intveltr

  • Moderator
  • Hero Member
  • *****
  • Posts: 1727
  • Karma: +100/-5
Re: Push notification plugin for HomeWave
« Reply #4 on: September 11, 2013, 07:08:43 am »
I attempted installing this just now but seem to be hitting a stumbling block. I've gotten the files uploaded, created the device, but when the device appears, it doesn't show the "No push ID". When opening the device, there doesn't seem to be a Push ID field either to modify. Not sure if perhaps something isn't configured quite right on my side, or in the files? Any ideas?

As suggested, make sure that you entered the exact filename (D_HWPush1.xml) into the Upnp Device Filename field.  If you open your device's properties, the advanced tab should show this filename under device_file.

Also try a restart of your vera followed by a refresh of your browser; sometimes it is necessary to make the devices appear correctly.

lastly check that you indeed uploaded all 4 files. (Check under Apps->Develop Apps->Luup Files
« Last Edit: September 11, 2013, 07:12:18 am by intveltr »
HomeWave is available in the App Store!  Turn your iPhone/iPad into an easy-to-use remote control for Vera.

Online intveltr

  • Moderator
  • Hero Member
  • *****
  • Posts: 1727
  • Karma: +100/-5
Re: Push notification plugin for HomeWave
« Reply #5 on: September 11, 2013, 07:11:56 am »
all installed and test messages are being sent by veraalerts but device changes don't appear to be working as it was with the push plugin to prowl. I'll have to look again later

Check that VeraAlerts is set up to send all notifications to the HomeWave Push Plugin.  Open VeraAlerts, check under Settings, General tab, and see if "Forward" is listed as a default recipient.  Test by sending a test message from VeraAlerts with the Recipients field left blank.  Not sure how VeraAlerts works, but you may also have to open the Notification Configuration tab, then save the device config (just like you have to after adjusting notifications).
HomeWave is available in the App Store!  Turn your iPhone/iPad into an easy-to-use remote control for Vera.

Offline RichardTSchaefer

  • Master Member
  • *******
  • Posts: 10091
  • Karma: +764/-142
Re: Push notification plugin for HomeWave
« Reply #6 on: September 11, 2013, 07:33:29 am »
Sorry folks ... I keep forgetting to release a fix ... The default Settings in Vera Alerts Plugin (for System Notifications and to Forward Standard Vera Notifications) are actually NOT defined even though they look like they are set!  You must manually toggle them to the correct position the very first time.

Offline Gjones

  • Jr. Member
  • **
  • Posts: 53
  • Karma: +1/-0
Re: Push notification plugin for HomeWave
« Reply #7 on: September 11, 2013, 07:34:47 am »
Looks to be working now. Need some more activity at home to check I'm getting all the same alerts.

Thanks

Offline Piwtorak

  • Hero Member
  • *****
  • Posts: 988
  • Karma: +4/-0
Re: Push notification plugin for HomeWave
« Reply #8 on: September 11, 2013, 08:16:11 am »
Working perfect for me, thanks Intveltr !
Vera3 (1), Airport Extreme (2), Apple TV (3), Sqblaster (1), GE Switch (3), GE Dimmer (1), Leviton VRCSZ2 (2), GE 45601 (1), Intermatic HA03 (2), GE Zwave Outlet (1), Remote Control Curtain (1) and growing.

Offline nullx8

  • Hero Member
  • *****
  • Posts: 870
  • Karma: +9/-3
  • Trouble !
general question about push service.
« Reply #9 on: September 11, 2013, 02:51:12 pm »
is there a limit of messages/day allowed ? (server side)

just Courious
1 VeraLite, 2 RaspberryPI, Harmony Remote, openLuup, 85 Devices, 34Nodes, 63 Triggers, 49 Scenes

Online intveltr

  • Moderator
  • Hero Member
  • *****
  • Posts: 1727
  • Karma: +100/-5
Re: general question about push service.
« Reply #10 on: September 11, 2013, 03:11:29 pm »
is there a limit of messages/day allowed ? (server side)

just Courious

No, spam away!
HomeWave is available in the App Store!  Turn your iPhone/iPad into an easy-to-use remote control for Vera.

Offline shmixx

  • Full Member
  • ***
  • Posts: 171
  • Karma: +2/-1
Re: Push notification plugin for HomeWave
« Reply #11 on: September 11, 2013, 10:35:53 pm »
I attempted installing this just now but seem to be hitting a stumbling block. I've gotten the files uploaded, created the device, but when the device appears, it doesn't show the "No push ID". When opening the device, there doesn't seem to be a Push ID field either to modify. Not sure if perhaps something isn't configured quite right on my side, or in the files? Any ideas?

As suggested, make sure that you entered the exact filename (D_HWPush1.xml) into the Upnp Device Filename field.  If you open your device's properties, the advanced tab should show this filename under device_file.

Also try a restart of your vera followed by a refresh of your browser; sometimes it is necessary to make the devices appear correctly.

lastly check that you indeed uploaded all 4 files. (Check under Apps->Develop Apps->Luup Files

Think I found my mistake this time. I'm new to the whole developing apps piece (if it wasn't already indicated by my forum status! ;)) and the Vera for that matter. It seems I needed to enter this into both the Device Type field and the Upnp Device Filename field. Once I did this it seems to have worked perfectly. On to testing now!

Thanks for the support, and the great app!! Keep up the phenomenal work ... after seeing all the iOS and Android options out there, yours by far takes the cake with design and functionality!

Offline dbmet

  • Full Member
  • ***
  • Posts: 122
  • Karma: +2/-5
Re: Push notification plugin for HomeWave
« Reply #12 on: September 12, 2013, 09:43:18 am »
This works great!!

I wonder if there is anyway to make the badges show up on the icon?

Online intveltr

  • Moderator
  • Hero Member
  • *****
  • Posts: 1727
  • Karma: +100/-5
Re: Push notification plugin for HomeWave
« Reply #13 on: September 12, 2013, 10:48:36 am »
I wonder if there is anyway to make the badges show up on the icon?

Not yet :)  The Push service for HomeWave will have to count notifications and set the badge number, then reset the count when you open HomeWave.  I'll give it a go
HomeWave is available in the App Store!  Turn your iPhone/iPad into an easy-to-use remote control for Vera.

Offline dbmet

  • Full Member
  • ***
  • Posts: 122
  • Karma: +2/-5
Re: Push notification plugin for HomeWave
« Reply #14 on: September 12, 2013, 10:50:12 am »
No Hurry. Thanks for all your hard work!!