   root["devid"] = g_devid;
 
   JsonArray& st = root.createNestedArray("status");
-  
+
+  st.add(g_on_off);
+  st.add(g_mode);
+  st.add(g_fan);
+  st.add(g_set_temp);
+  st.add(g_room_temp);
+
   g_body_len = root.printTo((char *)g_buf + HEADER_LEN, BUF_LEN - HEADER_LEN);
 
   send_msg();


  if (g_need_report) {
    print_status();
//    report_status();
    g_need_report = 0;
  }


  DDRB &= B11111110;

  pinMode(PIN_ON_OFF, OUTPUT);
  digitalWrite(PIN_ON_OFF, HIGH);
  pinMode(PIN_MODE, OUTPUT);
  digitalWrite(PIN_MODE, HIGH);
  pinMode(PIN_FAN, OUTPUT);
  digitalWrite(PIN_FAN, HIGH);
  pinMode(PIN_INC, OUTPUT);
  digitalWrite(PIN_INC, HIGH);
  pinMode(PIN_DEC, OUTPUT);
  digitalWrite(PIN_DEC, HIGH);
}

void loop() {
