]> git.basschouten.com Git - openhab-addons.git/commitdiff
Set autoUpdatePolicy for WriteOnly channels (#17468)
authormlobstein <michael.lobstein@gmail.com>
Tue, 24 Sep 2024 06:59:10 +0000 (01:59 -0500)
committerGitHub <noreply@github.com>
Tue, 24 Sep 2024 06:59:10 +0000 (08:59 +0200)
Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
bundles/org.openhab.binding.roku/README.md
bundles/org.openhab.binding.roku/src/main/resources/OH-INF/thing/roku.xml

index 9063a6e5e8d521a1242f5fe86027bbc4bc018bc4..60b88812a67ed12ac6339a2839248cc7d5ff1425 100644 (file)
@@ -37,7 +37,7 @@ The following channels are available:
 |--------------------|----------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|
 | 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.         |
 | activeAppName      | String               | The name of the current app (ReadOnly).                                                                                                                         |
-| button             | String               | Sends a remote control command the Roku. See list of available commands below.                                                                                  |
+| button             | String               | Sends a remote control command the Roku. See list of available commands below. (WriteOnly)                                                                      |
 | control            | Player               | Control Playback e.g. play/pause/next/previous                                                                                                                  |
 | playMode           | String               | The current playback mode ie: stop, play, pause (ReadOnly).                                                                                                     |
 | 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 ]
 
 String Player_ActiveApp        "Current App: [%s]"         { channel="roku:roku_player:myplayer1:activeApp" }
 String Player_ActiveAppName    "Current App Name: [%s]"    { channel="roku:roku_player:myplayer1:activeAppName" }
-String Player_Button           "Send Command to Roku"      { channel="roku:roku_player:myplayer1:button", autoupdate="false" }
+String Player_Button           "Send Command to Roku"      { channel="roku:roku_player:myplayer1:button" }
 Player Player_Control          "Control"                   { channel="roku:roku_player:myplayer1:control" }
 String Player_PlayMode         "Status: [%s]"              { channel="roku:roku_player:myplayer1:playMode" }
 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
 String Player_PowerState         "Power State: [%s]          { channel="roku:roku_tv:mytv1:powerState" }
 String Player_ActiveApp          "Current App: [%s]"         { channel="roku:roku_tv:mytv1:activeApp" }
 String Player_ActiveAppName      "Current App Name: [%s]"    { channel="roku:roku_tv:mytv1:activeAppName" }
-String Player_Button             "Send Command to Roku"      { channel="roku:roku_tv:mytv1:button", autoupdate="false" }
+String Player_Button             "Send Command to Roku"      { channel="roku:roku_tv:mytv1:button" }
 Player Player_Control            "Control"                   { channel="roku:roku_tv:mytv1:control" }
 String Player_PlayMode           "Status: [%s]"              { channel="roku:roku_tv:mytv1:playMode" }
 Number:Time Player_TimeElapsed   "Elapsed Time: [%d %unit%]" { channel="roku:roku_tv:mytv1:timeElapsed" }
index ffbb68d18036b77e6ef5c0498e0707f5e1307464..78e995536d513ebc80c77bfec495b79f24eda068 100644 (file)
                                <option value="FindRemote">Find Remote</option>
                        </options>
                </state>
+               <autoUpdatePolicy>veto</autoUpdatePolicy>
        </channel-type>
 
        <channel-type id="buttonTv">
                                <option value="POWERON">Power On</option>
                        </options>
                </state>
+               <autoUpdatePolicy>veto</autoUpdatePolicy>
        </channel-type>
 
        <channel-type id="control">