diff --git a/bundles/org.openhab.binding.heos/src/main/java/org/openhab/binding/heos/internal/discovery/HeosDiscoveryParticipant.java b/bundles/org.openhab.binding.heos/src/main/java/org/openhab/binding/heos/internal/discovery/HeosDiscoveryParticipant.java index 0d3005f4538d9..d79b656c3feb6 100644 --- a/bundles/org.openhab.binding.heos/src/main/java/org/openhab/binding/heos/internal/discovery/HeosDiscoveryParticipant.java +++ b/bundles/org.openhab.binding.heos/src/main/java/org/openhab/binding/heos/internal/discovery/HeosDiscoveryParticipant.java @@ -79,7 +79,8 @@ private String getModel(ModelDetails modelDetails) { DeviceDetails details = device.getDetails(); String modelName = details.getModelDetails().getModelName(); String modelManufacturer = details.getManufacturerDetails().getManufacturer(); - if ("Denon".equals(modelManufacturer) && (modelName.startsWith("HEOS") || modelName.endsWith("H"))) { + if ("Denon".equals(modelManufacturer) + && (modelName.startsWith("HEOS") || modelName.endsWith("H") || modelName.contains("Home"))) { String deviceType = device.getType().getType(); if (deviceType.startsWith("ACT") || deviceType.startsWith("Aios")) { return new ThingUID(THING_TYPE_BRIDGE, device.getIdentity().getUdn().getIdentifierString()); diff --git a/bundles/org.openhab.binding.heos/src/main/java/org/openhab/binding/heos/internal/handler/HeosPlayerHandler.java b/bundles/org.openhab.binding.heos/src/main/java/org/openhab/binding/heos/internal/handler/HeosPlayerHandler.java index 26d7ae22a540d..4134e188adc7f 100644 --- a/bundles/org.openhab.binding.heos/src/main/java/org/openhab/binding/heos/internal/handler/HeosPlayerHandler.java +++ b/bundles/org.openhab.binding.heos/src/main/java/org/openhab/binding/heos/internal/handler/HeosPlayerHandler.java @@ -179,6 +179,10 @@ public static void propertiesFromPlayer(Map prop, Player String serialNumber = player.serial; if (serialNumber != null) { prop.put(Thing.PROPERTY_SERIAL_NUMBER, serialNumber); + } else { + prop.put(Thing.PROPERTY_SERIAL_NUMBER, String.valueOf(player.playerId)); // If no serial number is provided, + // write an empty string to + // prevent error during runtime } } }