Welcome!
There are a couple of different ways that this can be done. They all have multiple steps, and Iām afraid Iām not feeling too well tonight so somebody else will have to write out the details for you. But you can certainly end up with the result that you want. ![:sunglasses: :sunglasses:](https://emoji.discourse-cdn.com/google/sunglasses.png?v=5)
There is a potential problem, though, which is how much lag you get from IFTTT. This just varies from one personās house to another. At my house itās a pretty consistent eight seconds, which would be a little long for a porch light application, but might be acceptable. But there are people who report lags of this much as eight or nine minutes, and IFT TT themselves says it can be up to 15 ( minutes, not seconds). So you may just have to try it at your house to see if the lag is acceptable.
As far as limiting when it runs, thatās super easy. Youāll go ahead and let the IFTTT recipe run, youāll just catch it on the SmartThings side and not turn the light on if itās outside of your prescribed boundaries. Again, lots of different ways to do that, including just setting a time range or a mode.
Donāt worry if you donāt understand anything in the next paragraphs, Iām just putting it here in case anybody else wants to write up the details. SmartThings is a very powerful system, but not very intuitive so the methods can get pretty complicated. There are probably other ways to do this as well, this is just what occurred to me first. ![:bulb: :bulb:](https://emoji.discourse-cdn.com/google/bulb.png?v=5)
For anybody else who wants to give the detailed answer, the two obvious methods are using core or using a daisy chain where The Ring button turns on a virtual switch (IFTTT recipe) which has a power allowance limit (smart lighting), turns itself off, and the real light subscribes to the off event (using smart lighting would be fine). So for the second method you need a virtual switch with a power allowance off smart lighting automation and the second smart lighting automation to have the real switch follow the virtual switch. And the IFTTT recipe.
If you want to vary how long the real light stays on for, youāre going to need a second virtual switch and two more smart lighting automations. So the first virtual switch is the timer for the delay before the light comes on, and the second virtual switch is the timer for the delay before the light goes off again. So at that point maybe Core is easier. ![:wink: :wink:](https://emoji.discourse-cdn.com/google/wink.png?v=5)
Alsoā¦ You can control it with mode, but you probably wonāt need to, there is a Time of day restriction option in smart lighting even if you use the power allowance feature. ![:sunglasses: :sunglasses:](https://emoji.discourse-cdn.com/google/sunglasses.png?v=5)
If you need it, thereās a virtual timer how to in the community ā created wiki
http://thingsthataresmart.wiki/index.php?title=How_to_create_a_virtual_timer_for_a_light