I have a UDT item that has a script tied to it on value change like this:
time = system.date.now()
logger = system.util.getLogger("MyScriptLogger")
if currentValue.value == True and previousValue.value == False:
logger.info("Boolean turned true and script executed")
system.tag.writeBlocking("[.]Cake Waste Start Time" , time)
elif currentValue.value == False and previousValue.value == True:
logger.info("Boolean turned false and script executed")
system.tag.writeBlocking("[.]Cake Waste Stop Time" , time)
its a boolen, I am not seeing the script logger in my logs. Does a script like this work at the UDT level?
Would this trigger work in a transaction group?
My group is setup like this: