Adding logic to Smart Actions
I've installed a few TP-Link swithces in a house we are renting during construction of our new house to determine if TP-Link would be a good sytem for our new house. Works great so far (including use with Alexa) however, I find the scheduling options pretty limiting. I just replaced my wireless router with the SR20 Smart Router hoping to add more functionality but since there is no logic component, there is very little you can do with motion sensors and door sensors. For example, I'd like to use a motion detector to act as an automated night light to turn on halway lights and possibly a few room lights when someone gets up in the middle of the night. The night light activity should only occur during a certain time frame such as 10 pm to 6 am. Or only when the room is dark (using UV input from the Fibaro FGMS-001 ZW5 Motion Sensor). Is it possible to add logic to "Smart Action" to limit actions to only occur over a given time frame or when nother condition exists such as the Fibaro Motion Sensor detecting a defined level of darkness?
I played with the night light concept in our rental house yesterday. I put the TP-Link motion sensor in the hall and used Smart Action to turn on a kitchen light when it detects motion and then used the timer to turn off the kitchen light after 10 minutes. Works great except this action overides the kitchen light being on during the day. So if someone walks down the hallway during the day, the timer kicks in and turns off the kitchen light 10 minutes later.
I searched through IFTTT for some kind of motion based logic but couldn't find a useful action there either. In fact, the IFTTT apps are very specific and don't seem to allow any customization.
Thanks