Thanks for the help given here - it’s a great community!
With the help from here, I have completed the app to my requirements now and here is a link should anyone else be remotely interested in this functionality - it’s very simple (not a bad thing sometimes with code!) and does the job well.
/**
* Trigger Motion Sensor from Virtual Switch
*
* Copyright 2015 James Houghton
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License
* for the specific language governing permissions and limitations under the License.
*
* Description
* -----------
* This simple SmartApp is designed to take an activation of a (Simulated/Virtual) Switch (for example, triggered by IFTTT) and create
* an event similar to that of a motion sensor. My first very quick and dirty app (a SmartThings version of Hello World - without
* the actual message!) which could be used in the "use case" below.
*
This file has been truncated. show original