Skip to content

Commit 1584e99

Browse files
authored
[lgwebos] Add semantic tag to Channel and Application channels (#18314)
* [lgwebos] Add semantic tag to Channel and Application channels Signed-off-by: Jimmy Tanagra <[email protected]>
1 parent 9093a4d commit 1584e99

File tree

3 files changed

+34
-8
lines changed

3 files changed

+34
-8
lines changed

bundles/org.openhab.binding.lgwebos/src/main/resources/OH-INF/i18n/lgwebos.properties

+4-4
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ thing-type.config.lgwebos.WebOSTV.useTLS.description = Enable Transport Layer Se
2121

2222
# channel types
2323

24-
channel-type.lgwebos.appLauncherChannelType.label = Application
25-
channel-type.lgwebos.appLauncherChannelType.description = Start application and monitor running applications.
26-
channel-type.lgwebos.channelType.label = Channel
27-
channel-type.lgwebos.channelType.description = Current Channel
24+
channel-type.lgwebos.app-launcher.label = Application
25+
channel-type.lgwebos.app-launcher.description = Start application and monitor running applications.
26+
channel-type.lgwebos.channel.label = Channel
27+
channel-type.lgwebos.channel.description = Current Channel
2828
channel-type.lgwebos.mediaStopType.label = Stop
2929
channel-type.lgwebos.mediaStopType.description = Stop Playback
3030
channel-type.lgwebos.rcButtonType.label = RCButton

bundles/org.openhab.binding.lgwebos/src/main/resources/OH-INF/thing/thing-types.xml

+13-4
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
<channel id="power" typeId="system.power"/>
1313
<channel id="mute" typeId="system.mute"/>
1414
<channel id="volume" typeId="system.volume"/>
15-
<channel id="channel" typeId="channelType"/>
15+
<channel id="channel" typeId="channel"/>
1616
<channel id="toast" typeId="toastType"/>
1717
<channel id="mediaPlayer" typeId="system.media-control"/>
1818
<channel id="mediaStop" typeId="mediaStopType"/>
19-
<channel id="appLauncher" typeId="appLauncherChannelType"/>
19+
<channel id="appLauncher" typeId="app-launcher"/>
2020
<channel id="rcButton" typeId="rcButtonType"/>
2121
</channels>
2222

@@ -26,17 +26,22 @@
2626
<property name="deviceOS"/>
2727
<property name="deviceOSVersion"/>
2828
<property name="deviceOSReleaseVersion"/>
29+
<property name="thingTypeVersion">1</property>
2930
</properties>
3031
<representation-property>deviceId</representation-property>
3132

3233

3334
<config-description-ref uri="thing-type:lgwebos:WebOSTV"/>
3435
</thing-type>
3536

36-
<channel-type id="channelType">
37+
<channel-type id="channel">
3738
<item-type>String</item-type>
3839
<label>Channel</label>
3940
<description>Current Channel</description>
41+
<tags>
42+
<tag>Control</tag>
43+
<tag>Channel</tag>
44+
</tags>
4045
</channel-type>
4146
<channel-type id="toastType">
4247
<item-type>String</item-type>
@@ -48,10 +53,14 @@
4853
<label>Stop</label>
4954
<description>Stop Playback</description>
5055
</channel-type>
51-
<channel-type id="appLauncherChannelType">
56+
<channel-type id="app-launcher">
5257
<item-type>String</item-type>
5358
<label>Application</label>
5459
<description>Start application and monitor running applications.</description>
60+
<tags>
61+
<tag>Control</tag>
62+
<tag>App</tag>
63+
</tags>
5564
</channel-type>
5665
<channel-type id="rcButtonType">
5766
<item-type>String</item-type>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
2+
<update:update-descriptions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xmlns:update="https://openhab.org/schemas/update-description/v1.0.0"
4+
xsi:schemaLocation="https://openhab.org/schemas/update-description/v1.0.0 https://openhab.org/schemas/update-description-1.0.0.xsd">
5+
6+
<thing-type uid="lgwebos:WebOSTV">
7+
<instruction-set targetVersion="1">
8+
<update-channel id="channel">
9+
<type>lgwebos:channel</type>
10+
</update-channel>
11+
<update-channel id="appLauncher">
12+
<type>lgwebos:app-launcher</type>
13+
</update-channel>
14+
</instruction-set>
15+
</thing-type>
16+
17+
</update:update-descriptions>

0 commit comments

Comments
 (0)