diff --git a/bundles/org.openhab.binding.mpd/src/main/java/org/openhab/binding/mpd/internal/handler/MPDHandler.java b/bundles/org.openhab.binding.mpd/src/main/java/org/openhab/binding/mpd/internal/handler/MPDHandler.java index eecdf8eb2ff..21ddbf2fcae 100644 --- a/bundles/org.openhab.binding.mpd/src/main/java/org/openhab/binding/mpd/internal/handler/MPDHandler.java +++ b/bundles/org.openhab.binding.mpd/src/main/java/org/openhab/binding/mpd/internal/handler/MPDHandler.java @@ -254,7 +254,11 @@ public class MPDHandler extends BaseThingHandler implements MPDEventListener { @Override public void updateMPDStatus(MPDStatus status) { volume = status.getVolume(); - updateChannel(CHANNEL_VOLUME, new PercentType(status.getVolume())); + if (volume < 0 || volume > 100) { + updateChannel(CHANNEL_VOLUME, UnDefType.UNDEF); + } else { + updateChannel(CHANNEL_VOLUME, new PercentType(volume)); + } State newControlState = UnDefType.UNDEF; switch (status.getState()) {