[homematic] Improve error message when command sending fails (#18886)

In particular, suppress the exception stack trace.

Fixes #18879

Signed-off-by: Danny Baumann <dannybaumann@web.de>
This commit is contained in:
maniac103
2025-07-04 10:45:29 +02:00
committed by GitHub
parent 83d28e22ab
commit 208a1dbe20
@@ -346,10 +346,11 @@ public class HomematicThingHandler extends BaseThingHandler {
if (dp != null && dp.getChannel().getDevice().isOffline()) {
logger.warn("Device '{}' is OFFLINE, can't send command '{}' for channel '{}'",
dp.getChannel().getDevice().getAddress(), command, channelUID);
logger.trace("{}", ex.getMessage(), ex);
} else {
logger.error("{}", ex.getMessage(), ex);
logger.error("Sending command '{}' for channel '{}' to device '{}' failed: {}", command, channelUID,
dp.getChannel().getDevice().getAddress(), ex.getMessage());
}
logger.trace("{}", ex.getMessage(), ex);
} catch (ConverterTypeException ex) {
logger.warn("{}, please check the item type and the commands in your scripts", ex.getMessage());
} catch (Exception ex) {