Skip to content

Commit efeee46

Browse files
authored
Set autoUpdatePolicy for WriteOnly channels (openhab#17469)
Signed-off-by: Michael Lobstein <[email protected]>
1 parent 02b29be commit efeee46

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,13 @@ tivo:sckt:Living_Room "Living Room TiVo" [ host="192.168.0.19" ]
136136
```java
137137
/* TIVO */
138138
String TiVo_Status "Status" {channel="tivo:sckt:Living_Room:dvrStatus"}
139-
String TiVo_MenuScreen "Menu Screen" {channel="tivo:sckt:Living_Room:menuTeleport", autoupdate="false"}
139+
String TiVo_MenuScreen "Menu Screen" {channel="tivo:sckt:Living_Room:menuTeleport"}
140140
Number TiVo_SetChannel "Current Channel" {channel="tivo:sckt:Living_Room:channelSet"}
141141
Number TiVo_SetChannelName "Channel Name [MAP(tivo.map):%s]" {channel="tivo:sckt:Living_Room:channelSet"}
142142
Number TiVo_ForceChannel "Force Channel" {channel="tivo:sckt:Living_Room:channelForce"}
143143
Number TiVo_Recording "Recording [MAP(tivo.map):rec-%s]" {channel="tivo:sckt:Living_Room:isRecording"}
144-
String TiVo_IRCmd "Ir Cmd" {channel="tivo:sckt:Living_Room:irCommand", autoupdate="false"}
145-
String TiVo_KbdCmd "Keyboard Cmd" {channel="tivo:sckt:Living_Room:kbdCommand", autoupdate="false"}
144+
String TiVo_IRCmd "Ir Cmd" {channel="tivo:sckt:Living_Room:irCommand"}
145+
String TiVo_KbdCmd "Keyboard Cmd" {channel="tivo:sckt:Living_Room:kbdCommand"}
146146
String TiVo_KeyboardStr "Search String"
147147
```
148148

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

+5-3
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
<label>Change Menu Screen</label>
107107
<description>Change(TELEPORT) to one of the following TiVo menu screens: TIVO (Home), LIVE TV, GUIDE, NOW PLAYING (My
108108
Shows), SEARCH, NETFLIX. Type: String</description>
109-
<state readOnly="false">
109+
<state>
110110
<options>
111111
<option value="TIVO">TIVO</option>
112112
<option value="LIVETV">LIVETV</option>
@@ -116,13 +116,14 @@
116116
<option value="NETFLIX">NETFLIX</option>
117117
</options>
118118
</state>
119+
<autoUpdatePolicy>veto</autoUpdatePolicy>
119120
</channel-type>
120121
<channel-type id="irCommand">
121122
<item-type>String</item-type>
122123
<label>Remote Control Button</label>
123124
<description>Send a simulated button push (IRCODE) from the remote control to the TiVo. See README.md for supported
124125
codes. Type: String</description>
125-
<state readOnly="false">
126+
<state>
126127
<options>
127128
<option value="UP">UP</option>
128129
<option value="DOWN">DOWN</option>
@@ -181,13 +182,14 @@
181182
<option value="VIDEO_MODE_NATIVE">VIDEO_MODE_NATIVE</option>
182183
</options>
183184
</state>
185+
<autoUpdatePolicy>veto</autoUpdatePolicy>
184186
</channel-type>
185187
<channel-type id="kbdCommand">
186188
<item-type>String</item-type>
187189
<label>Keyboard Command</label>
188190
<description>Sends a code (KEYBOARD) corresponding to a keyboard key press to the TiVo e.g. A-Z. See Appendix A in
189191
document TCP Remote Protocol 1.1 for supported characters and special character codes. Type: String</description>
190-
<state readOnly="false"/>
192+
<autoUpdatePolicy>veto</autoUpdatePolicy>
191193
</channel-type>
192194
<channel-type id="dvrStatus">
193195
<item-type>String</item-type>

0 commit comments

Comments
 (0)