No need to create a custom action in ProfileMatic, tough that is possible. Just say the conditions you have in mind and I'll add it to the app if I like it. You can use (almost)any condition or sensor in the phone.