 // Saber de dónde viene la orden: LOW = botón, HIGH = mqtt
 int mqtt_control = LOW;
 
+
+// ==========
+// SUBIMOS PERSIANA
+// ==========
 void up() {
   digitalWrite(DOWN_PIN, LOW);
   delay(SECURITY_DELAY);

  #endif
}

void stop_all() {
  // mqtt_client.publish("/DOMUS/OFFICE/PERSIANA", "STOP", true);
  digitalWrite(UP_PIN, LOW);
  digitalWrite(DOWN_PIN, LOW);
}

void up_mqtt() {
  mqtt_control = HIGH;
  up_state = LOW;
  down_state = HIGH;
}

void down_mqtt() {
  mqtt_control = HIGH;
  up_state = HIGH;
  down_state = LOW;
}

void stop_mqtt() {
  stop_all();
  mqtt_control = LOW;

  
}

// ==========
// BAJAMOS PERSIANA
// ==========
void down() {
  digitalWrite(UP_PIN, LOW);
  delay(SECURITY_DELAY);
