Skip to content

Commit eb2ed08

Browse files
authored
[roku] Add semantic tag to Active App and Active Channel channels (#18387)
* Add semantic tags Signed-off-by: Michael Lobstein <[email protected]>
1 parent 530cfb8 commit eb2ed08

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

Diff for: bundles/org.openhab.binding.roku/src/main/resources/OH-INF/thing/roku.xml

+10-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<property name="Serial Number">unknown</property>
3131
<property name="Device Id">unknown</property>
3232
<property name="Software Version">unknown</property>
33-
<property name="thingTypeVersion">2</property>
33+
<property name="thingTypeVersion">3</property>
3434
</properties>
3535

3636
<representation-property>uuid</representation-property>
@@ -73,7 +73,7 @@
7373
<property name="Serial Number">unknown</property>
7474
<property name="Device Id">unknown</property>
7575
<property name="Software Version">unknown</property>
76-
<property name="thingTypeVersion">2</property>
76+
<property name="thingTypeVersion">3</property>
7777
</properties>
7878

7979
<representation-property>uuid</representation-property>
@@ -159,6 +159,10 @@
159159
<item-type>String</item-type>
160160
<label>Active App</label>
161161
<description>The Currently Running App on the Roku</description>
162+
<tags>
163+
<tag>Control</tag>
164+
<tag>App</tag>
165+
</tags>
162166
</channel-type>
163167

164168
<channel-type id="activeAppName">
@@ -211,6 +215,10 @@
211215
<item-type>String</item-type>
212216
<label>Active Channel</label>
213217
<description>The TV Channel Currently Selected on the Roku TV</description>
218+
<tags>
219+
<tag>Control</tag>
220+
<tag>Channel</tag>
221+
</tags>
214222
</channel-type>
215223

216224
<channel-type id="signalMode">

Diff for: bundles/org.openhab.binding.roku/src/main/resources/OH-INF/update/update.xml

+15
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@
2121
<type>roku:progress</type>
2222
</add-channel>
2323
</instruction-set>
24+
25+
<instruction-set targetVersion="3">
26+
<update-channel id="activeApp">
27+
<type>roku:activeApp</type>
28+
</update-channel>
29+
</instruction-set>
2430
</thing-type>
2531

2632
<thing-type uid="roku:roku_tv">
@@ -47,6 +53,15 @@
4753
<type>roku:progress</type>
4854
</add-channel>
4955
</instruction-set>
56+
57+
<instruction-set targetVersion="3">
58+
<update-channel id="activeApp">
59+
<type>roku:activeApp</type>
60+
</update-channel>
61+
<update-channel id="activeChannel">
62+
<type>roku:activeChannel</type>
63+
</update-channel>
64+
</instruction-set>
5065
</thing-type>
5166

5267
</update:update-descriptions>

0 commit comments

Comments
 (0)