Help to trigger v switch after power off duration

This damn rules Api in the app has me pulling out my hair at times

How do I create an automation that opens a virtual sensor but is based on watts staying below set amount for x time duration?

I’m looking to
Device watts stays below x amount for x duration

Switch on v switch

Seems simple enough but not with the current automation creator


The outline for this automation was to create an alarm in Amazon’s Echo to alert us about a freezer getting accidently switched off, kind off seemed like an easy automation to begin with until I tried

At time of writing I cannot see a way to set a duration period when creating an automation with power wattage included

There may be another way to do this but this is what I had to do to setup a simple automation based on watts used for a duration

Power sense plug attached to freezer
1 X virtual switch
1 x virtual open close sensor

Virtual switch
Power sense plug power above 3 watts
turn on virtual switch

Power sense plug power below 3 watts
turn off virtual switch

Virtual open close
Virtual switch off
Duration period (user defined)
Turn on open close sensor

The virtual open close sensor can be seen in Echo and from there you can then set up a routine in Echo to suit

1 Like