private static final String STATE_PLAYING = "PLAYING";
private static final String STATE_PAUSED_PLAYBACK = "PAUSED_PLAYBACK";
private static final String STATE_STOPPED = "STOPPED";
+ private static final String STATE_TRANSITIONING = "TRANSITIONING";
private static final String LINEINCONNECTED = "LineInConnected";
private static final String TOSLINEINCONNECTED = "TOSLinkConnected";
case STATE:
value = getTransportState();
if (value != null) {
- newState = new StringType(value);
+ // Ignoring state TRANSITIONING
+ newState = STATE_TRANSITIONING.equals(value) ? null : new StringType(value);
}
break;
case CONTROL:
newState = PlayPauseType.PAUSE;
} else if (STATE_PAUSED_PLAYBACK.equals(value)) {
newState = PlayPauseType.PAUSE;
+ } else if (STATE_TRANSITIONING.equals(value)) {
+ // Ignoring state TRANSITIONING
+ newState = null;
}
break;
case STOP:
value = getTransportState();
if (value != null) {
- newState = OnOffType.from(STATE_STOPPED.equals(value));
+ newState = STATE_TRANSITIONING.equals(value) ? null : OnOffType.from(STATE_STOPPED.equals(value));
}
break;
case SHUFFLE:
channel-type.sonos.state.state.option.STOPPED = Stopped
channel-type.sonos.state.state.option.PLAYING = Playing
channel-type.sonos.state.state.option.PAUSED_PLAYBACK = Paused
-channel-type.sonos.state.state.option.TRANSITIONING = Transitioning
channel-type.sonos.stop.label = Stop
channel-type.sonos.stop.description = Stop the Sonos device. ON if the player is stopped.
channel-type.sonos.subwoofer.label = Subwoofer