Delay a device command


I’m trying to figure out if there is a way to delay a command sent to be executed on a device with the restful api? Specifically I’m trying to have a switch turn off after a set number of seconds/minutes.

I don’t think there is a way built into the API itself. That kind of logic is handled by either the Rules API or Routines.

Thank you, I figured out how to do it by creating a rule and then executing that rule!

1 Like