Turn Switch Based on Time and Energy Requirements

Hi!

I was just curious if anyone had an idea to turn off a switch (Aeon Smart Switch) based on two triggers. I have a 3D printer and I like to run it overnight. I usually have a scene run that turns the printer off at a certain time, which is scary because you’re never fully sure whether the print will be done by that time. What I am looking for is the ability to switch off the printer if it has fallen idle for 15 minutes or so.

The smart switch says the printer uses:
~180W while heating up both the bed and the extruder
~49W while printing (extruder and bed up to temperature)
~12W when idle (bed and extruder turned off, no motion)

I set up a test scene that says if the printer falls under 15W, turn off. This works great but some buffer time in there would be nice. It usually takes me about 10 minutes to set the printer up and get a print going, so if I could tell it to shut off when the energy usage is less than 15W AND it has been 15 minutes I would be super happy.

Any assistance is appreciated, thank you!

Look at the [url=http://apps.mios.com/plugin.php?id=3066]Program Logic Event Generator/url. It allows you to use multiple ANDed conditions to trigger an action. It can easily handle a condition like (Wattage less than 15) For more than 15 minutes.

The conditions would look like:

IdleWatts - Watts < 15 IdleWatts AND (IdleWatts; NOW > 15:00)

Thanks Z-Waver!

I have PLEG installed and set up my inputs as IdleWatts (trigger, whenever the printer falls below 15W reported), Watts (device property, current printer watts). I am having trouble understanding why I need the “IdleWatts - Watts < 15” if my IdleWatts trigger is already specifying that the “energy usage falls below 15W”. The “IdleWatts - Watts < 15” would always be true I believe as it would be negative when the printer was running, and around ‘0’ when it was not running.

Reading through the PLEG beginner’s guide, the “IdleWatts AND (IdleWatts; NOW > 15:00)” makes sense and reads as my condition (PrinterOff) will become true if IdleWatts remains true for 15 minutes.

Also, should I check the “repeats” box for this condition?

Thanks!

Sorry for the confusion. The minus sign was meant as a separator.

Condition Name Condition Expression

IdleWatts Watts < 15
PrinterOff IdleWatts AND (IdleWatts; NOW > 15:00)

The repeats checkbox is not required for this.