diff --git a/bundles/org.openhab.binding.sonyprojector/src/main/java/org/openhab/binding/sonyprojector/internal/communication/sdcp/SonyProjectorSdcpConnector.java b/bundles/org.openhab.binding.sonyprojector/src/main/java/org/openhab/binding/sonyprojector/internal/communication/sdcp/SonyProjectorSdcpConnector.java index c97b7ddf8a7..bc0678df8e7 100644 --- a/bundles/org.openhab.binding.sonyprojector/src/main/java/org/openhab/binding/sonyprojector/internal/communication/sdcp/SonyProjectorSdcpConnector.java +++ b/bundles/org.openhab.binding.sonyprojector/src/main/java/org/openhab/binding/sonyprojector/internal/communication/sdcp/SonyProjectorSdcpConnector.java @@ -320,6 +320,14 @@ public class SonyProjectorSdcpConnector extends SonyProjectorConnector { * @throws SonyProjectorException in case of any problem */ public String getMacAddress() throws SonyProjectorException { - return new String(getSetting(SonyProjectorItem.MAC_ADDRESS), StandardCharsets.UTF_8); + String macAddress = ""; + byte[] macBytes = getSetting(SonyProjectorItem.MAC_ADDRESS); + for (byte macByte : macBytes) { + if (!macAddress.isEmpty()) { + macAddress = macAddress + "-"; + } + macAddress = macAddress + Integer.toHexString(macByte); + } + return macAddress.toLowerCase(); } }