Skip to content

Commit

Permalink
[lgwebos] Add semantic tag to Channel and Application channels
Browse files Browse the repository at this point in the history
Signed-off-by: Jimmy Tanagra <[email protected]>
  • Loading branch information
jimtng committed Feb 27, 2025
1 parent 1cefae4 commit 68c7849
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ thing-type.config.lgwebos.WebOSTV.useTLS.description = Enable Transport Layer Se

# channel types

channel-type.lgwebos.appLauncherChannelType.label = Application
channel-type.lgwebos.appLauncherChannelType.description = Start application and monitor running applications.
channel-type.lgwebos.channelType.label = Channel
channel-type.lgwebos.channelType.description = Current Channel
channel-type.lgwebos.app-launcher.label = Application
channel-type.lgwebos.app-launcher.description = Start application and monitor running applications.
channel-type.lgwebos.channel.label = Channel
channel-type.lgwebos.channel.description = Current Channel
channel-type.lgwebos.mediaStopType.label = Stop
channel-type.lgwebos.mediaStopType.description = Stop Playback
channel-type.lgwebos.rcButtonType.label = RCButton
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
<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="channel" typeId="channel"/>
<channel id="toast" typeId="toastType"/>
<channel id="mediaPlayer" typeId="system.media-control"/>
<channel id="mediaStop" typeId="mediaStopType"/>
<channel id="appLauncher" typeId="appLauncherChannelType"/>
<channel id="appLauncher" typeId="app-launcher"/>
<channel id="rcButton" typeId="rcButtonType"/>
</channels>

Expand All @@ -26,17 +26,22 @@
<property name="deviceOS"/>
<property name="deviceOSVersion"/>
<property name="deviceOSReleaseVersion"/>
<property name="thingTypeVersion">1</property>
</properties>
<representation-property>deviceId</representation-property>


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

<channel-type id="channelType">
<channel-type id="channel">
<item-type>String</item-type>
<label>Channel</label>
<description>Current Channel</description>
<tags>
<tag>Control</tag>
<tag>Channel</tag>
</tags>
</channel-type>
<channel-type id="toastType">
<item-type>String</item-type>
Expand All @@ -48,10 +53,14 @@
<label>Stop</label>
<description>Stop Playback</description>
</channel-type>
<channel-type id="appLauncherChannelType">
<channel-type id="app-launcher">
<item-type>String</item-type>
<label>Application</label>
<description>Start application and monitor running applications.</description>
<tags>
<tag>Control</tag>
<tag>Application</tag>
</tags>
</channel-type>
<channel-type id="rcButtonType">
<item-type>String</item-type>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<update:update-descriptions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:update="https://openhab.org/schemas/update-description/v1.0.0"
xsi:schemaLocation="https://openhab.org/schemas/update-description/v1.0.0 https://openhab.org/schemas/update-description-1.0.0.xsd">

<thing-type uid="lgwebos:WebOSTV">
<instruction-set targetVersion="1">
<update-channel id="channel">
<type>lgwebos:channel</type>
</update-channel>
<update-channel id="appLauncher">
<type>lgwebos:app-launcher</type>
</update-channel>
</instruction-set>
</thing-type>

</update:update-descriptions>

0 comments on commit 68c7849

Please sign in to comment.