| digitallinein | Switch | R | Indicator set to ON when the digital line-in of the Zone Player is connected | Amp |
| localcoordinator | Switch | R | Indicator set to ON if the this Zone Player is the Zone Group Coordinator | all |
| loudness | Switch | RW | Enable or disable the loudness | all |
+| microphone | Switch | R | Indicator set to ON when the microphone is enabled | Arc, Beam, Move, One |
| mute | Switch | RW | Set or get the mute state of the master volume of the Zone Player | all |
| nightmode | Switch | RW | Enable or disable the night mode feature | PLAYBAR, PLAYBASE, Beam, Amp |
| notificationsound | String | W | Play a notification sound by a given URI | all |
public static final String DIGITALLINEIN = "digitallinein";
public static final String LOCALCOORDINATOR = "localcoordinator";
public static final String LOUDNESS = "loudness";
+ public static final String MICROPHONE = "microphone";
public static final String MUTE = "mute";
public static final String NIGHTMODE = "nightmode";
public static final String NOTIFICATIONSOUND = "notificationsound";
updateChannel(BATTERYCHARGING);
updateChannel(BATTERYLEVEL);
break;
+ case "MicEnabled":
+ updateChannel(MICROPHONE);
+ break;
default:
break;
}
newState = new DecimalType(value);
}
break;
+ case MICROPHONE:
+ value = getMicEnabled();
+ if (value != null) {
+ newState = OnOffType.from(value);
+ }
+ break;
default:
newState = null;
break;
return mode;
}
+ public @Nullable String getMicEnabled() {
+ return stateMap.get("MicEnabled");
+ }
+
protected void updatePlayMode(String playMode) {
executeAction(SERVICE_AV_TRANSPORT, ACTION_SET_PLAY_MODE, Map.of("InstanceID", "0", "NewPlayMode", playMode));
}
<channel id="currenttrackuri" typeId="currenttrackuri"/>
<!-- Extended SONOS channels -->
<channel id="linein" typeId="linein"/>
+ <channel id="microphone" typeId="microphone"/>
<channel id="nightmode" typeId="nightmode"/>
<channel id="speechenhancement" typeId="speechenhancement"/>
<channel id="subwoofer" typeId="subwoofer"/>
<channel id="currenttrackuri" typeId="currenttrackuri"/>
<!-- Extended SONOS channels -->
<channel id="linein" typeId="linein"/>
+ <channel id="microphone" typeId="microphone"/>
<channel id="nightmode" typeId="nightmode"/>
<channel id="speechenhancement" typeId="speechenhancement"/>
<channel id="subwoofer" typeId="subwoofer"/>
<!-- Extended SONOS channels -->
<channel id="batterycharging" typeId="batterycharging"/>
<channel id="batterylevel" typeId="system.battery-level"/>
+ <channel id="microphone" typeId="microphone"/>
</channels>
<properties>
<channel id="sleeptimer" typeId="sleeptimer"/>
<channel id="currenttransporturi" typeId="currenttransporturi"/>
<channel id="currenttrackuri" typeId="currenttrackuri"/>
+ <!-- Extended SONOS channels -->
+ <channel id="microphone" typeId="microphone"/>
<channel id="speechenhancement" typeId="speechenhancement"/>
</channels>
<state readOnly="true"/>
</channel-type>
+ <!-- Extended channels (for One, Beam, Arc and Move only) -->
+ <channel-type id="microphone" advanced="true">
+ <item-type>Switch</item-type>
+ <label>Microphone</label>
+ <description>Indicator set to ON when the microphone is enabled</description>
+ <state readOnly="true"/>
+ </channel-type>
+
</thing:thing-descriptions>