If I do this:
iTemp=hs.plugin("HAI_System").GetAuxZoneIndex(8)
msgbox hs.plugin("HAI_System").GetAuxTemp_Temp(iTemp)
Or this:
iTemp=hs.plugin("HAI_System").GetAuxZoneIndex("8")
msgbox hs.plugin("HAI_System").GetAuxTemp_Temp(iTemp)
it works fine but when I try:
SensorNum = 8
iTemp=hs.plugin("HAI_System").GetAuxZoneIndex(SensorNum)
msgbox hs.plugin("HAI_System").GetAuxTemp_Temp(iTemp)
or this
SensorNum = "8"
iTemp=hs.plugin("HAI_System").GetAuxZoneIndex(SensorNum)
msgbox hs.plugin("HAI_System").GetAuxTemp_Temp(iTemp)
I get a "Type Mismatch" error on the [iTemp=hs.plugin("HAI_System").GetAuxZoneIndex(iSensorNum)] line.
What am i doing wrong?
iTemp=hs.plugin("HAI_System").GetAuxZoneIndex(8)
msgbox hs.plugin("HAI_System").GetAuxTemp_Temp(iTemp)
Or this:
iTemp=hs.plugin("HAI_System").GetAuxZoneIndex("8")
msgbox hs.plugin("HAI_System").GetAuxTemp_Temp(iTemp)
it works fine but when I try:
SensorNum = 8
iTemp=hs.plugin("HAI_System").GetAuxZoneIndex(SensorNum)
msgbox hs.plugin("HAI_System").GetAuxTemp_Temp(iTemp)
or this
SensorNum = "8"
iTemp=hs.plugin("HAI_System").GetAuxZoneIndex(SensorNum)
msgbox hs.plugin("HAI_System").GetAuxTemp_Temp(iTemp)
I get a "Type Mismatch" error on the [iTemp=hs.plugin("HAI_System").GetAuxZoneIndex(iSensorNum)] line.
What am i doing wrong?
Comment