]> git.basschouten.com Git - openhab-addons.git/commitdiff
[homeconnect] Let the binding update item state when handling a command (#10749)
authorlolodomo <lg.hc@free.fr>
Sun, 23 May 2021 17:48:15 +0000 (19:48 +0200)
committerGitHub <noreply@github.com>
Sun, 23 May 2021 17:48:15 +0000 (19:48 +0200)
To avoid the core framework updating automatically an item state while a
command is sent to this item but its handling by the binding is failing
or ignored

Fix #10700

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
bundles/org.openhab.binding.homeconnect/src/main/resources/OH-INF/thing/thing-types.xml

index 479d4e1caded4334aa1a164089418c1e400f2da2..54c90e0a1c8b12989946001664c09fc7748cd2e8 100644 (file)
                <item-type>String</item-type>
                <label>Selected Program</label>
                <description>This state describes the selected program of the home appliance.</description>
+               <autoUpdatePolicy>veto</autoUpdatePolicy>
        </channel-type>
        <channel-type id="remaining_program_time_state">
                <item-type>Number:Time</item-type>
                                <option value="LaundryCare.Washer.EnumType.Temperature.UlExtraHot">Extra hot (US/CA)</option>
                        </options>
                </state>
+               <autoUpdatePolicy>veto</autoUpdatePolicy>
        </channel-type>
        <channel-type id="laundry_care_washer_spin_speed">
                <item-type>String</item-type>
                                <option value="LaundryCare.Washer.EnumType.SpinSpeed.UlHigh">High (US/CA)</option>
                        </options>
                </state>
+               <autoUpdatePolicy>veto</autoUpdatePolicy>
        </channel-type>
        <channel-type id="laundry_care_washer_idos1">
                <item-type>String</item-type>
                                <option value="LaundryCare.Washer.EnumType.IDosingLevel.Strong">Strong</option>
                        </options>
                </state>
+               <autoUpdatePolicy>veto</autoUpdatePolicy>
        </channel-type>
        <channel-type id="laundry_care_washer_idos2">
                <item-type>String</item-type>
                                <option value="LaundryCare.Washer.EnumType.IDosingLevel.Strong">Strong</option>
                        </options>
                </state>
+               <autoUpdatePolicy>veto</autoUpdatePolicy>
        </channel-type>
        <channel-type id="setpoint_temperature_refrigerator">
                <item-type>Number:Temperature</item-type>
                <label>Drying Target</label>
                <description>Specifies the desired dryness setting.</description>
                <state readOnly="false"/>
+               <autoUpdatePolicy>veto</autoUpdatePolicy>
        </channel-type>
        <channel-type id="hood_venting_level">
                <item-type>String</item-type>