 
   time_ackpayload.timestamp = 0;
   time_reqpayload.timestamp = 0;
+
+  lightoffhour = 6;
+  lightoffmin  = 0;
 
   getResetInfo = "hello from switch ";
   getResetInfo += ESP.getResetInfo().substring(0, 50);

    syslogPayload += receivedpayload;
    sendUdpSyslog(syslogPayload);
  }

  //if ( receivedtopic == "esp8266/cmd/light" ) {
  if ( receivedtopic == substopic[0] ) {

    unsigned long now = millis();

    if ( now < 15000 ) {
      if ( receivedpayload == "{\"LIGHT\":1}") {
        relaystatus = HIGH ;
      }
      if ( receivedpayload == "{\"LIGHT\":0}") {
        relaystatus = LOW ;
      }
      relayIsReady = LOW;
    } else if ((now - lastRelayActionmillis) >= BETWEEN_RELAY_ACTIVE ) {
      if ( receivedpayload == "{\"LIGHT\":1}") {
        relaystatus = HIGH ;
      }
      if ( receivedpayload == "{\"LIGHT\":0}") {
        relaystatus = LOW ;
      }
    }

    if (INFO_PRINT) {
      syslogPayload = " => relaystatus => ";
      syslogPayload += relaystatus;
      sendUdpSyslog(syslogPayload);
    }
  }

} rtc_relaystatus;

// mqtt
char* topic         = "esp8266/arduino/s02";
char* rslttopic     = "esp8266/cmd/light/rlst";
char* hellotopic    = "HELLO";
char* radiotopic    = "radio/test";
char* radiofault    = "radio/test/fault";
char* willTopic     = "clients/relay";
char* willMessage   = "0";
char* topicAverage  = "esp8266/arduino/s06";
char* lowpower      = "lowpower";
// subscribe
//
char subtopic_0[]   = "esp8266/cmd/light";   // light command
char subtopic_1[]   = "esp8266/cmd/timer1";
char* substopic[2] = { subtopic_0, subtopic_1 } ;
//
unsigned int localPort = 12390;
const int timeZone = 9;
