def init_controller(url):
<EOL>global _VERA_CONTROLLER<EOL>created = False<EOL>if _VERA_CONTROLLER is None:<EOL><INDENT>_VERA_CONTROLLER = VeraController(url)<EOL>created = True<EOL>_VERA_CONTROLLER.start()<EOL><DEDENT>return [_VERA_CONTROLLER, created]<EOL>
Initialize a controller.

    Provides a single global controller for applications that can't do this
    themselves