diff --git a/src/main/java/org/myrobotlab/service/InMoov2.java b/src/main/java/org/myrobotlab/service/InMoov2.java index 7760412fee..eb72c37425 100644 --- a/src/main/java/org/myrobotlab/service/InMoov2.java +++ b/src/main/java/org/myrobotlab/service/InMoov2.java @@ -925,7 +925,7 @@ public void onPirOn() { led.interval = 500; // FIXME flash on config.flashOnBoot invoke("publishFlash"); - String botState = fsm.getCurrent(); + String botState = chatBot.getPredicate("botState"); if ("sleeping".equals(botState)) { invoke("publishEvent", "WAKE"); }