From 339df2cb3a1f8b492887562c120a058b03eb6a55 Mon Sep 17 00:00:00 2001 From: Ondrej Pecta Date: Sun, 27 Feb 2022 17:44:49 +0100 Subject: [PATCH] [somfytahoma] changed the severity of unsuported devices logging (#12372) Signed-off-by: Ondrej Pecta --- bundles/org.openhab.binding.somfytahoma/README.md | 3 ++- .../discovery/SomfyTahomaItemDiscoveryService.java | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/bundles/org.openhab.binding.somfytahoma/README.md b/bundles/org.openhab.binding.somfytahoma/README.md index 6294264ee17..771b6e31f0c 100644 --- a/bundles/org.openhab.binding.somfytahoma/README.md +++ b/bundles/org.openhab.binding.somfytahoma/README.md @@ -53,7 +53,8 @@ To start a discovery, just - Add a new bridge thing. - Configure the bridge selecting your cloud portal (www.tahomalink.com by default) and setting your email (login) and password to the cloud portal. -If the supplied credentials are correct, the automatic discovery can be used to scan and detect roller shutters, awnings, switches and action groups that will appear in your Inbox. +If the supplied credentials are correct, the automatic discovery can be used to scan and detect your devices which will appear in your Inbox. +If you are missing some device, check the debug log during the discovery and create an issue with the information about an unsupported thing from the log. ## Thing Configuration diff --git a/bundles/org.openhab.binding.somfytahoma/src/main/java/org/openhab/binding/somfytahoma/internal/discovery/SomfyTahomaItemDiscoveryService.java b/bundles/org.openhab.binding.somfytahoma/src/main/java/org/openhab/binding/somfytahoma/internal/discovery/SomfyTahomaItemDiscoveryService.java index 58e1a185d24..b1fe67e110b 100644 --- a/bundles/org.openhab.binding.somfytahoma/src/main/java/org/openhab/binding/somfytahoma/internal/discovery/SomfyTahomaItemDiscoveryService.java +++ b/bundles/org.openhab.binding.somfytahoma/src/main/java/org/openhab/binding/somfytahoma/internal/discovery/SomfyTahomaItemDiscoveryService.java @@ -378,16 +378,16 @@ public class SomfyTahomaItemDiscoveryService extends AbstractDiscoveryService private void logUnsupportedDevice(SomfyTahomaDevice device) { if (!isStateLess(device)) { - logger.info("Detected a new unsupported device: {} with widgetName: {}", device.getUiClass(), + logger.debug("Detected a new unsupported device: {} with widgetName: {}", device.getUiClass(), device.getWidget()); - logger.info("If you want to add the support, please create a new issue and attach the information below"); - logger.info("Device definition:\n{}", device.getDefinition()); + logger.debug("If you want to add the support, please create a new issue and attach the information below"); + logger.debug("Device definition:\n{}", device.getDefinition()); StringBuilder sb = new StringBuilder().append('\n'); for (SomfyTahomaState state : device.getStates()) { sb.append(state.toString()).append('\n'); } - logger.info("Current device states: {}", sb); + logger.debug("Current device states: {}", sb); } }