Can anyone spare a few minutes correcting this. It's a simple script which needs altering for CAPI. I'm getting the following error when a Switch Binary gets switched on (or Off) and I think it's because the old hs.IsOn() & hs.IsOff() does not work and needs replacing with CAPI.
Mar-24 13:56:15 Z-Wave Error Failed sending Z-Wave command to device: Z-Wave Node 68 Z-Wave Interface Sigma Switch Binary Node 68 Child Mar-24 13:56:15 Device Control Device: Z-Wave Node 68 Z-Wave Interface Sigma Switch Binary Node 68 Child to On (255) by/from: CAPI Control Handler
Here's how it is at the moment...
Thanks, Neil
Select case call_for_heat
case = true
if hs.IsOff(56) then
' switch boiler ON
objCAPIControl = hs.CAPIGetSingleControlByUse(56,ePairControlUse._On)
end if
case = false
if hs.IsOn(56) then
' switch boiler OFF
objCAPIControl = hs.CAPIGetSingleControlByUse(56,ePairControlUse._Off)
end if
End Select
If objCAPIControl IsNot Nothing Then
hs.CAPIControlHandler(objCAPIControl)
End If
Mar-24 13:56:15 Z-Wave Error Failed sending Z-Wave command to device: Z-Wave Node 68 Z-Wave Interface Sigma Switch Binary Node 68 Child Mar-24 13:56:15 Device Control Device: Z-Wave Node 68 Z-Wave Interface Sigma Switch Binary Node 68 Child to On (255) by/from: CAPI Control Handler
Here's how it is at the moment...
Thanks, Neil
Select case call_for_heat
case = true
if hs.IsOff(56) then
' switch boiler ON
objCAPIControl = hs.CAPIGetSingleControlByUse(56,ePairControlUse._On)
end if
case = false
if hs.IsOn(56) then
' switch boiler OFF
objCAPIControl = hs.CAPIGetSingleControlByUse(56,ePairControlUse._Off)
end if
End Select
If objCAPIControl IsNot Nothing Then
hs.CAPIControlHandler(objCAPIControl)
End If
Comment