openhab-addons/bundles/org.openhab.binding.omnilink/src/main/resources/OH-INF/thing/audio-source.xml
Ethan Dye 20da017fa2
[OmniLink] Add semantic tags to channels (#11100)
* Add semantic tags to channels
* Use system channels where possible

Signed-off-by: Ethan Dye <mrtops03@gmail.com>
2022-02-08 22:01:57 +01:00

53 lines
2.0 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<thing:thing-descriptions bindingId="omnilink"
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">
<!-- Audio Source Thing -->
<thing-type id="audio_source">
<supported-bridge-type-refs>
<bridge-type-ref id="controller"/>
</supported-bridge-type-refs>
<label>Audio Source</label>
<description>An audio source configured in the controller.</description>
<channels>
<channel id="source_text_1" typeId="audio_source_text"/>
<channel id="source_text_2" typeId="audio_source_text"/>
<channel id="source_text_3" typeId="audio_source_text"/>
<channel id="source_text_4" typeId="audio_source_text"/>
<channel id="source_text_5" typeId="audio_source_text"/>
<channel id="source_text_6" typeId="audio_source_text"/>
<channel id="polling" typeId="audio_source_polling"/>
</channels>
<representation-property>number</representation-property>
<config-description>
<parameter name="number" type="integer" required="true">
<label>Audio Source Number</label>
<description>The audio source number.</description>
</parameter>
<parameter name="autostart" type="boolean" required="false">
<label>Autostart Polling</label>
<description>Autostart polling of audio source on creation of thing.</description>
<default>true</default>
</parameter>
</config-description>
</thing-type>
<!-- Audio Source Channels -->
<channel-type id="audio_source_text">
<item-type>String</item-type>
<label>Source Data</label>
<description>A line of metadata from this audio source.</description>
<category>Text</category>
</channel-type>
<channel-type id="audio_source_polling">
<item-type>Switch</item-type>
<label>Audio Source Polling</label>
<description>Enable or disable polling of this audio source.</description>
<category>Switch</category>
</channel-type>
</thing:thing-descriptions>