Jump to content

Notifications based on variables to multiple cell phones


abartello

Recommended Posts

Posted (edited)

I have an EISY with PG3 and Notifications plug-in installed. I have three people in our household and would like to send notifications to each of our phones indicating when any one of us has left or arrived at home. Admin Console has added "UD Mobile" under the Notifications node which I'm assuming is my own cell phone. I presently have a variable for each of us that sets to "1" when that person is home and "0" when away. Using a Customization Event template that Notifications put under the Configure tab, I was able to create a notification for when I arrive and leave. I cheated by first using UD Mobile to create a notification from a device like "Table Lamp", then I went into Admin console and edited this for the person's geofenced variable. But I don't know how to add the other cell phones under Notifications for this. UD Mobile is installed on each of their phones under my account, and I created a Geofence Trigger Enter/Exit for each. So each of their variables are changing appropriately in EISY. How create the notification for their phones? Is there a simpler way to do this? Unfortunately, the whole section on how to do notifications is like the Wild West with so many different approaches with UDI.

Any help is appreciated.

Thanks.

Tony

Edited by abartello
Posted (edited)

Why to be sure I understand: if any one of the three leaves or comes home, all three people should get a notification?

Edited by paulbates
Posted (edited)

Correct. But I would like the option in the future to focus specific notifications to the household users.

Someone was kind enough last year to post this document "Notifications for Dummies" on this forum, but it works for only one user, one cell phone. Not sure how to add others.

Thanks.

Notifications for Dummies.pdf

Edited by abartello
Posted

Your best option is to use the occupancy Node Server to track each person, but variables also work.

See: https://wiki.universal-devices.com/index.php?title=UD_Mobile#Occupancy_v2.0_Node_Server

You will then need to add a Geofence in each instance of UD Mobile on EACH MOBILE DEVICE to trigger the correct occupancy status (or variable).  You cannot add a geofence for another user without having physical access to their device. Also note that the Mobile OS (iOS/Android) may periodically alert the user that UD Mobile accessed their location, so they can disable easily.

If you are importing backups onto the other user's devices, you can create each Geofence on your own device (i.e. one for each person; Husband, Wife and Child) then disable all geofences except for that user after import. 

Posted (edited)

For creating notifications after you get each phone configured, you'll create one one program for each person:

if
    geofence1 is true 
then
    Set 'Notification / UDM' Send message content X Notification ID (ID=X)     
else
    Set 'Notification / UDM' Send message content X Notification ID (ID=X)     

Let's assume you have no notifications defined today. In the case X=1 for you in geo fency, X=2 for you being out of geofence. X=3 for your wife in geo fency, X=4 for her being out of geofence.     

But X should be what the custom notification # in. You create those custom messages under the iox configuration tab - Emails/Notifications/Customizations

Edited by paulbates
  • Like 1
Posted

Thank you Javi and Paulbates, this worked. I now get notifications on all cell phones based on home/away status.  This works fine for any notification I need to broadcast to all user's phones. But I'm wondering if there is a way to send a notification to a specific phone only. Would I have to add each household member as a separate User on the my.isy.io login page? And then on each of their phones, log out (as they are all logged in using my login credentials) and then login using their new user credentials? Will this generate a new UD Mobile node under devices/notifications for each of them in Admin Console?

Posted

This can be done for UD Mobile also, however it is called Groups instead of an individual device.  A group is used so that you can group all the user's devices (as a user) or in case the user gets a new device.  This way the programs never have to be changed, you only need to update the group with the users new device.

Create a group for each user from the Notifications Tab Settings in UD Mobile.  Restart the Notification plugin (so that the groups are populated), now you can select the user (group) in the program.

 

  • Like 1
Posted (edited)

@Javi Thanks Javi.. I was not aware of that. I went into UDM and cleaned up my devices, and also added a group.

I then did a sync with the controller.. .....however when I opened up the AC, nothing shows up under Notification Controller / UD Mobile except default.

Did I miss something? thanks. 

image.thumb.jpeg.c3b7db57054d99e2ea4009518ef20581.jpeg

 

UPDATE.. I received an ERROR on UDM: "An SSL error has occurred and a secure connection to the server cannot be made"

Edited by dbwarner5
Posted

The Node Server Needs to be restarted before it will update groups.

SSL Error may be a temporary internet issue, ignore if it does not persist.

  • Like 1
Posted

Thanks @Javi.  My apologies, I think you said that above or in the help section. 

Some challenges still:

It took a few times to get the group to show up. But I did not see our "individual " phones so assumed I needed a group of "one" for each of them. Set that up. 

Was able to get all three groups to show in the AC after sync, plug in restart, and then AC.

However, I then tried to change the names of the two individual phone names. I cant seem to get these to the AC. 

When I restarted the Plug in again, these showed in the Info log:

WARNING Controller:write_profile: Waiting for Service ISYPortal UDM Notiications to initialize, timeout in 1 seconds...
2024-12-29 23:01:24.868 Thread-9 (node_queue) udi_interface ERROR Controller:write_profile: Node Service ISYPortal UDM Notiications failed to initialize init_st=None

I then tried to delete them and go this message after the delete confirmation., 

 

image.thumb.jpeg.f78791dd72cbfde80a5dcc5b2ecb826f.jpeg

Any thoughts? thanks! LOVE THE CONTINUED GROWTH OF UDM!

Posted (edited)

I got this to work using Groups. Thanks Javi. So apparently if you install UD Mobile on someone else's phone and then login from their phone using your credentials, it adds the user's iPhone to UD Mobile which you can only see under the notifications tab then selecting groups. You can see them listed under Devices. it doesn't show anywhere is AC that I can tell. 

Not very intuitive in the app, but it works. Thanks again.

Tony 

Edited by abartello
Posted
2 hours ago, abartello said:

I got this to work using Groups. Thanks Javi. So apparently if you install UD Mobile on someone else's phone and then login from their phone using your credentials, it adds the user's iPhone to UD Mobile which you can only see under the notifications tab then selecting groups. You can see them listed under Devices. it doesn't show anywhere is AC that I can tell. 

Not very intuitive in the app, but it works. Thanks again.

Tony 

Great, Groups would benefit from better documentation.  The AC does not have anything related to UD Mobile, the Notification Plugin uses the Public Notification API for UD Mobile.

 

10 hours ago, dbwarner5 said:

Thanks @Javi.  My apologies, I think you said that above or in the help section. 

Some challenges still:

It took a few times to get the group to show up. But I did not see our "individual " phones so assumed I needed a group of "one" for each of them. Set that up. 

Yes, the Notification Plugin only shows groups.  While this may not appear intuitive at first it will likely save you time when you switch phones or reinstalling UD Mobile (each phone has a unique ID for an app instance) as you will only need to enable the new phone in the group instead of searching through all programs.

10 hours ago, dbwarner5 said:

However, I then tried to change the names of the two individual phone names. I cant seem to get these to the AC. 

Was this the group or phone name?  Does the issue persist after swiping the app from recents (maybe a caching issue).

10 hours ago, dbwarner5 said:

When I restarted the Plug in again, these showed in the Info log:

WARNING Controller:write_profile: Waiting for Service ISYPortal UDM Notiications to initialize, timeout in 1 seconds...
2024-12-29 23:01:24.868 Thread-9 (node_queue) udi_interface ERROR Controller:write_profile: Node Service ISYPortal UDM Notiications failed to initialize init_st=None

Does the plugin still work?   The Plugin is developed by Jimbo using the public UD Mobile Notification API, so if this was not an error which corrected itself then he will need to check.

Posted

@Javi

5 hours ago, Javi said:

Was this the group or phone name?  Does the issue persist after swiping the app from recents (maybe a caching issue).

Group name.

5 hours ago, Javi said:

Does the plugin still work?   The Plugin is developed by Jimbo using the public UD Mobile Notification API, so if this was not an error which corrected itself then he will need to check.

Yes, but the old names are the ones showing up in the AC, not the new names which are in UDM.

Posted

 

21 hours ago, dbwarner5 said:

@Javi

Group name.

Yes, but the old names are the ones showing up in the AC, not the new names which are in UDM.

Thanks.  I added an issue for the Notification Plugin https://github.com/UniversalDevicesInc-PG3/udi-poly-notification/issues/58

As for the error, all devices must be removed from the group before deleting the group.  Updated Error message in next UDM release.

  • Like 1
Posted
On 12/29/2024 at 8:11 PM, dbwarner5 said:

When I restarted the Plug in again, these showed in the Info log:

WARNING Controller:write_profile: Waiting for Service ISYPortal UDM Notiications to initialize, timeout in 1 seconds...
2024-12-29 23:01:24.868 Thread-9 (node_queue) udi_interface ERROR Controller:write_profile: Node Service ISYPortal UDM Notiications failed to initialize init_st=None

Restarting the plugin should update the profile, then close/open AC and you should see the new names.  But the error above indicates it had issues communicating with the portal.  Were there mare WARNING lines before that?

Guest
This topic is now closed to further replies.

×
×
  • Create New...