I'm using this code to count time. The bad thing in this code below is fact that timer is updated only when switch goes from ON to OFF. --getUptime.lua local frequency = 30 -- set to desired frequency (1,2,3,4,5,6,10,12,15,20,30) -- lower number ==>> more accurate reporting local mySwitch = 'Output5 ...