Skip to content

Commit 530cfb8

Browse files
authored
Add semantic tags (#18388)
Signed-off-by: Michael Lobstein <[email protected]>
1 parent 1584e99 commit 530cfb8

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

bundles/org.openhab.binding.tivo/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ All devices support the following channels:
5555
|-----------------|-----------------|---------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
5656
| channelSet | Number (1-9999) | Current Channel - Request (SETCH) | Displays the current channel number. When changed, tunes the DVR to the specified channel (unless a recording is in progress on all available tuners). The TiVo must be in Live TV mode for this command to work. |
5757
| channelForce | Number (1-9999) | Current Channel - Forced (FORCECH) | Displays the current channel number. When changed, tunes the DVR to the specified channel, **cancelling any recordings in progress if necessary** i.e. when all tuners are already in use / recording. The TiVo must be in Live TV mode for this command to work. |
58+
| isRecording | Number (0-1) | Recording | Indicates if the current channel is recording. |
5859
| menuTeleport | String | Change Special/Menu Screen (TELEPORT) | Change to one of the following TiVo menu screens: TIVO (Home), LIVETV, GUIDE, NOWPLAYING (My Shows), SEARCH, NETFLIX. |
5960
| irCommand | String | Remote Control Button (IRCOMMAND) | Send a simulated button push from the remote control to the TiVo. See below for available IR COMMANDS. |
6061
| kbdCommand | String | Keyboard Command (KEYBOARD) | Sends a code corresponding to a keyboard key press to the TiVo e.g. A-Z. See Appendix A in document TCP Remote Protocol 1.1 for supported characters and special character codes. |

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
<channel id="dvrStatus" typeId="dvrStatus"/>
2121
</channels>
2222

23+
<properties>
24+
<property name="thingTypeVersion">1</property>
25+
</properties>
26+
2327
<representation-property>host</representation-property>
2428

2529
<config-description>
@@ -84,6 +88,10 @@
8488
<description>Displays the current channel number. When changed (SETCH), tunes the DVR to the specified channel (unless
8589
a recording is in progress on all available tuners). The TiVo must be in Live TV mode for this command to work. Type:
8690
Number (1-9999) [Decimals allowed for OTA sub-channels], DisplayFormat: %d</description>
91+
<tags>
92+
<tag>Control</tag>
93+
<tag>Channel</tag>
94+
</tags>
8795
<state min="1" max="9999" step="0.1" pattern="%d"/>
8896
</channel-type>
8997
<channel-type id="channelForce">
@@ -93,6 +101,10 @@
93101
cancelling any recordings in progress if necessary i.e. all tuners are already in use / recording. The TiVo must be
94102
in Live TV mode for this command to work. Type: Number (1-9999) [Decimals allowed for OTA sub-channels],
95103
DisplayFormat: %d</description>
104+
<tags>
105+
<tag>Control</tag>
106+
<tag>Channel</tag>
107+
</tags>
96108
<state min="1" max="9999" step="0.1" pattern="%d"></state>
97109
</channel-type>
98110
<channel-type id="isRecording">
Lines changed: 17 additions & 0 deletions
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="tivo:sckt">
7+
<instruction-set targetVersion="1">
8+
<update-channel id="channelSet">
9+
<type>tivo:channelSet</type>
10+
</update-channel>
11+
<update-channel id="channelForce">
12+
<type>tivo:channelForce</type>
13+
</update-channel>
14+
</instruction-set>
15+
</thing-type>
16+
17+
</update:update-descriptions>

0 commit comments

Comments
 (0)