     delay(10);
     WiFi.mode(WIFI_STA);
     WiFi.begin(WIFI_SSID, WIFI_PASSWORD);
+    WiFi.hostname("esp-irbedroom");
 
     int Attempt = 0;
     while (WiFi.status() != WL_CONNECTED)

  {
    if (root.containsKey("AC"))
    {
      ir_data.ac_mode = root["AC"];
      if (bpresence)
      {
        ir_data.haveData = true;
      }
    }
  }

     if (ir_data.ac_temp != root["ac_temp"])
     {
        ir_data.ac_temp = root["ac_temp"];

        /*
            if (root.containsKey("ac_flow"))
            {
