#How to configure a wait on an automation?

1 messages · Page 1 of 1 (latest)

civic cairn
#

Hi all, I got some smart plugs that test power draw. I got it for my ebike battery that is recommended ended to unplug after it is done charging.

How do I set up an automation that:

  1. checks for the current
  2. waits a minute
  3. then checks it again.

If the power draw was over, let’s say, 80W in step 1, then in step 3 is less than 80W, we turn off the plug.

I’m not sure how to configure a wait in step 2. Any tips?

golden pecan
civic cairn
#

Because, the power is on, and the power is below 80 right now (already fully charged). It just sits. I think it is looking for it to be above 80 then drop below.

#

Hmm… I guess that is what my initial request would have done lol

golden pecan
#

try with a numeric entity trigger on the power entity

golden pecan
#

plug a hairdryer or something into for a moment to trigger power use 😛

civic cairn
#

Haha

#

In your screenshot, is that an automation or a script?

golden pecan
#

thats a trigger on an automation

civic cairn
#

Interesting. You have the ability to just check the power at any given time. Mine the power “changes”

#

Sorry for the mobile screenshots. Trying to do this all from work via phone vpn :p

golden pecan
#

add a trigger - entity - numeric state

civic cairn
#

Ohhh

#

That’s it