abartello Posted December 28, 2024 Posted December 28, 2024 (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 December 28, 2024 by abartello
paulbates Posted December 28, 2024 Posted December 28, 2024 (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 December 28, 2024 by paulbates
abartello Posted December 28, 2024 Author Posted December 28, 2024 (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 December 28, 2024 by abartello
Javi Posted December 28, 2024 Posted December 28, 2024 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.
paulbates Posted December 28, 2024 Posted December 28, 2024 (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 December 28, 2024 by paulbates 1
abartello Posted December 29, 2024 Author Posted December 29, 2024 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?
dbwarner5 Posted December 30, 2024 Posted December 30, 2024 @abartello If you use the Notifications plug in with Pushover on the phones, you can specify which phone it goes to, but its a bit more complex as it requires setting up Pushover and adding that plug in.
Javi Posted December 30, 2024 Posted December 30, 2024 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. 1
dbwarner5 Posted December 30, 2024 Posted December 30, 2024 (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. UPDATE.. I received an ERROR on UDM: "An SSL error has occurred and a secure connection to the server cannot be made" Edited December 30, 2024 by dbwarner5
Javi Posted December 30, 2024 Posted December 30, 2024 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. 1
dbwarner5 Posted December 30, 2024 Posted December 30, 2024 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., Any thoughts? thanks! LOVE THE CONTINUED GROWTH OF UDM!
abartello Posted December 30, 2024 Author Posted December 30, 2024 (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 December 30, 2024 by abartello
Javi Posted December 30, 2024 Posted December 30, 2024 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.
dbwarner5 Posted December 30, 2024 Posted December 30, 2024 @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.
Javi Posted December 31, 2024 Posted December 31, 2024 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. 1
Jimbo.Automates Posted January 1 Posted January 1 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?
Jimbo.Automates Posted January 1 Posted January 1 But you are correct, after reviewing the code I see that changing a group name is ignored. I'll work on a fix. 1
Jimbo.Automates Posted January 2 Posted January 2 On 12/29/2024 at 8:11 PM, 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. On 12/31/2024 at 10:05 AM, Javi said: Thanks. I added an issue for the Notification Plugin https://github.com/UniversalDevicesInc-PG3/udi-poly-notification/issues/58 Fixed in notification plugin 3.6.16. 2
Recommended Posts