I've been searching for a way to create an alarm clock functionality in Homeseer. Someone in another forum put me onto a script that was written for HS3 that does what I need. When I try to use it in HS4 it doesn't work. Script is attached.
When I run the script to create the device, the error in my log is:
2021-01-29 9:58:17 AM HomeSeer Error 3 Running script TimeDevice.vb :Exception has been thrown by the target of an invocation.->Does entry point CreateDevice exist in script? at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Obj ect obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Scheduler.clsRunVBNetScript.ExecuteScript()
It sets up a device, but it doesn't quite look like my other devices
There is no status or last changed info and when I go into the device, those areas are blank, yet the buttons were created (as you can see in the picture just above)
If I attempt to hit one of the buttons to test whether it changes the time of the event, I get a very similar error message:
2021-01-29 9:57:59 AM HomeSeer Error 3 Running script TimeDevice.vb :Exception has been thrown by the target of an invocation.->Does entry point ButtonPress exist in script? at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Obj ect obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Scheduler.clsRunVBNetScript.ExecuteScript()
I've attempted to use tenscripting4 to try and identify the issue, but have not had any success.
Does anyone have insight as to what might be going on that a script which supposedly works in HS3 isn't working in HS4
Any advice on how to get this working?
When I run the script to create the device, the error in my log is:
2021-01-29 9:58:17 AM HomeSeer Error 3 Running script TimeDevice.vb :Exception has been thrown by the target of an invocation.->Does entry point CreateDevice exist in script? at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Obj ect obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Scheduler.clsRunVBNetScript.ExecuteScript()
It sets up a device, but it doesn't quite look like my other devices
There is no status or last changed info and when I go into the device, those areas are blank, yet the buttons were created (as you can see in the picture just above)
If I attempt to hit one of the buttons to test whether it changes the time of the event, I get a very similar error message:
2021-01-29 9:57:59 AM HomeSeer Error 3 Running script TimeDevice.vb :Exception has been thrown by the target of an invocation.->Does entry point ButtonPress exist in script? at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Obj ect obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Scheduler.clsRunVBNetScript.ExecuteScript()
I've attempted to use tenscripting4 to try and identify the issue, but have not had any success.
Does anyone have insight as to what might be going on that a script which supposedly works in HS3 isn't working in HS4
Any advice on how to get this working?
Comment