Jump to content

Is it cold?


Mike Ippolito

Recommended Posts

Posted

Will this program properly trigger the state of the variable when the thermostat is between 50 and 64? Is this the best way to do it?

 

If
       From    12:00:01AM
       To      11:59:00PM (same day)
   And (
            Status  'Thermostats / Third Floor Thermostat' is 50° (Temperature )
         Or Status  'Thermostats / Third Floor Thermostat' is 51° (Temperature )
         Or Status  'Thermostats / Third Floor Thermostat' is 52° (Temperature )
         Or Status  'Thermostats / Third Floor Thermostat' is 53° (Temperature )
         Or Status  'Thermostats / Third Floor Thermostat' is 54° (Temperature )
         Or Status  'Thermostats / Third Floor Thermostat' is 55° (Temperature )
         Or Status  'Thermostats / Third Floor Thermostat' is 56° (Temperature )
         Or Status  'Thermostats / Third Floor Thermostat' is 57° (Temperature )
         Or Status  'Thermostats / Third Floor Thermostat' is 58° (Temperature )
         Or Status  'Thermostats / Third Floor Thermostat' is 59° (Temperature )
         Or Status  'Thermostats / Third Floor Thermostat' is 60° (Temperature )
         Or Status  'Thermostats / Third Floor Thermostat' is 61° (Temperature )
         Or Status  'Thermostats / Third Floor Thermostat' is 62° (Temperature )
         Or Status  'Thermostats / Third Floor Thermostat' is 63° (Temperature )
         Or Status  'Thermostats / Third Floor Thermostat' is 64° (Temperature )
       )
   And (
            $sMonth < 5
         Or $sMonth > 9
       )

Then
       $sCold.on.3rd.Floor  = 1

Else
       Wait  10 minutes 
       Run Program 'Cold.on.3rd.Floor' (If)

Posted

I expect that this program will set the "cold on third floor" variable, if the month variables are within range and temperature is between 50 and 64, inclusive.

 

At midnight, it will execute the "else" path every time, regardless of other conditions. Of coure, the wait period will hold any real action off until 1201.

Posted

The temperature range can be done with

 

If

Status '2441TH - Main' >= 50° (Temperature)

And Status '2441TH - Main' <= 64° (Temperature)

Guest
This topic is now closed to further replies.

  • Recently Browsing

    • No registered users viewing this page.
  • Who's Online (See full list)

  • Forum Statistics

    • Total Topics
      37k
    • Total Posts
      371.5k
×
×
  • Create New...