]> git.basschouten.com Git - openhab-addons.git/commitdiff
[mqtt.espmilighthub] fix upgrade instructions (#16127)
authorCody Cutrer <cody@cutrer.us>
Wed, 27 Dec 2023 23:21:50 +0000 (16:21 -0700)
committerGitHub <noreply@github.com>
Wed, 27 Dec 2023 23:21:50 +0000 (00:21 +0100)
since #13801, it's not been possible to add new milight things,
because the thing XML already has the new channel types, but not
the thingTypeVersion property set, so it would try to apply the
update instructions and error about duplicate channels

Signed-off-by: Cody Cutrer <cody@cutrer.us>
bundles/org.openhab.binding.mqtt.espmilighthub/src/main/resources/OH-INF/thing/thing-types.xml

index 3ca8031feaaa9fc2d5e5d622c194e6d60987f9f4..bd05361d6e96083ed76ed273f0d55a22233e7faf 100644 (file)
@@ -19,6 +19,9 @@
                        <channel id="bulbMode" typeId="bulbMode"/>
                        <channel id="command" typeId="command"/>
                </channels>
+               <properties>
+                       <property name="thingTypeVersion">1</property>
+               </properties>
                <config-description-ref uri="thing-type:mqtt:rgbandcct"/>
        </thing-type>
 
@@ -37,6 +40,9 @@
                        <channel id="bulbMode" typeId="bulbMode"/>
                        <channel id="command" typeId="command"/>
                </channels>
+               <properties>
+                       <property name="thingTypeVersion">1</property>
+               </properties>
                <config-description-ref uri="thing-type:mqtt:rgbandcct"/>
        </thing-type>
 
@@ -53,6 +59,9 @@
                        <channel id="colourTemperatureAbs" typeId="system.color-temperature-abs"/>
                        <channel id="command" typeId="command"/>
                </channels>
+               <properties>
+                       <property name="thingTypeVersion">1</property>
+               </properties>
                <config-description-ref uri="thing-type:mqtt:cct"/>
        </thing-type>
 
@@ -69,6 +78,9 @@
                        <channel id="colourTemperatureAbs" typeId="system.color-temperature-abs"/>
                        <channel id="command" typeId="command"/>
                </channels>
+               <properties>
+                       <property name="thingTypeVersion">1</property>
+               </properties>
                <config-description-ref uri="thing-type:mqtt:cct"/>
        </thing-type>
 
@@ -85,6 +97,9 @@
                        <channel id="bulbMode" typeId="bulbMode"/>
                        <channel id="command" typeId="command"/>
                </channels>
+               <properties>
+                       <property name="thingTypeVersion">1</property>
+               </properties>
                <config-description-ref uri="thing-type:mqtt:rgbw"/>
        </thing-type>
 
                        <channel id="bulbMode" typeId="bulbMode"/>
                        <channel id="command" typeId="command"/>
                </channels>
+               <properties>
+                       <property name="thingTypeVersion">1</property>
+               </properties>
                <config-description-ref uri="thing-type:mqtt:rgb"/>
        </thing-type>