forked from openhab/openhab-addons
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[sonos] Add support for Sonos Arc/Arc SL + new controls for sub/surro…
…und speakers (openhab#9916) * [sonos] Add support for Sonos Arc/Arc SL + new controls for sub/surround speakers Related to openhab#9874 Signed-off-by: Laurent Garnier <[email protected]> * Use OnOffType.from Signed-off-by: Laurent Garnier <[email protected]> Signed-off-by: John Marshall <[email protected]>
- Loading branch information
1 parent
94d3e12
commit 6c5d3e7
Showing
7 changed files
with
378 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
77 changes: 77 additions & 0 deletions
77
bundles/org.openhab.binding.sonos/src/main/resources/OH-INF/thing/Arc.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<thing:thing-descriptions bindingId="sonos" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:thing="https://openhab.org/schemas/thing-description/v1.0.0" | ||
xsi:schemaLocation="https://openhab.org/schemas/thing-description/v1.0.0 https://openhab.org/schemas/thing-description-1.0.0.xsd"> | ||
|
||
<!-- Soundbar Arc Thing Type --> | ||
<thing-type id="Arc" listed="false"> | ||
<label>Arc</label> | ||
<description>Represents SONOS Arc soundbar</description> | ||
|
||
<channels> | ||
<channel id="add" typeId="add"/> | ||
<channel id="alarm" typeId="alarm"/> | ||
<channel id="alarmproperties" typeId="alarmproperties"/> | ||
<channel id="alarmrunning" typeId="alarmrunning"/> | ||
<channel id="control" typeId="system.media-control"/> | ||
<channel id="currentalbum" typeId="currentalbum"/> | ||
<channel id="currentalbumart" typeId="currentalbumart"/> | ||
<channel id="currentalbumarturl" typeId="currentalbumarturl"/> | ||
<channel id="currentartist" typeId="system.media-artist"/> | ||
<channel id="currenttitle" typeId="system.media-title"/> | ||
<channel id="currenttrack" typeId="currenttrack"/> | ||
<channel id="shuffle" typeId="shuffle"/> | ||
<channel id="repeat" typeId="repeat"/> | ||
<channel id="favorite" typeId="favorite"/> | ||
<channel id="led" typeId="led"/> | ||
<channel id="localcoordinator" typeId="localcoordinator"/> | ||
<channel id="mute" typeId="system.mute"/> | ||
<channel id="notificationsound" typeId="notificationsound"/> | ||
<channel id="playlist" typeId="playlist"/> | ||
<channel id="clearqueue" typeId="clearqueue"/> | ||
<channel id="playlinein" typeId="playlinein"/> | ||
<channel id="playqueue" typeId="playqueue"/> | ||
<channel id="playtrack" typeId="playtrack"/> | ||
<channel id="playuri" typeId="playuri"/> | ||
<channel id="publicaddress" typeId="publicaddress"/> | ||
<channel id="radio" typeId="radio"/> | ||
<channel id="remove" typeId="remove"/> | ||
<channel id="restore" typeId="restore"/> | ||
<channel id="restoreall" typeId="restoreall"/> | ||
<channel id="save" typeId="save"/> | ||
<channel id="saveall" typeId="saveall"/> | ||
<channel id="snooze" typeId="snooze"/> | ||
<channel id="standalone" typeId="standalone"/> | ||
<channel id="state" typeId="state"/> | ||
<channel id="stop" typeId="stop"/> | ||
<channel id="tuneinstationid" typeId="tuneinstationid"/> | ||
<channel id="volume" typeId="system.volume"/> | ||
<channel id="zonegroupid" typeId="zonegroupid"/> | ||
<channel id="zonename" typeId="zonename"/> | ||
<channel id="coordinator" typeId="coordinator"/> | ||
<channel id="sleeptimer" typeId="sleeptimer"/> | ||
<channel id="currenttransporturi" typeId="currenttransporturi"/> | ||
<channel id="currenttrackuri" typeId="currenttrackuri"/> | ||
<!-- Extended SONOS channels --> | ||
<channel id="linein" typeId="linein"/> | ||
<channel id="nightmode" typeId="nightmode"/> | ||
<channel id="speechenhancement" typeId="speechenhancement"/> | ||
<channel id="subwoofer" typeId="subwoofer"/> | ||
<channel id="subwoofergain" typeId="subwoofergain"/> | ||
<channel id="surround" typeId="surround"/> | ||
<channel id="surroundmusicmode" typeId="surroundmusicmode"/> | ||
<channel id="surroundmusiclevel" typeId="surroundmusiclevel"/> | ||
<channel id="surroundtvlevel" typeId="surroundtvlevel"/> | ||
</channels> | ||
|
||
<properties> | ||
<property name="vendor">SONOS</property> | ||
<property name="modelId">Arc</property> | ||
</properties> | ||
|
||
<representation-property>udn</representation-property> | ||
|
||
<config-description-ref uri="thing-type:sonos:zoneplayer"/> | ||
</thing-type> | ||
</thing:thing-descriptions> |
Oops, something went wrong.