good morning, I need to create a sensor factory once a week take the maximum value of the previous week and subtract this value to the current. I have a factory sensor which adds the value of drops of 4 interfaces. Once a week, i want this account to 0 to see what increases in a week. But the switches do not allow put these values reset to 0, therefore i pretend that the sensor is set to 0 once a week. The best solution I've found is this:
- 1:Agregacion trafico IN [Drops] ((channel (10479,0) + channel (10480,0) + channel (10481,0) + channel (10482,0)) -357).
Where 357 is the value of last week. There are a better way? Can the sensor itself calculate or get the most value of last week and subtract? Thanks.