jca001 Posted March 12, 2019 Posted March 12, 2019 You can see the last time a variable was changed, but you cannot make any test about it in a program. You can test the "Last Run Time" of a program and programs update variables. So you can use this most of the time. But because a variable can be changed via the REST Interface means a Program may not ever make a change to the variable. I know when a State Variable is changed it can trigger a program even if changed via the REST Interface. An use case I can think of is a Heart Beat variable that is updated from somewhere else via the REST Interface doing a Tick/Tock (each minute change it from 0 to 1 and then from 1 to 0) so using a State Variable would cause a trigger each minute but what would it really indicate. But if an ISY Program checked if the "Last Changed Time + 5 minute" would cause the program to run and do something because the variable had not been changed, the Heart Beat did not happen, send an alert, run some other program, etc.
Hurting2Ride Posted March 20, 2019 Posted March 20, 2019 There's many use cases for this. I find I'm running in to them more often now when trying to make the most of portal integrations or node servers. I'm actually quite surprised that much more of the metadata associated with variables & programs isn't available for use, or even more confusing is that it may be available to be set but not read. (i.e. is the program enabled? is it run on startup? Last time run? or what's a variable'sID #? Precision? Last time changed?).
larryllix Posted March 20, 2019 Posted March 20, 2019 2 hours ago, Hurting2Ride said: There's many use cases for this. I find I'm running in to them more often now when trying to make the most of portal integrations or node servers. I'm actually quite surprised that much more of the metadata associated with variables & programs isn't available for use, or even more confusing is that it may be available to be set but not read. (i.e. is the program enabled? is it run on startup? Last time run? or what's a variable'sID #? Precision? Last time changed?). I have several programs that record the time when I operate devices, namely my intelligent setback programs for my ecobee stats. I get a text message each morning I am home containing the time for setbacks and recoveries each day, along with run times for the HVAC, fan, HRV and temps and humidities.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.