I want to store a history tag only when it turns on just to get the timestamp. I know I could do this with a transaction, but I was hoping to do it using the tag history. Is this possible? I’ve thought of a couple of ways but they add complexity that I don’t think is necessary.
You could use a tag event script to increment a memory integer tag every time this Boolean tag changes and use it for your history.
if not initialChange: if currentValue.value == 1: value = system.tag.read("[.]MemoryTag") value = value + 1 system.tag.write("[.]MemoryTag", value)