I have recently moved over from Samsung Smartthings and am finally getting on well with PLEG as the issues i had originally with settings not taking has been resolved. and i have been moving everything over in earnest with good results. however i am stuck now on how to do the logic of how to do the following. i have energy monitoring switches and what i did originally on smartthings was treat the washing machine or Tumble dryer as on when the energy usage exceeds 5W for over 3 minutes and then alert only when the energy use has dropped below 5W for 3 minutes.
now i did this in Smartthings by using a state variable and setting it as True or False if the washing machine was deemed to be running or not…does PLEG have the same ability? can you give me an example on how to achieve the above? thanks