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
IF
Device watts stays below x amount for x duration

THEN
Switch on v switch

Seems simple enough but not with the current automation creator

2 Likes

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
IF
Power sense plug power above 3 watts
THEN
turn on virtual switch

IF
Power sense plug power below 3 watts
THEN
turn off virtual switch

Virtual open close
IF
Virtual switch off
Duration period (user defined)
THEN
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