Set autoUpdatePolicy for WriteOnly channels (#17466)

Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
This commit is contained in:
mlobstein 2024-09-24 01:58:10 -05:00 committed by Ciprian Pascu
parent 7c692592ce
commit d0ec8b5887
2 changed files with 3 additions and 2 deletions

View File

@ -114,7 +114,7 @@ The following channels are available:
| sub_shift | Number | Sets the subtitle shift (-10 to 10) [10x models and up] (note more than 5 from 0 throws an error on the BDP103) |
| hdmi_mode | String | Sets the current HDMI output mode (options vary by model; see notes above for allowed values) |
| hdr_mode | String | Sets current HDR output mode (Auto, On, Off) [UDP-203/205 only] |
| remote_button | String | Simulate pressing a button on the remote control (3 letter code; codes can be found in Appendix A below) |
| remote_button | String | Simulate pressing a button on the remote control [3 letter code; codes can be found in Appendix A below] (WriteOnly) |
## Full Example
@ -160,7 +160,7 @@ Number oppo_osd_position "OSD Position [%s]" { channel="oppo:player:myoppo:osd_p
Number oppo_sub_shift "Subtitle Shift [%s]" { channel="oppo:player:myoppo:sub_shift" }
String oppo_hdmi_mode "HDMI Mode [%s]" { channel="oppo:player:myoppo:hdmi_mode" }
String oppo_hdr_mode "HDR Mode [%s]" { channel="oppo:player:myoppo:hdr_mode" }
String oppo_remote_button "Remote Button [%s]" { channel="oppo:player:myoppo:remote_button", autoupdate="false" }
String oppo_remote_button "Remote Button [%s]" { channel="oppo:player:myoppo:remote_button" }
```
secondsformat.js:

View File

@ -341,5 +341,6 @@
<option value="GPA">Gapless Play</option>
</options>
</state>
<autoUpdatePolicy>veto</autoUpdatePolicy>
</channel-type>
</thing:thing-descriptions>