HG currently has the following values:
Value - current parameter value
LastValue - last different parameter value
UpdateTime - time the current parameter value was set
LastUpdateTime - time the last different parameter value was set
I have the need to know the last actual value and time it was set. It seems to me that the best way to do this would be to add a new value that could be accessed directly from HG. I have written some code to work around this and it works fine, but it would certainly be a lot cleaner if a new value could be added to HG that would provide the needed information.
If I look at the parameter names, It appears that intuitively LastValue should hold the last value sent (seen by HG) whether that value was the same or different. If I was looking to find the last different value, I would think the call should be to something like LastDifferentValue or LastDiffValue. LastValue should be used for the last time the parameter was set even if that value was the same.
This is my interpretation, so maybe I'm on an island here. I know how to change the code in HG to do this, but every update to HG will revert any change I make. The primary issue I see with this change is that any location where LastValue is used would potentially need to be changed to LastDifferentValue.
Alternately, perhaps there could be a new parameter to hold the last event (LastEventValue, LastEventUpdateTime). In this way, no existing code would need altering.