   }
 
   if (!strncmp("approved", rest, 8) || !strncmp("energize", rest, 8)) {
-    Log.println("relay energized");
-    green = LED_ON; red = LED_OFF; tock();
     machinestate = ENERGIZED;
-    send("event energized");
-    return;
-  }
+    return;
+  }
+
   if (!strncmp("denied", rest, 6) || !strncmp("unknown", rest, 7)) {
     Log.println("Flash LEDS");
     green = LED_OFF; red = LED_FAST;

      }
      relayenergized = 1;
      break;
    case VACUUM:
      if (millis() - laststatechange > VACUUM_TO) {
        send("event vacuumoff");
        machinestate = ENERGIZED;
      };
      relayenergized = 1; vacuum = 1;
      break;
    case RUNNING:
      red = LED_ON; green = LED_OFF;
      relayenergized = 1; vacuum = 1;
      break;
  };

  digitalWrite(PIN_POWER, relayenergized);
  digitalWrite(PIN_VACUUM, vacuum);

  if (laststate != machinestate) {
#if DEBUG5
    Serial.print("State: ");
    Serial.print(laststate);
    Serial.print(" -->");
    Serial.print(machinestate);
    Serial.print(" O="); Serial.print(overload);
    Serial.print(" 1="); Serial.print(v1);
    Serial.print(" 2="); Serial.print(v2);
    Serial.print(" red="); Serial.print(red);
    Serial.print(" green="); Serial.print(green);
    Serial.print(" P="); Serial.print(relayenergized);
    Serial.print(" V="); Serial.print(vacuum);
    Serial.println();
#endif
    laststate = machinestate;

#error "You will need to increase te MQTT_MAX_PACKET_SIZE size a bit in PubSubClient.h"
#endif

#include "../../../../.passwd.h"

const char* ssid = WIFI_NETWORK;
const char* wifi_password = WIFI_PASSWD;
