I am not familiar with eWeLink but I guess there is integration with IFTTT. If you get “open” and “closed” events from that sensor in IFTTT then it is super easy. You just need 3 elements in Apilio: a variable, a condition and a logicblock.
Create a boolean variable called door_is_open in Apilio, and update it from iFTTT through 2 applets when the event “Open” and “Closed” arrives to IFTTT.:
- Applet 1: IF [Door sensor is Open] THEN [Update door_is_open to TRUE in Apilio]
- Applet 2: IF [Door sensor is Closed] THEN [Update door_is_open to FALSE in Apilio]
Then create a condition in Apilio called door_open_for_5mins and link it to variable door_is_open. Mark the option “Use as trigger” so that the logicblock will launch upon changes and set 5 mins in the Delay section at the end.
Finally, create a logicblock called notify_if_door_left_open and add that condition. When it evaluates positive, add the actions you want. You can add an action to get a notification through the IFTTT app, an action to get a notification through Vybit app, an action to get a phone call, etc.