Skip to content

Commit 17b8f0d

Browse files
authored
Set autoUpdatePolicy for WriteOnly channels (openhab#17465)
Signed-off-by: Michael Lobstein <[email protected]>
1 parent d97cfcd commit 17b8f0d

File tree

2 files changed

+20
-15
lines changed

2 files changed

+20
-15
lines changed

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

+15-15
Original file line numberDiff line numberDiff line change
@@ -142,18 +142,18 @@ nuvo.items:
142142

143143
```java
144144
// system
145-
Switch nuvo_system_alloff "All Zones Off" { channel="nuvo:amplifier:myamp:system#alloff", autoupdate="false" }
145+
Switch nuvo_system_alloff "All Zones Off" { channel="nuvo:amplifier:myamp:system#alloff" }
146146
Switch nuvo_system_allmute "All Zones Mute" { channel="nuvo:amplifier:myamp:system#allmute" }
147147
Switch nuvo_system_page "Page All Zones" { channel="nuvo:amplifier:myamp:system#page" }
148-
String nuvo_system_sendcmd "Send Command" { channel="nuvo:amplifier:myamp:system#sendcmd", autoupdate="false" }
148+
String nuvo_system_sendcmd "Send Command" { channel="nuvo:amplifier:myamp:system#sendcmd" }
149149
String nuvo_system_buttonpress "Zone Button: [%s]" { channel="nuvo:amplifier:myamp:system#buttonpress" }
150150
151151
// zones
152152
Switch nuvo_z1_power "Power" { channel="nuvo:amplifier:myamp:zone1#power" }
153153
Number nuvo_z1_source "Source Input [%s]" { channel="nuvo:amplifier:myamp:zone1#source" }
154154
Dimmer nuvo_z1_volume "Volume [%d %%]" { channel="nuvo:amplifier:myamp:zone1#volume" }
155155
Switch nuvo_z1_mute "Mute" { channel="nuvo:amplifier:myamp:zone1#mute" }
156-
Number nuvo_z1_favorite "Favorite" { channel="nuvo:amplifier:myamp:zone1#favorite", autoupdate="false" }
156+
Number nuvo_z1_favorite "Favorite" { channel="nuvo:amplifier:myamp:zone1#favorite" }
157157
Player nuvo_z1_control "Control" { channel="nuvo:amplifier:myamp:zone1#control" }
158158
Number nuvo_z1_treble "Treble Adjustment [%s]" { channel="nuvo:amplifier:myamp:zone1#treble" }
159159
Number nuvo_z1_bass "Bass Adjustment [%s]" { channel="nuvo:amplifier:myamp:zone1#bass" }
@@ -174,9 +174,9 @@ String nuvo_s1_play_mode "Play Mode: [%s]" { channel="nuvo:amplifier:myamp:sourc
174174
Number:Time nuvo_s1_track_length "Track Length: [%d %unit%]" { channel="nuvo:amplifier:myamp:source1#track_length" }
175175
Number:Time nuvo_s1_track_position "Track Position: [%d %unit%]" { channel="nuvo:amplifier:myamp:source1#track_position" }
176176
String nuvo_s1_button_press "Button: [%s]" { channel="nuvo:amplifier:myamp:source1#button_press" }
177-
// String nuvo_s1_art_url "URL: [%s]" { channel="nuvo:amplifier:myamp:source1#art_url", autoupdate="false" }
177+
// String nuvo_s1_art_url "URL: [%s]" { channel="nuvo:amplifier:myamp:source1#art_url" }
178178
// Image nuvo_s1_album_art { channel="nuvo:amplifier:myamp:source1#album_art" }
179-
// String nuvo_s1_source_menu { channel="nuvo:amplifier:myamp:source1#source_menu", autoupdate="false" }
179+
// String nuvo_s1_source_menu { channel="nuvo:amplifier:myamp:source1#source_menu" }
180180
181181
String nuvo_s2_display_line1 "Line 1: [%s]" { channel="nuvo:amplifier:myamp:source2#display_line1" }
182182
String nuvo_s2_display_line2 "Line 2: [%s]" { channel="nuvo:amplifier:myamp:source2#display_line2" }
@@ -186,9 +186,9 @@ String nuvo_s2_play_mode "Play Mode: [%s]" { channel="nuvo:amplifier:myamp:sourc
186186
Number:Time nuvo_s2_track_length "Track Length: [%d %unit%]" { channel="nuvo:amplifier:myamp:source2#track_length" }
187187
Number:Time nuvo_s2_track_position "Track Position: [%d %unit%]" { channel="nuvo:amplifier:myamp:source2#track_position" }
188188
String nuvo_s2_button_press "Button: [%s]" { channel="nuvo:amplifier:myamp:source2#button_press" }
189-
// String nuvo_s2_art_url "URL: [%s]" { channel="nuvo:amplifier:myamp:source2#art_url", autoupdate="false" }
189+
// String nuvo_s2_art_url "URL: [%s]" { channel="nuvo:amplifier:myamp:source2#art_url" }
190190
// Image nuvo_s2_album_art { channel="nuvo:amplifier:myamp:source2#album_art" }
191-
// String nuvo_s2_source_menu { channel="nuvo:amplifier:myamp:source2#source_menu", autoupdate="false" }
191+
// String nuvo_s2_source_menu { channel="nuvo:amplifier:myamp:source2#source_menu" }
192192
193193
String nuvo_s3_display_line1 "Line 1: [%s]" { channel="nuvo:amplifier:myamp:source3#display_line1" }
194194
String nuvo_s3_display_line2 "Line 2: [%s]" { channel="nuvo:amplifier:myamp:source3#display_line2" }
@@ -198,9 +198,9 @@ String nuvo_s3_play_mode "Play Mode: [%s]" { channel="nuvo:amplifier:myamp:sourc
198198
Number:Time nuvo_s3_track_length "Track Length: [%d %unit%]" { channel="nuvo:amplifier:myamp:source3#track_length" }
199199
Number:Time nuvo_s3_track_position "Track Position: [%d %unit%]" { channel="nuvo:amplifier:myamp:source3#track_position" }
200200
String nuvo_s3_button_press "Button: [%s]" { channel="nuvo:amplifier:myamp:source3#button_press" }
201-
// String nuvo_s3_art_url "URL: [%s]" { channel="nuvo:amplifier:myamp:source3#art_url", autoupdate="false" }
201+
// String nuvo_s3_art_url "URL: [%s]" { channel="nuvo:amplifier:myamp:source3#art_url" }
202202
// Image nuvo_s3_album_art { channel="nuvo:amplifier:myamp:source3#album_art" }
203-
// String nuvo_s3_source_menu { channel="nuvo:amplifier:myamp:source3#source_menu", autoupdate="false" }
203+
// String nuvo_s3_source_menu { channel="nuvo:amplifier:myamp:source3#source_menu" }
204204
205205
String nuvo_s4_display_line1 "Line 1: [%s]" { channel="nuvo:amplifier:myamp:source4#display_line1" }
206206
String nuvo_s4_display_line2 "Line 2: [%s]" { channel="nuvo:amplifier:myamp:source4#display_line2" }
@@ -210,9 +210,9 @@ String nuvo_s4_play_mode "Play Mode: [%s]" { channel="nuvo:amplifier:myamp:sourc
210210
Number:Time nuvo_s4_track_length "Track Length: [%d %unit%]" { channel="nuvo:amplifier:myamp:source4#track_length" }
211211
Number:Time nuvo_s4_track_position "Track Position: [%d %unit%]" { channel="nuvo:amplifier:myamp:source4#track_position" }
212212
String nuvo_s4_button_press "Button: [%s]" { channel="nuvo:amplifier:myamp:source4#button_press" }
213-
// String nuvo_s4_art_url "URL: [%s]" { channel="nuvo:amplifier:myamp:source4#art_url", autoupdate="false" }
213+
// String nuvo_s4_art_url "URL: [%s]" { channel="nuvo:amplifier:myamp:source4#art_url" }
214214
// Image nuvo_s4_album_art { channel="nuvo:amplifier:myamp:source4#album_art" }
215-
// String nuvo_s4_source_menu { channel="nuvo:amplifier:myamp:source4#source_menu", autoupdate="false" }
215+
// String nuvo_s4_source_menu { channel="nuvo:amplifier:myamp:source4#source_menu" }
216216
217217
String nuvo_s5_display_line1 "Line 1: [%s]" { channel="nuvo:amplifier:myamp:source5#display_line1" }
218218
String nuvo_s5_display_line2 "Line 2: [%s]" { channel="nuvo:amplifier:myamp:source5#display_line2" }
@@ -222,9 +222,9 @@ String nuvo_s5_play_mode "Play Mode: [%s]" { channel="nuvo:amplifier:myamp:sourc
222222
Number:Time nuvo_s5_track_length "Track Length: [%d %unit%]" { channel="nuvo:amplifier:myamp:source5#track_length" }
223223
Number:Time nuvo_s5_track_position "Track Position: [%d %unit%]" { channel="nuvo:amplifier:myamp:source5#track_position" }
224224
String nuvo_s5_button_press "Button: [%s]" { channel="nuvo:amplifier:myamp:source5#button_press" }
225-
// String nuvo_s5_art_url "URL: [%s]" { channel="nuvo:amplifier:myamp:source5#art_url", autoupdate="false" }
225+
// String nuvo_s5_art_url "URL: [%s]" { channel="nuvo:amplifier:myamp:source5#art_url" }
226226
// Image nuvo_s5_album_art { channel="nuvo:amplifier:myamp:source5#album_art" }
227-
// String nuvo_s5_source_menu { channel="nuvo:amplifier:myamp:source5#source_menu", autoupdate="false" }
227+
// String nuvo_s5_source_menu { channel="nuvo:amplifier:myamp:source5#source_menu" }
228228
229229
String nuvo_s6_display_line1 "Line 1: [%s]" { channel="nuvo:amplifier:myamp:source6#display_line1" }
230230
String nuvo_s6_display_line2 "Line 2: [%s]" { channel="nuvo:amplifier:myamp:source6#display_line2" }
@@ -234,9 +234,9 @@ String nuvo_s6_play_mode "Play Mode: [%s]" { channel="nuvo:amplifier:myamp:sourc
234234
Number:Time nuvo_s6_track_length "Track Length: [%d %unit%]" { channel="nuvo:amplifier:myamp:source6#track_length" }
235235
Number:Time nuvo_s6_track_position "Track Position: [%d %unit%]" { channel="nuvo:amplifier:myamp:source6#track_position" }
236236
String nuvo_s6_button_press "Button: [%s]" { channel="nuvo:amplifier:myamp:source6#button_press" }
237-
// String nuvo_s6_art_url "URL: [%s]" { channel="nuvo:amplifier:myamp:source6#art_url", autoupdate="false" }
237+
// String nuvo_s6_art_url "URL: [%s]" { channel="nuvo:amplifier:myamp:source6#art_url" }
238238
// Image nuvo_s6_album_art { channel="nuvo:amplifier:myamp:source6#album_art" }
239-
// String nuvo_s6_source_menu { channel="nuvo:amplifier:myamp:source6#source_menu", autoupdate="false" }
239+
// String nuvo_s6_source_menu { channel="nuvo:amplifier:myamp:source6#source_menu" }
240240
241241
```
242242

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

+5
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,7 @@
392392
<item-type>Switch</item-type>
393393
<label>All Off</label>
394394
<description>Turn All Zones Off</description>
395+
<autoUpdatePolicy>veto</autoUpdatePolicy>
395396
</channel-type>
396397

397398
<channel-type id="page">
@@ -404,6 +405,7 @@
404405
<item-type>String</item-type>
405406
<label>Send Command</label>
406407
<description>Send a command to the amplifier</description>
408+
<autoUpdatePolicy>veto</autoUpdatePolicy>
407409
</channel-type>
408410

409411
<channel-type id="source">
@@ -416,6 +418,7 @@
416418
<item-type>Number</item-type>
417419
<label>Favorite</label>
418420
<description>Select a Preset Favorite for the Zone</description>
421+
<autoUpdatePolicy>veto</autoUpdatePolicy>
419422
</channel-type>
420423

421424
<channel-type id="control">
@@ -532,6 +535,7 @@
532535
<item-type>String</item-type>
533536
<label>Album Art URL</label>
534537
<description>The URL of the Album Art JPG for this source that is displayed on a CTP-36</description>
538+
<autoUpdatePolicy>veto</autoUpdatePolicy>
535539
</channel-type>
536540

537541
<channel-type id="album_art">
@@ -545,6 +549,7 @@
545549
<item-type>String</item-type>
546550
<label>Source Menu</label>
547551
<description>A selection containing the custom menu tree options for this source</description>
552+
<autoUpdatePolicy>veto</autoUpdatePolicy>
548553
</channel-type>
549554

550555
</thing:thing-descriptions>

0 commit comments

Comments
 (0)