[rotel] Support added for Michi models (P5, X3 and X5) (#12524)

Also fix command to set balance (different syntax in ASCII V1 and V2)

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
This commit is contained in:
lolodomo
2022-03-26 21:17:40 +01:00
committed by GitHub
parent 4774f8a7e7
commit 1734d6ed82
12 changed files with 197 additions and 29 deletions

View File

@@ -15,6 +15,8 @@ thing-type.rotel.cd11.label = CD11 CD Player
thing-type.rotel.cd11.description = Connection to the Rotel CD11 CD player
thing-type.rotel.cd14.label = CD14 CD Player
thing-type.rotel.cd14.description = Connection to the Rotel CD14 CD player
thing-type.rotel.p5.label = P5 Stereo Preamplifier
thing-type.rotel.p5.description = Connection to the Rotel Michi P5 stereo preamplifier
thing-type.rotel.ra11.label = RA-11 Integrated Amplifier
thing-type.rotel.ra11.description = Connection to the Rotel RA-11 integrated amplifier
thing-type.rotel.ra12.label = RA-12 Integrated Amplifier
@@ -87,9 +89,15 @@ thing-type.rotel.t11.label = T11 Tuner
thing-type.rotel.t11.description = Connection to the Rotel T11 tuner
thing-type.rotel.t14.label = T14 Tuner
thing-type.rotel.t14.description = Connection to the Rotel T14 tuner
thing-type.rotel.x3.label = X3 Integrated Amplifier
thing-type.rotel.x3.description = Connection to the Rotel Michi X3 integrated amplifier
thing-type.rotel.x5.label = X5 Integrated Amplifier
thing-type.rotel.x5.description = Connection to the Rotel Michi X5 integrated amplifier
# channel types
channel-type.rotel.balance.label = Balance Adjustment
channel-type.rotel.balance.description = Adjust the speakers left-right balance
channel-type.rotel.bass.label = Bass Adjustment
channel-type.rotel.bass.description = Adjust the bass
channel-type.rotel.brightness.label = Front Panel Display Brightness
@@ -104,20 +112,18 @@ channel-type.rotel.recordSource.label = Record Source
channel-type.rotel.recordSource.description = Select the source to be recorded
channel-type.rotel.source.label = Source Input
channel-type.rotel.source.description = Select the source input
channel-type.rotel.speakera.label = Speaker-A Adjustment
channel-type.rotel.speakera.description = Turn on/off the speaker group A
channel-type.rotel.speakerb.label = Speaker-B Adjustment
channel-type.rotel.speakerb.description = Turn on/off the speaker group B
channel-type.rotel.tcbypass.label = Tone Control Bypass
channel-type.rotel.tcbypass.description = The user's bass-/treble-settings are bypassed
channel-type.rotel.track.label = Current Track
channel-type.rotel.track.description = The current CD track number
channel-type.rotel.treble.label = Treble Adjustment
channel-type.rotel.treble.description = Adjust the treble
channel-type.rotel.volumeUpDown.label = Volume
channel-type.rotel.volumeUpDown.description = Increase or decrease the volume
channel-type.rotel.tcbypass.label = Tone Control Bypass
channel-type.rotel.tcbypass.description = The user's bass-/treble-settings are bypassed
channel-type.rotel.balance.label = Balance Adjustment
channel-type.rotel.balance.description = Adjust the speakers left-right balance
channel-type.rotel.speakera.label = Speaker-A Adjustment
channel-type.rotel.speakera.description = Turn on/off the speaker group A
channel-type.rotel.speakerb.label = Speaker-B Adjustment
channel-type.rotel.speakerb.description = Turn on/off the speaker group B
# thing type configuration
@@ -242,6 +248,8 @@ source.PCUSB = PC USB
source.BLUETOOTH = Bluetooth
source.MULTI = MULTI
source.XLR = XLR
source.XLR1 = XLR 1
source.XLR2 = XLR 2
source.MAIN = Follow Main Zone Source
source.RCD = Rotel CD
source.FM = FM

View File

@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<thing:thing-descriptions bindingId="rotel"
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">
<!-- Rotel P5 Connection Thing Type -->
<thing-type id="p5">
<label>P5 Stereo Preamplifier</label>
<description>Connection to the Rotel Michi P5 stereo preamplifier</description>
<channels>
<channel id="power" typeId="system.power"/>
<channel id="source" typeId="source"/>
<channel id="volume" typeId="system.volume"/>
<channel id="mute" typeId="system.mute"/>
<channel id="bass" typeId="bass"/>
<channel id="treble" typeId="treble"/>
<channel id="frequency" typeId="frequency"/>
<channel id="brightness" typeId="brightness"/>
<channel id="tcbypass" typeId="tcbypass"/>
<channel id="balance" typeId="balance"/>
</channels>
<properties>
<property name="protocol">ASCII_V2</property>
</properties>
<config-description-ref uri="thing-type:rotel:serialandip"/>
</thing-type>
</thing:thing-descriptions>

View File

@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<thing:thing-descriptions bindingId="rotel"
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">
<!-- Rotel X3 Connection Thing Type -->
<thing-type id="x3">
<label>X3 Integrated Amplifier</label>
<description>Connection to the Rotel Michi X3 integrated amplifier</description>
<channels>
<channel id="power" typeId="system.power"/>
<channel id="source" typeId="source"/>
<channel id="volume" typeId="system.volume"/>
<channel id="mute" typeId="system.mute"/>
<channel id="bass" typeId="bass"/>
<channel id="treble" typeId="treble"/>
<channel id="frequency" typeId="frequency"/>
<channel id="brightness" typeId="brightness"/>
<channel id="tcbypass" typeId="tcbypass"/>
<channel id="balance" typeId="balance"/>
</channels>
<properties>
<property name="protocol">ASCII_V2</property>
</properties>
<config-description-ref uri="thing-type:rotel:serialandip"/>
</thing-type>
</thing:thing-descriptions>

View File

@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<thing:thing-descriptions bindingId="rotel"
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">
<!-- Rotel X5 Connection Thing Type -->
<thing-type id="x5">
<label>X5 Integrated Amplifier</label>
<description>Connection to the Rotel Michi X5 integrated amplifier</description>
<channels>
<channel id="power" typeId="system.power"/>
<channel id="source" typeId="source"/>
<channel id="volume" typeId="system.volume"/>
<channel id="mute" typeId="system.mute"/>
<channel id="bass" typeId="bass"/>
<channel id="treble" typeId="treble"/>
<channel id="frequency" typeId="frequency"/>
<channel id="brightness" typeId="brightness"/>
<channel id="tcbypass" typeId="tcbypass"/>
<channel id="balance" typeId="balance"/>
</channels>
<properties>
<property name="protocol">ASCII_V2</property>
</properties>
<config-description-ref uri="thing-type:rotel:serialandip"/>
</thing-type>
</thing:thing-descriptions>