Skip to content

Commit 02b29be

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

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ The following channels are available:
3737
|--------------------|----------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|
3838
| activeApp | String | A dropdown containing a list of all apps installed on the Roku. The app currently running is automatically selected. The list updates every 10 minutes. |
3939
| activeAppName | String | The name of the current app (ReadOnly). |
40-
| button | String | Sends a remote control command the Roku. See list of available commands below. |
40+
| button | String | Sends a remote control command the Roku. See list of available commands below. (WriteOnly) |
4141
| control | Player | Control Playback e.g. play/pause/next/previous |
4242
| playMode | String | The current playback mode ie: stop, play, pause (ReadOnly). |
4343
| timeElapsed | Number:Time | The total number of seconds of playback time elapsed for the current playing title (ReadOnly). |
@@ -109,7 +109,7 @@ roku:roku_tv:mytv1 "My Roku TV" [ hostName="192.168.10.1", refresh=10 ]
109109

110110
String Player_ActiveApp "Current App: [%s]" { channel="roku:roku_player:myplayer1:activeApp" }
111111
String Player_ActiveAppName "Current App Name: [%s]" { channel="roku:roku_player:myplayer1:activeAppName" }
112-
String Player_Button "Send Command to Roku" { channel="roku:roku_player:myplayer1:button", autoupdate="false" }
112+
String Player_Button "Send Command to Roku" { channel="roku:roku_player:myplayer1:button" }
113113
Player Player_Control "Control" { channel="roku:roku_player:myplayer1:control" }
114114
String Player_PlayMode "Status: [%s]" { channel="roku:roku_player:myplayer1:playMode" }
115115
Number:Time Player_TimeElapsed "Elapsed Time: [%d %unit%]" { channel="roku:roku_player:myplayer1:timeElapsed" }
@@ -121,7 +121,7 @@ Switch Player_Power "Power: [%s]" { channel="roku:rok
121121
String Player_PowerState "Power State: [%s] { channel="roku:roku_tv:mytv1:powerState" }
122122
String Player_ActiveApp "Current App: [%s]" { channel="roku:roku_tv:mytv1:activeApp" }
123123
String Player_ActiveAppName "Current App Name: [%s]" { channel="roku:roku_tv:mytv1:activeAppName" }
124-
String Player_Button "Send Command to Roku" { channel="roku:roku_tv:mytv1:button", autoupdate="false" }
124+
String Player_Button "Send Command to Roku" { channel="roku:roku_tv:mytv1:button" }
125125
Player Player_Control "Control" { channel="roku:roku_tv:mytv1:control" }
126126
String Player_PlayMode "Status: [%s]" { channel="roku:roku_tv:mytv1:playMode" }
127127
Number:Time Player_TimeElapsed "Elapsed Time: [%d %unit%]" { channel="roku:roku_tv:mytv1:timeElapsed" }

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

+2
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@
101101
<option value="FindRemote">Find Remote</option>
102102
</options>
103103
</state>
104+
<autoUpdatePolicy>veto</autoUpdatePolicy>
104105
</channel-type>
105106

106107
<channel-type id="buttonTv">
@@ -140,6 +141,7 @@
140141
<option value="POWERON">Power On</option>
141142
</options>
142143
</state>
144+
<autoUpdatePolicy>veto</autoUpdatePolicy>
143145
</channel-type>
144146

145147
<channel-type id="control">

0 commit comments

Comments
 (0)