def METHOD_NAME(self, state):
    logging.getLogger("HWR").info("energy_state_changed %s" % str(state))
    # self.energy_server_check_for_errors(state)
    if state == "STANDBY":
        if self.moving:
            self.moving = False
            self.set_break_bragg()
        self.move_energy_finished(0)
        self.emit("stateChanged", "ready")
        self.emit("statusInfoChanged", "")
    elif state in ["MOVING", "ALARM"]:
        self.move_energy_started()
        self.emit("stateChanged", "busy")