Routine that triggers at a certain time

Hi all

I am hoping to receive some pointers on a routine I would like to setup.

We have a night tariff on electricity that is cheaper than the one during day time.
So I want to make sure that my devices are only charged during the night and ON DEMAND, so something like this:

IF Button1 is pressed, THEN turn on Outlet1 at 10pm
IF Button 1 is doublepressed, THEN turn on Outlet1 immediately
IF Button 1 is longpressed, THEN cancel all.
When Time is 5am, turn off Outlet1

Any way to implement this in the app?

Thanks!

Create a virtual switch, either in the app Labs or in the advanced website, named for instance “Cheap Night” and use it as condition. If it’s on it means that night is cheaper and automations should run, if it’s off don’t run them.

A single click in button 1 would turn on the virtual switch to signal that the night is cheaper. And then an automation “at 10pm if cheap night then turn on outlet1”.

A long press in button 1 would turn off the virtual switch (and maybe the outlet too, I don’t know what you mean by cancel all). You may also turn the virtual switch off at 5am so its state is off the next day until you turn it on again.

The other routines don’t depend on conditions so I guess you have no problems with those.

2 Likes