Exemple #1
0
bool HVAC::stateChange()
{
  static bool bFan = false;
  static uint8_t lastMode = 0;
  static uint8_t nState = 0;

  if(getMode() != lastMode || getState() != nState || bFan != getFanRunning())   // erase prev highlight
  {
    lastMode = getMode();
    nState = getState();
    bFan = getFanRunning();
    return true;
  }
  return false;
}
Exemple #2
0
bool HVAC::stateChange()
{
  static bool bFan = false;
  static uint8_t lastMode = 0;
  static uint8_t nState = 0;

  if(getMode() != lastMode || getState() != nState || bFan != getFanRunning() || m_bRemoteDisconnect)
  {
    lastMode = getMode();
    nState = getState();
    bFan = getFanRunning();
    return true;
  }
  return false;
}
Exemple #3
0
// Constant changing values
String HVAC::getPushData()
{
  String s = "{";
  s += "\"r\":" ;  s += m_bRunning;
  s += ",\"fr\":";  s += getFanRunning(),
  s += ",\"s\":" ;  s += getState();
  s += ",\"it\":";  s += m_inTemp;
  s += ",\"rh\":";  s += m_rh;
  s += ",\"lt\":";  s += m_localTemp; // always local
  s += ",\"lh\":";  s += m_localRh;
  s += ",\"tt\":";  s += m_targetTemp;
  s += ",\"fm\":";  s += m_EE.filterMinutes;
  s += ",\"ot\":";  s += m_outTemp;
  s += ",\"ol\":";  s += m_outMin[0];
  s += ",\"oh\":";  s += m_outMax[0];
  s += ",\"ct\":";  s += m_cycleTimer;
  s += ",\"ft\":";  s += m_fanOnTimer;
  s += ",\"rt\":";  s += m_runTotal;
  s += ",\"h\":";  s += m_bHumidRunning;
  s += ",\"aw\":";  s += m_bAway;
  if(m_bRemoteDisconnect)
  {
    s += ",\"rmt\":0";
    m_bRemoteDisconnect = false;
    m_bLocalTempDisplay = true;
  }
  s += "}";
  return s;
}
Exemple #4
0
// Remote sensor values
String HVAC::getPushData()
{
  String s = "{";
  s += "\"t\":";  s += now() - ((ee.tz+m_DST) * 3600);
  s += ",\"r\":" ;  s += m_bRunning;
  s += ",\"fr\":";  s += getFanRunning();
  s += ",\"it\":";  s += m_inTemp;
  s += ",\"tempi\":"; s += m_localTemp;
  s += ",\"rhi\":"; s += m_localRh;
  s += ",\"ce\":\""; s += m_fCostE;  s += "\"";
  s += ",\"cg\":\"";  s += m_fCostG;  s += "\"";
  s += ",\"ct\":";  s += m_cycleTimer;
  s += ",\"rmt\":"; s += m_bRemoteStream;
  s += "}";
  return s;
}