   else if (todaysAccumRuntimeSecHeating < todaysAccumRuntimeSecCooling)
   {
     Blynk.virtualWrite(38, "COOL");
+    heatingMode = FALSE;
   }
   else if (todaysAccumRuntimeSecHeating > todaysAccumRuntimeSecCooling)
   {
     Blynk.virtualWrite(38, "HEAT");
+    heatingMode = TRUE;
   }
 }
 

#include <SimpleTimer.h>        // Timer library
#define BLYNK_PRINT Serial      // Turn this on to see basic Blynk activities
//#define BLYNK_DEBUG           // Turn this on to see *everything* Blynk is doing... really fills up serial monitor!
#include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>        // Required for OTA
#include <WiFiUdp.h>            // Required for OTA
#include <ArduinoOTA.h>         // Required for OTA

void vsync1()
{
  Blynk.syncVirtual(V16);    // currentStatus
  Blynk.syncVirtual(V38);    // heatingMode (kind of)
}

BLYNK_WRITE(V110)
