I have a script which creates a Homeseer Device that has buttons assigned to the execution of a script. In other words, if you hit the "On" button, it executes a script; you hit the "Off" button, it executes the script, etc.
There are multiple devices that execute the same script, so you could hit the "On" button on multiple devices in quick succession.
Everything works well EXCEPT if I hit the buttons too quickly, the HS event log throws an error saying:
Since this event is triggered from a button press and not the event screen, there is no option to uncheck the "Only allow a single instance to run at a time".
I can't find any Device Creation properties that would allow this to be set.
Does anybody have a way to do this?
Here is the code snippet for creation of the device:
Thanks,
Scott
There are multiple devices that execute the same script, so you could hit the "On" button on multiple devices in quick succession.
Everything works well EXCEPT if I hit the buttons too quickly, the HS event log throws an error saying:
Not running script since its already running: WPSControl.vb Single instance option enabled in event properties
I can't find any Device Creation properties that would allow this to be set.
Does anybody have a way to do this?
Here is the code snippet for creation of the device:
Code:
DT.Device_API = DeviceTypeInfo.eDeviceAPI.Script 'Sets DeviceType to Script DT.Device_Type = 3 dv.ScriptName(hs) = "WPSControl.vb" dv.ScriptFunc(hs) = DeviceFunction dv.Status_Support(hs) = True dv.Can_Dim(hs) = False dv.MISC_Set(hs, Enums.dvMISC.SHOW_VALUES)
Scott
Comment