]> git.basschouten.com Git - openhab-addons.git/commitdiff
[nikobus] Standardize config URI (#11011)
authorlolodomo <lg.hc@free.fr>
Sat, 17 Jul 2021 21:39:09 +0000 (23:39 +0200)
committerGitHub <noreply@github.com>
Sat, 17 Jul 2021 21:39:09 +0000 (23:39 +0200)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
bundles/org.openhab.binding.nikobus/src/main/resources/OH-INF/config/config.xml
bundles/org.openhab.binding.nikobus/src/main/resources/OH-INF/thing/dimmer-module.xml
bundles/org.openhab.binding.nikobus/src/main/resources/OH-INF/thing/push-button.xml
bundles/org.openhab.binding.nikobus/src/main/resources/OH-INF/thing/rollershutter-module.xml
bundles/org.openhab.binding.nikobus/src/main/resources/OH-INF/thing/switch-module.xml

index fa1736504192d2cf93ab4ae3b2d52fc9e0c4f72e..682c8da868d45b576d14eb63866b0276f54d71c8 100644 (file)
@@ -4,7 +4,7 @@
        xmlns:config-description="https://openhab.org/schemas/config-description/v1.0.0"
        xsi:schemaLocation="https://openhab.org/schemas/config-description/v1.0.0 https://openhab.org/schemas/config-description-1.0.0.xsd">
 
-       <config-description uri="push-button:trigger-filter:config">
+       <config-description uri="channel-type:nikobus:trigger-filter">
                <parameter name="command" type="text">
                        <label>Command</label>
                        <description>Command to send</description>
@@ -20,7 +20,7 @@
                </parameter>
        </config-description>
 
-       <config-description uri="push-button:trigger-button:config">
+       <config-description uri="channel-type:nikobus:trigger-button">
                <parameter name="threshold" type="integer" min="0" unit="ms">
                        <label>Threshold</label>
                        <description>Long-press threshold in milliseconds</description>
                </parameter>
        </config-description>
 
-       <config-description uri="module:address:config">
+       <config-description uri="thing-type:nikobus:module">
                <parameter name="address" type="text" required="true">
                        <label>Address</label>
                        <description>The Nikobus address of the module</description>
                </parameter>
        </config-description>
 
-       <config-description uri="rollershutter-module:rollershutter-output:config">
+       <config-description uri="channel-type:nikobus:rollershutter-output">
                <parameter name="duration" type="integer" min="1" unit="s">
                        <label>Duration</label>
                        <description>Duration in seconds required for a rollershutter to get from open to closed</description>
index 86f7e00447a45b7192726c4e8369f081ab608e48..6cce9a56ff14df351135abcc60c7357779cf6e48 100644 (file)
@@ -51,7 +51,7 @@
                        </channel>
                </channels>
 
-               <config-description-ref uri="module:address:config"/>
+               <config-description-ref uri="thing-type:nikobus:module"/>
        </thing-type>
 
        <channel-type id="dimmer-output">
index f272ea7fe09915a0378631ca6023aae5fac034ed..efd53ef7c52287125b6cc79be63ff5cc8cd1793d 100644 (file)
@@ -38,7 +38,7 @@
                <kind>trigger</kind>
                <label>Trigger Filter Channel</label>
                <event/>
-               <config-description-ref uri="push-button:trigger-filter:config"/>
+               <config-description-ref uri="channel-type:nikobus:trigger-filter"/>
        </channel-type>
 
        <channel-type id="trigger-button">
@@ -50,7 +50,7 @@
                                <option value="LONG_PRESSED">long pressed</option>
                        </options>
                </event>
-               <config-description-ref uri="push-button:trigger-button:config"/>
+               <config-description-ref uri="channel-type:nikobus:trigger-button"/>
        </channel-type>
 
 </thing:thing-descriptions>
index ee6ec5b65253a85dd61f80c1900f09a880f57557..10b311a73787961122447655ac30b57a57f138e6 100644 (file)
                        </channel>
                </channels>
 
-               <config-description-ref uri="module:address:config"/>
+               <config-description-ref uri="thing-type:nikobus:module"/>
        </thing-type>
 
        <channel-type id="rollershutter-output">
                <item-type>Rollershutter</item-type>
                <label>Output</label>
                <description>Rollershutter Module's Output</description>
-               <config-description-ref uri="rollershutter-module:rollershutter-output:config"/>
+               <config-description-ref uri="channel-type:nikobus:rollershutter-output"/>
        </channel-type>
 
 </thing:thing-descriptions>
index 419ce16b9c0a4c70522e4d2a915fbd44562d9813..d38fcbca61ea9df151c7ebc25a44b627b681ffa0 100644 (file)
@@ -51,7 +51,7 @@
                        </channel>
                </channels>
 
-               <config-description-ref uri="module:address:config"/>
+               <config-description-ref uri="thing-type:nikobus:module"/>
        </thing-type>
 
        <channel-type id="switch-output">