Hi,
I am currently a Vera user thinking of moving to Indigo. I have a Lua script on Vera that simulates occupancy and would like some direction as to how it can be developed within Indigp, if indeed it can. It works as follows :
A virtual device is defined in Vera that has a GUI which shows a button. The button sets the device in 'Occupied' or 'Unoccupied' mode.
If the switch is set to Unoccupied, the device runs a script which reads an xml file in which sequences of activities are declared (and timings) The script then calls the vera api with instructions e.g. turn on bedroom light, wait 10 seconds, turn on bathroom light, wait 2 minutes, turn off bathroom light, wait 10 seconds, turn off bedroom light. Once the script has completed it's activities, it re-schedules itself to run in, say, 5 minutes where it will check the xml again to see if any activities should be actioned, and so on.
If the button is changed to Occupied, the script terminates if running, and if it is scheduled for a later time, the scheduled item is deleted.
Is this possible within the Indigo environment? If so, can you direct me to documentation that will get me started with a port to Indigo. I don't need any help for the Python side of the process but the Indigo side - creating a virtual device that has a gui, activating a script from within the device, scheduling the execution of a script based on time interval.
Thanks for any help,