Sunday at 10:35 AM3 days OK, I was trying to figure out how to tell if the last device update for a certain device was older than a certain amount of time. I know I could accomplish something like that by having each event start a program that waited some amount of time but I got to thinking, why can't I just check the device last update and compare it to either the system time or for example a variable unix timestamp.I don't think this works even though you can create an if statement in a program that looks like it should work:LastUpdate - [ID 00AF][Parent 0010]If'YoLink / Motion Crossroad' Last device update < '$On_Minutes Unix Timestamp'Any ideas? I want for example to run a program at 8 am that will tell me if a device has not had an update in the last 24 hours. Edited Sunday at 10:36 AM3 days by Andy P
Sunday at 01:28 PM3 days UD Mobile has where you can see the history of devices so you could look in there but I don't know if it is available to use in programs yet. I hope it will be coming to eisy ui eventually and that might open thigs up more in the future.
Sunday at 05:30 PM3 days If it is Yolink specific - the devices have a last update time (that gets updated when yolink send new data - it is updated even if the value does not change) - you can compare that to the system unix time (under system parameters) - both represents seconds after jan 1st 1980 e.g.if system unix time - last update > xxxx secondsyou may need to create a variable first (containing the difference) and then run a program that tests for the difference, but I am sure it can be done multiple ways Edited Sunday at 11:51 PM3 days by Panda88
Create an account or sign in to comment