Delay times of more than 60 minutes for automations in new V3 app?

I recently migrated to the new app and have a problem with one of my automations. Before I have it set that if it was in away mode for more than 12 hours it would switch to vacation mode (lights would randomize, thermostat would turn down, etc). With the new app the highest delay I can seem to specify is 60 minutes. Am I missing something on how to do this? I currently have is set to be;

If away, home, night and specific person is gone for more than 60 minutes then run scene i’m on vacation.

It used to be if mode was away for more than 12 hours run i’m on vacation, but I can’t figure out how to do that now.

I am sure it’s far more simple than i’m making out to be but I just can’t figure it out. Any help is greatly appreciated.

It is a know issue.

3 Likes

@nayelyz, @erickv

Does the Rules API support hours to do automations like the OP asks?

@Vinlo I know it is a clunky workaround but have a virtual switch be delayed 60 minutes, which triggers an automations that turns on another virtual switch after 60 minutes, and so on. After the needed time is reached, just have the last virtual switch trigger the final action

Or just use webcore :grinning:

2 Likes

You can use webCoRE as a temporary means until the current max of 1 hour delay is resolved in automations

2 Likes

Will that be ever resolved? Now the most important is to add the Samsung Find feature, what has nobody asked for…

If WebCore, then Sharptools.io 's Rule Engine should do the job as well.

4 Likes

I’ll have to stumble through Webcore… seems simple enough, I hope (I’m not that skilled).

I guess it depends on why the restriction is there.

Possibilities include:

  • Someone has decided that no one can possibly need a time delay or offset of over sixty minutes.
  • Someone thinks it looks prettier only going to sixty minutes.
  • Long delays and offsets in some way contribute to something that is bad happening, such as the frequent timer issues we see.
2 Likes

There’s a Wiki and a booming community. IMHO, webCoRE is the answer for most of what I see posted here. It’s just a freaking awesome Rule Engine. Very easy to used once you understand the basic concept.

Hello @Vinlo,
The Rules API is another option, in the time properties such as sleep you can use bigger units like Hour or Day.
The example below describes this workflow:

  1. IF the location mode changes to Away
  2. THEN wait for 1 hour and check IF the location mode is still Away.
  3. IF so, THEN change the location mode to Vacation.
{
   "name":"Change Location mode after x hours",
   "actions":[
      {
         "if":{
            "equals":{
               "left":{
                  "location":{
                     "attribute":"mode"
                  }
               },
               "right":{
                  "string":"away-mode-ID"
               }
            },
            "then":[
               {
                  "sleep":{
                     "duration":{
                        "value":{
                           "integer":1
                        },
                        "unit":"Hour"
                     }
                  }
               },
               {
                  "if":{
                     "equals":{
                        "left":{
                           "location":{
                              "attribute":"mode"
                           }
                        },
                        "right":{
                           "string":"away-mode-ID"
                        }
                     },
                     "then":[
                        {
                           "location":{
                              "mode":"vacation-mode-ID"
                           }
                        }
                     ]
                  }
               }
            ]
         }
      }
   ]
}

This rule needs the location mode IDs, to get those values, take a look at this post.

In the API documentation, you can find more information about the Rules’ syntax. Refer to this post for the instructions to install a rule.


If one of the previous posts answered your question, would you please mark it as solved? If you still have doubts or issues, let me know what’s going on and I can dig in further.

Can we get a statement on why automations are limited to offsets of +/-60 minutes?

4 Likes

I was able to get it working through webcore, although in doing that I somehow screwed something up and am now no longer to see the dashboard “there was a problem loading the dashboard data…” error. I just can’t win today. lol.

I’ve been trying to fix that problem now for a while, to no avail.

edit: I get the error in live logging
“physicalgraph.api.StatusCodeException: Invalid http status code returned: 401 @line 950 (api_get_base_result)”

Maybe I need help from @webCoRE_Minions ?

I have not used Webcore, I’ll take a look at it

@Monique, look at this as well:

Delay times for automations

Whatever is easier for you. But really adding a rule with more than an hour option shouldn’t be that complicated.

Thanks forthe reply and feedback, for now I am approaching the logic in a different way, however it would be great to have this functionality restored.