diff --git a/bundles/org.openhab.io.openhabcloud/src/main/java/org/openhab/io/openhabcloud/internal/CloudService.java b/bundles/org.openhab.io.openhabcloud/src/main/java/org/openhab/io/openhabcloud/internal/CloudService.java index df9137673e1e8..e41e9f27c3018 100644 --- a/bundles/org.openhab.io.openhabcloud/src/main/java/org/openhab/io/openhabcloud/internal/CloudService.java +++ b/bundles/org.openhab.io.openhabcloud/src/main/java/org/openhab/io/openhabcloud/internal/CloudService.java @@ -67,9 +67,11 @@ @Component(service = { CloudService.class, EventSubscriber.class, ActionService.class }, configurationPid = "org.openhab.openhabcloud", property = Constants.SERVICE_PID + "=org.openhab.openhabcloud") -@ConfigurableService(category = "io", label = "openHAB Cloud", description_uri = "io:openhabcloud") +@ConfigurableService(category = "io", label = "openHAB Cloud", description_uri = CloudService.CONFIG_URI) public class CloudService implements ActionService, CloudClientListener, EventSubscriber { + protected static final String CONFIG_URI = "io:openhabcloud"; + private static final String CFG_EXPOSE = "expose"; private static final String CFG_BASE_URL = "baseURL"; private static final String CFG_MODE = "mode"; diff --git a/bundles/org.openhab.io.openhabcloud/src/main/resources/OH-INF/config/config.xml b/bundles/org.openhab.io.openhabcloud/src/main/resources/OH-INF/config/config.xml index 2146c45efe0d9..d870ed859e11c 100644 --- a/bundles/org.openhab.io.openhabcloud/src/main/resources/OH-INF/config/config.xml +++ b/bundles/org.openhab.io.openhabcloud/src/main/resources/OH-INF/config/config.xml @@ -21,7 +21,7 @@ - Base URL for the openHAB Cloud server + Base URL for the openHAB Cloud server. https://myopenhab.org/ diff --git a/bundles/org.openhab.io.openhabcloud/src/main/resources/OH-INF/i18n/openhabcloud.properties b/bundles/org.openhab.io.openhabcloud/src/main/resources/OH-INF/i18n/openhabcloud.properties new file mode 100644 index 0000000000000..cb76d5404a13b --- /dev/null +++ b/bundles/org.openhab.io.openhabcloud/src/main/resources/OH-INF/i18n/openhabcloud.properties @@ -0,0 +1,14 @@ +# service + +service.io.openhabcloud.label = openHAB Cloud + +# bundle config + +io.config.openhabcloud.baseURL.label = Base URL +io.config.openhabcloud.baseURL.description = Base URL for the openHAB Cloud server. +io.config.openhabcloud.expose.label = Items to Expose +io.config.openhabcloud.expose.description = List of items that are made accessible to IFTTT and similar services. +io.config.openhabcloud.mode.label = Mode +io.config.openhabcloud.mode.description = What features of the openHAB Cloud service should be used. +io.config.openhabcloud.mode.option.notification = Notifications +io.config.openhabcloud.mode.option.remote = Notifications & Remote Access