ryan.mercer Posted January 28, 2023 Posted January 28, 2023 Is there a way in UD Mobile app to show the last time a motion sensor detected motion or device was used? Either a timestamp or relative time reference? I had an alarm system at my previous house that would allow me to see when the last time a device or motion sensor was triggered and that was very helpful to view when I was away from home. It was a nice simple dashboard to easily see in a glance. Thanks!
Jim P Posted January 28, 2023 Posted January 28, 2023 I use variables to track when a motion sensor is activated and or turns off... These are not complete, but should point you in the right direction. Also the log file will track device operations as well. If YourMotionDevice is on Then Variable = Minutes since start of day _____________________________________________________ AllMotionSetCalcTime - [ID 0039][Parent 0032] If - No Conditions - (To add one, press 'Schedule' or 'Condition') Then $iAllMotionOffCurrentTime = [Minutes since start of day] Else - No Actions - (To add one, press 'Action') Sets iAllMotionOffCalcTime to minutes since start of day. Used to determine how long since motion detectors have been All Off __________________________________________________________________---- MotionOn - [ID 0035][Parent 0032] If 'LivingRoomMotion.1 Motion' is switched On Or 'GarageMotion Motion Sensor' Status is On Then $sMotionOn = 1 $sMotionOff = 0 $iAllMTime = 0 $iVacant = 0 Else - No Actions - (To add one, press 'Action') Warning: Unrecognized Condition (program may not run) <control OP="IS" NODE="ZW009_155" ID="DOF"/>
Javi Posted January 28, 2023 Posted January 28, 2023 2 hours ago, ryan.mercer said: Is there a way in UD Mobile app to show the last time a motion sensor detected motion or device was used? Either a timestamp or relative time reference? I had an alarm system at my previous house that would allow me to see when the last time a device or motion sensor was triggered and that was very helpful to view when I was away from home. It was a nice simple dashboard to easily see in a glance. Thanks! Not directly, but possible with a program as a favorite. Programs show last run time, so if the sensor is used as a trigger, then the program last run time will be the last time the sensor was triggered. In UD Mobile create a favorite with the program and change the display status to Last Run Time. Initial Program status is disabled by default, so this must be enabled in system settings (Settings-Tab > System > System-Name > Program and Variable Settings.
Recommended Posts