This repository has been archived by the owner on Jul 2, 2020. It is now read-only.
forked from eclipse-archived/smarthome
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sony audio: adding functionality to control sony speakers (eclipse-ar…
…chived#4838) Signed-off-by: David AAberg <david.aberg@sony.com>
- Loading branch information
1 parent
cb0463b
commit 216ee4d
Showing
36 changed files
with
3,631 additions
and
0 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
extensions/binding/org.eclipse.smarthome.binding.sonyaudio/.classpath
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,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<classpath> | ||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/> | ||
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> | ||
<classpathentry kind="src" path="src/main/java"/> | ||
<classpathentry kind="output" path="target/classes"/> | ||
</classpath> |
33 changes: 33 additions & 0 deletions
33
extensions/binding/org.eclipse.smarthome.binding.sonyaudio/.project
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,33 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>org.eclipse.smarthome.binding.sonyaudio</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.eclipse.jdt.core.javabuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.eclipse.pde.ManifestBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.eclipse.pde.SchemaBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.eclipse.pde.ds.core.builder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.eclipse.pde.PluginNature</nature> | ||
<nature>org.eclipse.jdt.core.javanature</nature> | ||
</natures> | ||
</projectDescription> |
10 changes: 10 additions & 0 deletions
10
extensions/binding/org.eclipse.smarthome.binding.sonyaudio/ESH-INF/binding/binding.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,10 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<binding:binding id="sonyaudio" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:binding="http://eclipse.org/smarthome/schemas/binding/v1.0.0" | ||
xsi:schemaLocation="http://eclipse.org/smarthome/schemas/binding/v1.0.0 http://eclipse.org/smarthome/schemas/binding-1.0.0.xsd"> | ||
|
||
<name>SonyAudio Binding</name> | ||
<description>This is the binding for SonyAudio products (Receivers and wireless speakers).</description> | ||
<author>David Åberg</author> | ||
|
||
</binding:binding> |
32 changes: 32 additions & 0 deletions
32
extensions/binding/org.eclipse.smarthome.binding.sonyaudio/ESH-INF/config/config.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,32 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<config-description:config-descriptions | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:config-description="http://eclipse.org/smarthome/schemas/config-description/v1.0.0" | ||
xsi:schemaLocation="http://eclipse.org/smarthome/schemas/config-description/v1.0.0 http://eclipse.org/smarthome/schemas/config-description-1.0.0.xsd"> | ||
|
||
<config-description uri="thing-type:sonyaudio:config"> | ||
<parameter name="ipAddress" type="text"> | ||
<label>Network Address</label> | ||
<description>The IP or host name of the SONY audio device</description> | ||
<context>network-address</context> | ||
</parameter> | ||
<parameter name="port" type="integer" min="1" max="65335"> | ||
<label>Port</label> | ||
<description>Port for the SONY audio device to control. | ||
Home Audio products usually use port 10000 and Personal Audio products usually use port 54480.</description> | ||
<default>10000</default> | ||
</parameter> | ||
<parameter name="path" type="text"> | ||
<label>Base Path</label> | ||
<description>The base path, "/sony" in most cases</description> | ||
<default>/sony</default> | ||
<advanced>true</advanced> | ||
</parameter> | ||
<parameter name="refreshInterval" type="integer" min="0"> | ||
<label>Refresh Interval</label> | ||
<description>The refresh interval in seconds for polling the receiver (0=disable). Binding receive automatically updates from </description> | ||
<default>300</default> | ||
<advanced>true</advanced> | ||
</parameter> | ||
</config-description> | ||
</config-description:config-descriptions> |
56 changes: 56 additions & 0 deletions
56
extensions/binding/org.eclipse.smarthome.binding.sonyaudio/ESH-INF/thing/ht-ct800.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,56 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<thing:thing-descriptions bindingId="sonyaudio" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:thing="http://eclipse.org/smarthome/schemas/thing-description/v1.0.0" | ||
xsi:schemaLocation="http://eclipse.org/smarthome/schemas/thing-description/v1.0.0 http://eclipse.org/smarthome/schemas/thing-description-1.0.0.xsd"> | ||
|
||
<!-- Commands --> | ||
<channel-type id="input-ct800"> | ||
<item-type>String</item-type> | ||
<label>Input Source</label> | ||
<description>Select the input source of the receiver</description> | ||
<state> | ||
<options> | ||
<option value="btaudio">Bluetooth Audio</option> | ||
<option value="tv">TV</option> | ||
<option value="hdmi1">HDMI1</option> | ||
<option value="hdmi2">HDMI2</option> | ||
<option value="hdmi3">HDMI3</option> | ||
<option value="analog">Analog</option> | ||
<option value="usb">USB</option> | ||
<option value="network">Home Network</option> | ||
<option value="cast">Chromecast</option> | ||
</options> | ||
</state> | ||
</channel-type> | ||
|
||
<channel-type id="sound-field-ct800"> | ||
<item-type>String</item-type> | ||
<label>Sound Field</label> | ||
<description>Select the Sound Field for the receiver</description> | ||
<state> | ||
<options> | ||
<option value="clearAudio">ClearAudio+</option> | ||
<option value="movie">Movie</option> | ||
<option value="music">Music</option> | ||
<option value="sports">Sports</option> | ||
<option value="game">Game Studio</option> | ||
<option value="standard">Standard</option> | ||
</options> | ||
</state> | ||
</channel-type> | ||
|
||
<!-- HT-CT800 Thing Type --> | ||
<thing-type id="HT-CT800"> | ||
<label>SONY Soundbar HT-CT800</label> | ||
<description>SONY Soundbar HT-CT800</description> | ||
<channels> | ||
<channel id="power" typeId="power" /> | ||
<channel id="input" typeId="input-ct800" /> | ||
<channel id="volume" typeId="volume" /> | ||
<channel id="mute" typeId="mute" /> | ||
<channel id="soundField" typeId="sound-field-ct800" /> | ||
</channels> | ||
<config-description-ref uri="thing-type:sonyaudio:config" /> | ||
</thing-type> | ||
</thing:thing-descriptions> |
53 changes: 53 additions & 0 deletions
53
extensions/binding/org.eclipse.smarthome.binding.sonyaudio/ESH-INF/thing/ht-mt500.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,53 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<thing:thing-descriptions bindingId="sonyaudio" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:thing="http://eclipse.org/smarthome/schemas/thing-description/v1.0.0" | ||
xsi:schemaLocation="http://eclipse.org/smarthome/schemas/thing-description/v1.0.0 http://eclipse.org/smarthome/schemas/thing-description-1.0.0.xsd"> | ||
|
||
<!-- Commands --> | ||
<channel-type id="input-mt500"> | ||
<item-type>String</item-type> | ||
<label>Input Source</label> | ||
<description>Select the input source of the receiver</description> | ||
<state> | ||
<options> | ||
<option value="btaudio">Bluetooth Audio</option> | ||
<option value="tv">TV</option> | ||
<option value="analog">Analog</option> | ||
<option value="usb">USB</option> | ||
<option value="network">Home Network</option> | ||
<option value="cast">Chromecast</option> | ||
</options> | ||
</state> | ||
</channel-type> | ||
|
||
<channel-type id="sound-field-mt500"> | ||
<item-type>String</item-type> | ||
<label>Sound Field</label> | ||
<description>Select the Sound Field for the receiver</description> | ||
<state> | ||
<options> | ||
<option value="clearAudio">ClearAudio+</option> | ||
<option value="movie">Movie</option> | ||
<option value="music">Music</option> | ||
<option value="sports">Sports</option> | ||
<option value="game">Game Studio</option> | ||
<option value="standard">Standard</option> | ||
</options> | ||
</state> | ||
</channel-type> | ||
|
||
<!-- HT-MT500 Thing Type --> | ||
<thing-type id="HT-MT500"> | ||
<label>SONY Soundbar HT-MT500</label> | ||
<description>SONY Soundbar HT-MT500</description> | ||
<channels> | ||
<channel id="power" typeId="power" /> | ||
<channel id="input" typeId="input-mt500" /> | ||
<channel id="volume" typeId="volume" /> | ||
<channel id="mute" typeId="mute" /> | ||
<channel id="soundField" typeId="sound-field-mt500" /> | ||
</channels> | ||
<config-description-ref uri="thing-type:sonyaudio:config" /> | ||
</thing-type> | ||
</thing:thing-descriptions> |
57 changes: 57 additions & 0 deletions
57
extensions/binding/org.eclipse.smarthome.binding.sonyaudio/ESH-INF/thing/ht-st5000.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,57 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<thing:thing-descriptions bindingId="sonyaudio" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:thing="http://eclipse.org/smarthome/schemas/thing-description/v1.0.0" | ||
xsi:schemaLocation="http://eclipse.org/smarthome/schemas/thing-description/v1.0.0 http://eclipse.org/smarthome/schemas/thing-description-1.0.0.xsd"> | ||
|
||
<!-- Commands --> | ||
<channel-type id="input-st5000"> | ||
<item-type>String</item-type> | ||
<label>Input Source</label> | ||
<description>Select the input source of the receiver</description> | ||
<state> | ||
<options> | ||
<option value="btaudio">Bluetooth Audio</option> | ||
<option value="tv">TV</option> | ||
<option value="hdmi1">HDMI1</option> | ||
<option value="hdmi2">HDMI2</option> | ||
<option value="hdmi3">HDMI3</option> | ||
<option value="analog">Analog</option> | ||
<option value="usb">USB</option> | ||
<option value="network">Home Network</option> | ||
<option value="cast">Chromecast</option> | ||
</options> | ||
</state> | ||
</channel-type> | ||
|
||
<channel-type id="sound-field-st5000"> | ||
<item-type>String</item-type> | ||
<label>Sound Field</label> | ||
<description>Select the Sound Field for the receiver</description> | ||
<state> | ||
<options> | ||
<option value="clearAudio">ClearAudio+</option> | ||
<option value="3dsurround">3D Surround</option> | ||
<option value="movie">Movie</option> | ||
<option value="music">Music</option> | ||
<option value="sports">Sports</option> | ||
<option value="game">Game Studio</option> | ||
<option value="standard">Standard</option> | ||
</options> | ||
</state> | ||
</channel-type> | ||
|
||
<!-- HT-ST5000 Thing Type --> | ||
<thing-type id="HT-ST5000"> | ||
<label>SONY Soundbar HT-ST5000</label> | ||
<description>SONY Soundbar HT-ST5000</description> | ||
<channels> | ||
<channel id="power" typeId="power" /> | ||
<channel id="input" typeId="input-st5000" /> | ||
<channel id="volume" typeId="volume" /> | ||
<channel id="mute" typeId="mute" /> | ||
<channel id="soundField" typeId="sound-field-st5000" /> | ||
</channels> | ||
<config-description-ref uri="thing-type:sonyaudio:config" /> | ||
</thing-type> | ||
</thing:thing-descriptions> |
70 changes: 70 additions & 0 deletions
70
extensions/binding/org.eclipse.smarthome.binding.sonyaudio/ESH-INF/thing/ht-z9f-zf9.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,70 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<thing:thing-descriptions bindingId="sonyaudio" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:thing="http://eclipse.org/smarthome/schemas/thing-description/v1.0.0" | ||
xsi:schemaLocation="http://eclipse.org/smarthome/schemas/thing-description/v1.0.0 http://eclipse.org/smarthome/schemas/thing-description-1.0.0.xsd"> | ||
|
||
<!-- Commands --> | ||
<channel-type id="input-z9f-zf9"> | ||
<item-type>String</item-type> | ||
<label>Input Source</label> | ||
<description>Select the input source of the receiver</description> | ||
<state> | ||
<options> | ||
<option value="btaudio">Bluetooth Audio</option> | ||
<option value="tv">TV</option> | ||
<option value="hdmi1">HDMI1</option> | ||
<option value="hdmi2">HDMI2</option> | ||
<option value="analog">Analog</option> | ||
<option value="usb">USB</option> | ||
<option value="network">Home Network</option> | ||
<option value="cast">Chromecast</option> | ||
</options> | ||
</state> | ||
</channel-type> | ||
|
||
<channel-type id="sound-field-z9f-zf9"> | ||
<item-type>String</item-type> | ||
<label>Sound Field</label> | ||
<description>Select the Sound Field for the receiver</description> | ||
<state> | ||
<options> | ||
<option value="auto">Auto Sound</option> | ||
<option value="news">News</option> | ||
<option value="cinemaStudio">Cinema</option> | ||
<option value="music">Music</option> | ||
<option value="sports">Sports</option> | ||
<option value="game">Game Studio</option> | ||
<option value="standard">Standard</option> | ||
</options> | ||
</state> | ||
</channel-type> | ||
|
||
<!-- HT-z9f Thing Type --> | ||
<thing-type id="HT-Z9F"> | ||
<label>SONY Soundbar HT-Z9F</label> | ||
<description>SONY Soundbar HT-Z9F</description> | ||
<channels> | ||
<channel id="power" typeId="power" /> | ||
<channel id="input" typeId="input-z9f-zf9" /> | ||
<channel id="volume" typeId="volume" /> | ||
<channel id="mute" typeId="mute" /> | ||
<channel id="soundField" typeId="sound-field-z9f-zf9" /> | ||
</channels> | ||
<config-description-ref uri="thing-type:sonyaudio:config" /> | ||
</thing-type> | ||
|
||
<!-- HT-zf9 Thing Type --> | ||
<thing-type id="HT-ZF9"> | ||
<label>SONY Soundbar HT-ZF9</label> | ||
<description>SONY Soundbar HT-ZF9</description> | ||
<channels> | ||
<channel id="power" typeId="power" /> | ||
<channel id="input" typeId="input-z9f-zf9" /> | ||
<channel id="volume" typeId="volume" /> | ||
<channel id="mute" typeId="mute" /> | ||
<channel id="soundField" typeId="sound-field-z9f-zf9" /> | ||
</channels> | ||
<config-description-ref uri="thing-type:sonyaudio:config" /> | ||
</thing-type> | ||
</thing:thing-descriptions> |
56 changes: 56 additions & 0 deletions
56
extensions/binding/org.eclipse.smarthome.binding.sonyaudio/ESH-INF/thing/srs-zr5.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,56 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<thing:thing-descriptions bindingId="sonyaudio" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:thing="http://eclipse.org/smarthome/schemas/thing-description/v1.0.0" | ||
xsi:schemaLocation="http://eclipse.org/smarthome/schemas/thing-description/v1.0.0 http://eclipse.org/smarthome/schemas/thing-description-1.0.0.xsd"> | ||
|
||
<!-- Commands --> | ||
<channel-type id="input-zr5"> | ||
<item-type>String</item-type> | ||
<label>Input Source</label> | ||
<description>Select the input source of the speaker</description> | ||
<state> | ||
<options> | ||
<option value="btaudio">Bluetooth Audio</option> | ||
<option value="usb">USB</option> | ||
<option value="analog">Analog</option> | ||
<option value="hdmi1">HDMI</option> | ||
<option value="network">Home Network</option> | ||
<option value="cast">Chromecast</option> | ||
</options> | ||
</state> | ||
</channel-type> | ||
|
||
<channel-type id="sound-field-zr5"> | ||
<item-type>String</item-type> | ||
<label>Sound Field</label> | ||
<description>Select the Sound Field for the receiver</description> | ||
<state> | ||
<options> | ||
<option value="clearAudio">ClearAudio+</option> | ||
<option value="hiphop">R&B / HIP HOP</option> | ||
<option value="standard">FLAT</option> | ||
<option value="rock">ROCK</option> | ||
<option value="pop">POP</option> | ||
<option value="latin">LATIN</option> | ||
<option value="jazz">JAZZ</option> | ||
<option value="classic">CLASSIC</option> | ||
<option value="custom">CUSTOM</option> | ||
</options> | ||
</state> | ||
</channel-type> | ||
|
||
<!-- SRS-ZR5 Thing Type --> | ||
<thing-type id="SRS-ZR5"> | ||
<label>SONY wirelesspeaker SRS-ZR5</label> | ||
<description>SONY wirelesspeaker SRS-ZR5</description> | ||
<channels> | ||
<channel id="power" typeId="power" /> | ||
<channel id="input" typeId="input-zr5" /> | ||
<channel id="volume" typeId="volume" /> | ||
<channel id="mute" typeId="mute" /> | ||
<channel id="soundField" typeId="sound-field-zr5" /> | ||
</channels> | ||
<config-description-ref uri="thing-type:sonyaudio:config" /> | ||
</thing-type> | ||
</thing:thing-descriptions> |
Oops, something went wrong.