 long temp_Mills;
 long pir_Mills;
 int tvIsOnEvent;
-int tvIsOffEvent;
 
 // eeprom status
 int o_pwrSrc;

        break;
      case 0xFF9867: // remote off
        if ( timerStatus == 1 ) {
        } else {
          tvOnTimer();
          temp_Mills = millis();
        }
        timerStatus = ! timerStatus;
        r = !r;
        break;
      case 0x20DF10EF: // tv remote on/off
        if ( tvPowerStatus == 1 ) {
          timerStatus = 0;
        } else {
          timerStatus = 1;
          tvOnTimer();
          temp_Mills = millis();
        }
        tvPowerStatus = ! tvPowerStatus;
        r = !r;

{
  tempCinside = getdalastemp();
  displayTemperature(tempCinside);
  displaytimeleft();
}

// update every 5 mins
