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

void mqtt_callback(char* topic, byte* payload_theirs, unsigned int length) {
  char payload[MAX_MSG];
  memcpy(payload, payload_theirs, length);

  Debug.print("["); Log.print(topic); Log.print("] ");
  Debug.print((char *)payload);


// Enduser visible Timeouts
//
const unsigned int   VACUUM_TO      = (5 * 1000); // 5 seconds extra vacuum on
const unsigned int   IDLE_TO        = (20 * 60 * 1000); // Auto disable/off after 20 minutes.
const unsigned int   CHECK_TO       = (3 * 1000); // Wait up to 3 second for result of card ok check.

