Hi,
This one is giving me a headache after hours of attempting to debug and replicate, i just cannot make any progress with this one.
My script:
I have two events, so that when devices with ID's 839 and 823 change the respective sub of the string is launched to update a secondary device with the same value.
Devices are Window Sensors and the other devices are VSTATS.
The office works fine.
But i can't the lounge two work, so have not started on the others yet.
I've attempted to get the Office window to update the lounge VSTAT - Failed
Lounge Window to update the Office VSTAT - Failed.
When i say failed, no erros are displayed but the VSTAT devices just do not update.
I have rebuilt the STATS using the VSTAT config but still no joy.
Is there anything else that could prevent a script from changing a devices value?
This one is giving me a headache after hours of attempting to debug and replicate, i just cannot make any progress with this one.
My script:
Code:
sub Lounge(parm as object) hs.WriteLog("Security", "Lounge Window Change - " & hs.DeviceValue(839)) hs.CAPIControlHandler(hs.CAPIGetSingleControl(250, false, CStr(hs.DeviceValue(839)), false, true)) End Sub sub Office(parm as object) hs.WriteLog("Security", "Office Window Change - " & hs.DeviceValue(823)) hs.CAPIControlHandler(hs.CAPIGetSingleControl(237, false, CStr(hs.DeviceValue(823)), false, true)) End Sub
Devices are Window Sensors and the other devices are VSTATS.
The office works fine.
But i can't the lounge two work, so have not started on the others yet.
I've attempted to get the Office window to update the lounge VSTAT - Failed
Lounge Window to update the Office VSTAT - Failed.
When i say failed, no erros are displayed but the VSTAT devices just do not update.
I have rebuilt the STATS using the VSTAT config but still no joy.
Is there anything else that could prevent a script from changing a devices value?
Comment