]> git.basschouten.com Git - openhab-addons.git/commitdiff
[lgwebos] Switch to default system channel types (#10971)
authorlolodomo <lg.hc@free.fr>
Mon, 12 Jul 2021 07:23:13 +0000 (09:23 +0200)
committerGitHub <noreply@github.com>
Mon, 12 Jul 2021 07:23:13 +0000 (09:23 +0200)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
bundles/org.openhab.binding.lgwebos/src/main/resources/OH-INF/thing/thing-types.xml

index 02799a74f5aecc5ad84d253f690d8f1d239a65f9..2d40213deee1108a3123bc99577d53561c5f08b9 100644 (file)
@@ -9,12 +9,12 @@
                <description>WebOS based smart TV</description>
 
                <channels>
-                       <channel id="power" typeId="powerType"/>
-                       <channel id="mute" typeId="muteType"/>
-                       <channel id="volume" typeId="volumeType"/>
+                       <channel id="power" typeId="system.power"/>
+                       <channel id="mute" typeId="system.mute"/>
+                       <channel id="volume" typeId="system.volume"/>
                        <channel id="channel" typeId="channelType"/>
                        <channel id="toast" typeId="toastType"/>
-                       <channel id="mediaPlayer" typeId="mediaPlayerType"/>
+                       <channel id="mediaPlayer" typeId="system.media-control"/>
                        <channel id="mediaStop" typeId="mediaStopType"/>
                        <channel id="appLauncher" typeId="appLauncherChannelType"/>
                        <channel id="rcButton" typeId="rcButtonType"/>
                <config-description-ref uri="thing-type:lgwebos:WebOSTV"/>
        </thing-type>
 
-       <channel-type id="powerType">
-               <item-type>Switch</item-type>
-               <label>Power</label>
-               <description>Via this binding TV can only be powered off, not on.</description>
-       </channel-type>
-       <channel-type id="muteType">
-               <item-type>Switch</item-type>
-               <label>Mute</label>
-               <description>Current Mute Setting</description>
-               <category>SoundVolume</category>
-       </channel-type>
-       <channel-type id="volumeType">
-               <item-type>Dimmer</item-type>
-               <label>Volume</label>
-               <description>Current Volume Setting</description>
-               <category>SoundVolume</category>
-               <state min="0" max="100" step="1"></state>
-       </channel-type>
        <channel-type id="channelType">
                <item-type>String</item-type>
                <label>Channel</label>
                <label>Toast</label>
                <description>Send a message onto the TV screen.</description>
        </channel-type>
-       <channel-type id="mediaPlayerType">
-               <item-type>Player</item-type>
-               <label>Media Control</label>
-               <description>Control media (e.g. audio or video) playback</description>
-               <category>MediaControl</category>
-       </channel-type>
        <channel-type id="mediaStopType">
                <item-type>Switch</item-type>
                <label>Stop</label>