tenholde This is far above my current knowledge of scripting, so it may just be me, somehow.
I wrote a fairly long script before I discovered that devices must be controlled with CAPI. So, entering the rewrite, I interrogated tenScriptAid (1.41) for the following code and made a test script of the following:
Sub Main
Dim cc as HomeSeerAPI.CAPI.CAPIControl = hs.CAPIGetSingleControl(634, True, "(value) F", False, False)
cc.ControlValue = 55
Dim cr as HomeSeerAPI.CAPI.CAPIControlResponse = hs.CAPIControlHandler(cc)
End Sub
This actually works, but throws the following error in HS4:
11/27/2021 9:33:10 AM
HomeSeer
Error 1
Running script ManCaveHvacTestScript.vb :Parameter count mismatch.
Can anybody see a fix?
I wrote a fairly long script before I discovered that devices must be controlled with CAPI. So, entering the rewrite, I interrogated tenScriptAid (1.41) for the following code and made a test script of the following:
Sub Main
Dim cc as HomeSeerAPI.CAPI.CAPIControl = hs.CAPIGetSingleControl(634, True, "(value) F", False, False)
cc.ControlValue = 55
Dim cr as HomeSeerAPI.CAPI.CAPIControlResponse = hs.CAPIControlHandler(cc)
End Sub
This actually works, but throws the following error in HS4:
11/27/2021 9:33:10 AM
HomeSeer
Error 1
Running script ManCaveHvacTestScript.vb :Parameter count mismatch.
Can anybody see a fix?
Comment