def scriptLoaded(*args): """Registers the profile factory in OpenHAB's service registry.""" global FACTORY_INSTANCE FACTORY_INSTANCE = MultiPressProfileFactory() register_service(FACTORY_INSTANCE, [SERVICE_CLASS]) log.debug("Registered service MultiPressProfileFactory")
def scriptLoaded(script): if core.JythonTransformationService is not None: register_service(core.JythonTransformationService, [TRANSFORMATION_CLASS], {'smarthome.transform': 'JYTHON'}) logging.getLogger( "{}.core.JythonTransformationService.scriptLoaded".format( LOG_PREFIX)).debug("Registered service")
def scriptLoaded(id): global service service = JythonCommand() try: register_service(service, ["org.openhab.core.io.console.extensions.ConsoleCommandExtension"]) except: register_service(service, ["org.eclipse.smarthome.io.console.extensions.ConsoleCommandExtension"]) LOG.info("Registered command extension")
def scriptLoaded(id): global service service = JythonCommand() interfaces = [ "org.eclipse.smarthome.io.console.extensions.ConsoleCommandExtension" ] registration = register_service(service, interfaces) log.info("Registered command extension")
def scriptLoaded(script): global jython_transformation_service if jython_transformation_service is not None: global registered_service registered_service = register_service( jython_transformation_service, [TRANSFORMATION_CLASS], {'smarthome.transform': 'JYTHON'}) LOG.debug("Registered service")
def scriptLoaded(id): register_service( service, ["org.eclipse.smarthome.core.thing.binding.ThingHandlerFactory"])
def scriptLoaded(id): global service service = JythonTransformationService() interfaces = ["org.eclipse.smarthome.core.transform.TransformationService"] registration = register_service(service, interfaces, {'smarthome.transform': 'JYTHON'})
def scriptLoaded(script): if core.JythonThingProvider is not None: register_service(core.JythonThingProvider, [PROVIDER_CLASS]) logging.getLogger("{}.core.JythonThingProvider.scriptLoaded".format( LOG_PREFIX)).debug("Registered service")
def scriptLoaded(id): register_service(service, [thing_handler_factory])