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

index 015bb517fe92d15f4ec4ab84723db4ff06f587d2..e416cf24c47103522488459e44086f89bc2b214e 100644 (file)
@@ -136,13 +136,13 @@ tivo:sckt:Living_Room "Living Room TiVo" [ host="192.168.0.19" ]
 ```java
 /* TIVO */
 String      TiVo_Status         "Status"          {channel="tivo:sckt:Living_Room:dvrStatus"}
-String      TiVo_MenuScreen     "Menu Screen"     {channel="tivo:sckt:Living_Room:menuTeleport", autoupdate="false"}
+String      TiVo_MenuScreen     "Menu Screen"     {channel="tivo:sckt:Living_Room:menuTeleport"}
 Number      TiVo_SetChannel     "Current Channel" {channel="tivo:sckt:Living_Room:channelSet"}
 Number      TiVo_SetChannelName "Channel Name     [MAP(tivo.map):%s]" {channel="tivo:sckt:Living_Room:channelSet"}
 Number      TiVo_ForceChannel   "Force Channel"   {channel="tivo:sckt:Living_Room:channelForce"}
 Number      TiVo_Recording      "Recording        [MAP(tivo.map):rec-%s]" {channel="tivo:sckt:Living_Room:isRecording"}
-String      TiVo_IRCmd          "Ir Cmd"          {channel="tivo:sckt:Living_Room:irCommand", autoupdate="false"}
-String      TiVo_KbdCmd         "Keyboard Cmd"    {channel="tivo:sckt:Living_Room:kbdCommand", autoupdate="false"}
+String      TiVo_IRCmd          "Ir Cmd"          {channel="tivo:sckt:Living_Room:irCommand"}
+String      TiVo_KbdCmd         "Keyboard Cmd"    {channel="tivo:sckt:Living_Room:kbdCommand"}
 String      TiVo_KeyboardStr    "Search String"
 ```
 
index fb152cea50a419d3a12ffd98e76857f7631856b9..5eead3962673c570b3a267eba8fe54b929a8de91 100644 (file)
                <label>Change Menu Screen</label>
                <description>Change(TELEPORT) to one of the following TiVo menu screens: TIVO (Home), LIVE TV, GUIDE, NOW PLAYING (My
                        Shows), SEARCH, NETFLIX. Type: String</description>
-               <state readOnly="false">
+               <state>
                        <options>
                                <option value="TIVO">TIVO</option>
                                <option value="LIVETV">LIVETV</option>
                                <option value="NETFLIX">NETFLIX</option>
                        </options>
                </state>
+               <autoUpdatePolicy>veto</autoUpdatePolicy>
        </channel-type>
        <channel-type id="irCommand">
                <item-type>String</item-type>
                <label>Remote Control Button</label>
                <description>Send a simulated button push (IRCODE) from the remote control to the TiVo. See README.md for supported
                        codes. Type: String</description>
-               <state readOnly="false">
+               <state>
                        <options>
                                <option value="UP">UP</option>
                                <option value="DOWN">DOWN</option>
                                <option value="VIDEO_MODE_NATIVE">VIDEO_MODE_NATIVE</option>
                        </options>
                </state>
+               <autoUpdatePolicy>veto</autoUpdatePolicy>
        </channel-type>
        <channel-type id="kbdCommand">
                <item-type>String</item-type>
                <label>Keyboard Command</label>
                <description>Sends a code (KEYBOARD) 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. Type: String</description>
-               <state readOnly="false"/>
+               <autoUpdatePolicy>veto</autoUpdatePolicy>
        </channel-type>
        <channel-type id="dvrStatus">
                <item-type>String</item-type>