Kentinada Posted December 12, 2023 Posted December 12, 2023 I have my Eisy geofence defined in UD Mobile which is fine. But the things I will typically want to do aren't solely dependent on my location but my wife's as well. For example, if I leave the house I don't necessarily want to turn turn off lights or set the thermostat down because my wife is still home. But if we both leave, then I may want to do those things. I can install UD Mobile on her phone but I'm not sure that's enough.
Javi Posted December 12, 2023 Posted December 12, 2023 If you import the UD Mobile backup your fences will be in the backup but will need to be re-enabled if they did not exist on the same phone already. Programs can be used to check if you are both at a location, but it may be eiser to use a node server which tracks groups of users such as Portal Occupancy. See https://wiki.universal-devices.com/index.php?title=UD_Mobile#Occupancy_v2.0_Node_Server
Kentinada Posted December 12, 2023 Author Posted December 12, 2023 @Javi thanks. Is it possible to do what I'm looking for without the NS just using UD Mobile? The NS looks a bit cumbersome.
Javi Posted December 12, 2023 Posted December 12, 2023 Yes, with a combination of programs/variables. Each device updates a unique State variable as a boolean where entered=1 and exit=0. A program evaluates whenever one of state variables change if all state variables are in the IF Condition. IMO the node server is better when trying to use a group, no need to use urls simply adding a geofence (location) then adding devices (people, then add devices (people) to the geofence (location). Then you trigger Enter/Exit (On/Off) for that device (person) in the UDM Geofence Commands. Now in programs you can trigger automations whenever the Geofence (location) is on/off. With the variable/program method you would need logic to check if all people (devices) have exited or if someone entered when all other devices (people) were already gone. We should probably make this a local node server at some point.
dbwarner5 Posted December 12, 2023 Posted December 12, 2023 3 hours ago, Kentinada said: I have my Eisy geofence defined in UD Mobile which is fine. But the things I will typically want to do aren't solely dependent on my location but my wife's as well. I have the same need but havent tried to address it yet. The simple question @Javi is, if I have a geofence set up in UDM on my phone and also set one up on my wife's phone which starts from the same backup, will these be considered two different geofences? My guess is yes if I name them differently, then I can accomplish the above, but to your point if I replace her version with an updated backup on mine, it will replace her geofence with mine and wipe hers out since it wont exist on my phone. Currently I have been using Alexa's geofence to trigger a vairable in ISY and was going to do that for my wife's phone as I know those would be separate.
Javi Posted December 12, 2023 Posted December 12, 2023 9 minutes ago, dbwarner5 said: I have the same need but havent tried to address it yet. The simple question @Javi is, if I have a geofence set up in UDM on my phone and also set one up on my wife's phone which starts from the same backup, will these be considered two different geofences? My guess is yes if I name them differently, then I can accomplish the above, but to your point if I replace her version with an updated backup on mine, it will replace her geofence with mine and wipe hers out since it wont exist on my phone. Currently I have been using Alexa's geofence to trigger a vairable in ISY and was going to do that for my wife's phone as I know those would be separate. Add a seperate Geofence for each person as the commands should be to a different node/variable/program. Then disable all except for the Geofence related to the same device (person). You can do this on the device which will export the backup file. Then on import to another device verify the correct Geofences are enabled/disabled for that person. 1
Kentinada Posted December 13, 2023 Author Posted December 13, 2023 20 hours ago, Javi said: ... IMO the node server is better when trying to use a group, no need to use urls simply adding a geofence (location) then adding devices (people, then add devices (people) to the geofence (location). Then you trigger Enter/Exit (On/Off) for that device (person) in the UDM Geofence Commands. Now in programs you can trigger automations whenever the Geofence (location) is on/off. With the variable/program method you would need logic to check if all people (devices) have exited or if someone entered when all other devices (people) were already gone. @Javi I configured an Occupancy Node Server through the portal. The next step is "Upload node definitions". What is that exactly? It says it will reboot my Eisy when it's done.
Javi Posted December 13, 2023 Posted December 13, 2023 The Upload node definitions will install the Node Server. I may have missed this when I wrote the instructions. Please let me know where this should be inserted and I'll update the wiki. https://wiki.universal-devices.com/index.php?title=UD_Mobile#Occupancy_v2.0_Node_Server
Kentinada Posted December 13, 2023 Author Posted December 13, 2023 @Javi sorry but the documentation is just not clear to me ( a novice at node servers). Do I still need to do the Occupancy Node Server/Configuration step? Or do I just go directly to Occupancy Node Server/Occupancy v2.0?
Javi Posted December 13, 2023 Posted December 13, 2023 I've updated instructions https://wiki.universal-devices.com/index.php?title=UD_Mobile#Occupancy_v2.0_Node_Server
Kentinada Posted December 13, 2023 Author Posted December 13, 2023 @Javi Thanks that helped. I have done that. See attached screenshot. My next question though is how does it really know when either my wife or myself have truly left home? The mobile devices aren't tied to specific phone numbers/phones so I'm not how it knows.
Javi Posted December 13, 2023 Posted December 13, 2023 Go to your UD Mobile Geofence, and set the enter/exit commands to turn on/off the "Kent" Node on your device and the "Nancy" node on the other device. We do not create Geofences on other devices automatically for various reasons including stocking, privacy, ect. As an alternative you can create a seperate Geofence for all users on a single device (i.e. one named Kent Home and one named Nancy Home) with the same radius, but change the enter/exit command match the node for that user. Then disable Geofences for the other users. Export your backup to the other users device, then enable Geofences for that user and disable or delete those for other users. Edit: Also not that the OS (iOS/Android) may periodically ask the user if they would like to keep location permissions. So the other user must be aware, and accept always allow location access if prompted.
Kentinada Posted December 14, 2023 Author Posted December 14, 2023 @Javi OK I'm getting closer. So now I have enabled Notifications in UD Mobile, set up a notification for entering and leaving my defined geofence, and added commands to set "Kent" to True when entering and False when leaving. But for my wife, I assume I need to install UD Mobile on her iPhone and then log it into MY portal account and define the same geofence as I have on my iPhone?
Javi Posted December 14, 2023 Posted December 14, 2023 Yes, or create a UD Mobile backup then import onto the other person's device. If this is a new UDM install the backup file can be imported at the bottom of the initial login screen. Import is preferred as it will also add your favorites to the other device. After import you will need to reset the Portal Credentials (Settings Tab > Universal Devices Accounts) if this is the first time import, subsequent imports may retain credentials from previous state due to iOS Keystore. Then either (1) change the Geofence Commands or (2) enable/disable the correct Geofences if you already created the other persons fences on your device. The latter will make it easier if you plan to import favorites on the other person's device at a later date.
Kentinada Posted December 15, 2023 Author Posted December 15, 2023 @Javi I installed UD Mobile on my wife’s iPhone and imported my backup. Now when I open the app on her phone it wants me to login. Am I supposed to login into my account or do I have to create an account for her? Sorry for the detailed questions but this is new territory for me. Thanks!
Javi Posted December 15, 2023 Posted December 15, 2023 That is up to you. If using the same account then login. If using a different account, eisy is in the other account also. Delete the Portal account (trash icon) then go to Systems > Your System and login using the other Portal account
Kentinada Posted December 15, 2023 Author Posted December 15, 2023 @Javi I really not trying to be dense here but... my wife does not have an account. In fact, she'll never use UD Mobile. I am trying to get it set up for the geofence only. So can I log into MY account on her iPhone using UD Mobile and be able to define it as HER phone for the geofence even though I'm logged into my account (the only account I have)? Does that make sense?
Javi Posted December 15, 2023 Posted December 15, 2023 If you login with your account the app will behave just as it does on your device. For Geofencing: If using the same Geofence, go to the Geofence then change the commands so that it updates the correct node. If using different Geofences (i.e. you created one for yourself and one for your wife on your phone with the one for your wife disabled on your phone), then enable/disable the geofences as needed on the other device. Note that enable/disabling Geofences on one device will not change settings on the other device.
Kentinada Posted December 15, 2023 Author Posted December 15, 2023 @Javi OK I'm there! I have my wife's iPhone logged in with my credentials. Then I added Network Resource Notification messages specific for her and set the the Geofence device "Nancy" to on or off appropriately. Now I'll test a simple program to turn some lights on or off when we arrive or leave. Thanks for hanging with me on this! 1
Recommended Posts