Announcement

Collapse
No announcement yet.

Help with script to get HAI plugin temp

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Help with script to get HAI plugin temp

    This is so simple its embarrassing. I want to create a variable called "tempnow" that will get the current outside temperature from my HAI system's in/out temp sensor connected to zone 15.

    I've searched everywhere (forums, help file) and the best I can find is:

    tempnow = hs.plugin("HAI_System"). HAI_WhatIsTemp(15)

    It can get unusually cold in New England but not in August and not at -99 degrees which this script reports.

    How can I get "tempnow" to reflect what is shown in my HAI plugin, my MLHS plugin and on my console, ie. the right temperature?

    Thanks,

    #2
    Found it in a newer post elsewhere. FYI:

    tempnow = hs.plugin("HAI_System").GetAuxZoneIndex(15)
    hs.speak hs.plugin("HAI_System").GetAuxTemp_Temp(tempnow)

    Comment

    Working...
    X