]> git.basschouten.com Git - openhab-addons.git/commitdiff
[systeminfo] Standardize config URI (#11016)
authorlolodomo <lg.hc@free.fr>
Sat, 17 Jul 2021 21:55:30 +0000 (23:55 +0200)
committerGitHub <noreply@github.com>
Sat, 17 Jul 2021 21:55:30 +0000 (23:55 +0200)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
bundles/org.openhab.binding.systeminfo/src/main/resources/OH-INF/config/channelConfig.xml
bundles/org.openhab.binding.systeminfo/src/main/resources/OH-INF/thing/channels.xml

index cd536562805f5ba7ec1ba58ef4d7ba119e6a35a8..bd77147e2a448aefa960685ae9509b0ac760834f 100644 (file)
@@ -10,7 +10,7 @@
                usually need update of the state more often - at several minutes. Low priority channels do not change their state at all,
                or very often. They do not need regular updates. -->
 
-       <config-description uri="systeminfo:channels:lowpriority">
+       <config-description uri="channel-type:systeminfo:lowpriority">
 
                <parameter-group name="priorityGroup">
                        <label>String</label>
@@ -30,7 +30,7 @@
                </parameter>
        </config-description>
 
-       <config-description uri="systeminfo:channels:mediumpriority">
+       <config-description uri="channel-type:systeminfo:mediumpriority">
                <parameter name="priority" type="text">
                        <label>Interval</label>
                        <description>Refresh interval in seconds.</description>
@@ -43,7 +43,7 @@
                </parameter>
        </config-description>
 
-       <config-description uri="systeminfo:channels:highpriority">
+       <config-description uri="channel-type:systeminfo:highpriority">
                <parameter name="priority" type="text">
                        <label>Interval</label>
                        <description>Refresh interval in seconds.</description>
@@ -56,7 +56,7 @@
                </parameter>
        </config-description>
 
-       <config-description uri="systeminfo:channels:lowpriority_process">
+       <config-description uri="channel-type:systeminfo:lowpriority_process">
                <parameter name="priority" type="text">
                        <label>Interval</label>
                        <description>Refresh interval in seconds.</description>
@@ -74,7 +74,7 @@
                </parameter>
        </config-description>
 
-       <config-description uri="systeminfo:channels:mediumpriority_process">
+       <config-description uri="channel-type:systeminfo:mediumpriority_process">
                <parameter name="priority" type="text">
                        <label>Interval</label>
                        <description>Refresh interval in seconds.</description>
@@ -92,7 +92,7 @@
                </parameter>
        </config-description>
 
-       <config-description uri="systeminfo:channels:highpriority_process">
+       <config-description uri="channel-type:systeminfo:highpriority_process">
                <parameter name="priority" type="text">
                        <label>Interval</label>
                        <description>Refresh interval in seconds.</description>
index 694e74773eb98cb9c6350029f89593a7585d07b9..e2c4f89ddd0df614e65675f5a120364ed8e887aa 100644 (file)
                <label>Path</label>
                <description>The full path</description>
                <state readOnly="true" pattern="%s"/>
-               <config-description-ref uri="systeminfo:channels:lowpriority_process"/>
+               <config-description-ref uri="channel-type:systeminfo:lowpriority_process"/>
        </channel-type>
 
        <channel-type id="available">
                <label>Available</label>
                <description>Available size in MB</description>
                <state readOnly="true" pattern="%d MB"/>
-               <config-description-ref uri="systeminfo:channels:highpriority"/>
+               <config-description-ref uri="channel-type:systeminfo:highpriority"/>
        </channel-type>
 
        <channel-type id="used">
                <label>Used</label>
                <description>Used size in MB</description>
                <state readOnly="true" pattern="%d MB"/>
-               <config-description-ref uri="systeminfo:channels:highpriority"/>
+               <config-description-ref uri="channel-type:systeminfo:highpriority"/>
        </channel-type>
 
        <channel-type id="used_process">
                <label>Used</label>
                <description>Used size in MB</description>
                <state readOnly="true" pattern="%d MB"/>
-               <config-description-ref uri="systeminfo:channels:highpriority_process"/>
+               <config-description-ref uri="channel-type:systeminfo:highpriority_process"/>
        </channel-type>
 
        <channel-type id="total">
                <label>Total</label>
                <description>Total size in MB</description>
                <state readOnly="true" pattern="%d MB"/>
-               <config-description-ref uri="systeminfo:channels:lowpriority"/>
+               <config-description-ref uri="channel-type:systeminfo:lowpriority"/>
        </channel-type>
 
        <channel-type id="availablePercent">
                <label>Available (%)</label>
                <description>Available size in percent</description>
                <state readOnly="true" pattern="%.1f %%"/>
-               <config-description-ref uri="systeminfo:channels:highpriority"/>
+               <config-description-ref uri="channel-type:systeminfo:highpriority"/>
        </channel-type>
 
        <channel-type id="usedPercent">
                <label>Used (%)</label>
                <description>Used size in percent</description>
                <state readOnly="true" pattern="%.1f %%"/>
-               <config-description-ref uri="systeminfo:channels:highpriority"/>
+               <config-description-ref uri="channel-type:systeminfo:highpriority"/>
        </channel-type>
 
        <channel-type id="name">
                <label>Name</label>
                <description>Name of the device (process)</description>
                <state readOnly="true" pattern="%s"/>
-               <config-description-ref uri="systeminfo:channels:lowpriority"/>
+               <config-description-ref uri="channel-type:systeminfo:lowpriority"/>
        </channel-type>
 
        <channel-type id="name_process">
                <label>Name</label>
                <description>Name of the device (process)</description>
                <state readOnly="true" pattern="%s"/>
-               <config-description-ref uri="systeminfo:channels:lowpriority_process"/>
+               <config-description-ref uri="channel-type:systeminfo:lowpriority_process"/>
        </channel-type>
 
        <channel-type id="model" advanced="true">
                <label>Model</label>
                <description>The model of the device</description>
                <state readOnly="true" pattern="%s"/>
-               <config-description-ref uri="systeminfo:channels:lowpriority"/>
+               <config-description-ref uri="channel-type:systeminfo:lowpriority"/>
        </channel-type>
 
        <channel-type id="serial" advanced="true">
                <label>Serial Number</label>
                <description>The serial number of the device</description>
                <state readOnly="true" pattern="%s"/>
-               <config-description-ref uri="systeminfo:channels:lowpriority"/>
+               <config-description-ref uri="channel-type:systeminfo:lowpriority"/>
        </channel-type>
 
        <channel-type id="description" advanced="true">
                <label>Description</label>
                <description>Description of the device</description>
                <state readOnly="true" pattern="%s "/>
-               <config-description-ref uri="systeminfo:channels:lowpriority"/>
+               <config-description-ref uri="channel-type:systeminfo:lowpriority"/>
        </channel-type>
 
        <channel-type id="type" advanced="true">
                <label>Type</label>
                <description>Storage type</description>
                <state readOnly="true" pattern="%s "/>
-               <config-description-ref uri="systeminfo:channels:lowpriority"/>
+               <config-description-ref uri="channel-type:systeminfo:lowpriority"/>
        </channel-type>
 
        <channel-type id="cpuTemp" advanced="true">
                <label>CPU Temperature</label>
                <description>CPU Temperature in Celsius degrees</description>
                <state readOnly="true" pattern="%.1f °"/>
-               <config-description-ref uri="systeminfo:channels:highpriority"/>
+               <config-description-ref uri="channel-type:systeminfo:highpriority"/>
        </channel-type>
 
        <channel-type id="cpuVoltage" advanced="true">
                <label>CPU Voltage</label>
                <description>CPU Voltage in V</description>
                <state readOnly="true" pattern="%.1f V"/>
-               <config-description-ref uri="systeminfo:channels:mediumpriority"/>
+               <config-description-ref uri="channel-type:systeminfo:mediumpriority"/>
        </channel-type>
 
        <channel-type id="fanSpeed" advanced="true">
                <label>Fan Speed</label>
                <description>Fan speed in rpm</description>
                <state readOnly="true" pattern="%d rpm"/>
-               <config-description-ref uri="systeminfo:channels:mediumpriority"/>
+               <config-description-ref uri="channel-type:systeminfo:mediumpriority"/>
        </channel-type>
 
        <channel-type id="remainingTime">
                <label>Remaining Time</label>
                <description>Remaining time in minutes</description>
                <state readOnly="true" pattern="%.1f Minutes"/>
-               <config-description-ref uri="systeminfo:channels:mediumpriority"/>
+               <config-description-ref uri="channel-type:systeminfo:mediumpriority"/>
        </channel-type>
 
        <channel-type id="remainingCapacity">
                <label>Remaining Capacity</label>
                <description>Remaining capacity in percent</description>
                <state readOnly="true" pattern="%.1f %%"/>
-               <config-description-ref uri="systeminfo:channels:mediumpriority"/>
+               <config-description-ref uri="channel-type:systeminfo:mediumpriority"/>
        </channel-type>
 
        <channel-type id="load_process">
                <label>Load</label>
                <description>Load in percent</description>
                <state readOnly="true" pattern="%.1f %%"/>
-               <config-description-ref uri="systeminfo:channels:highpriority_process"/>
+               <config-description-ref uri="channel-type:systeminfo:highpriority_process"/>
        </channel-type>
 
        <channel-type id="loadAverage" advanced="true">
                <label>Load Average</label>
                <description>Load as a number of processes for the last 1,5 or 15 minutes</description>
                <state readOnly="true" pattern="%.1f"/>
-               <config-description-ref uri="systeminfo:channels:mediumpriority"/>
+               <config-description-ref uri="channel-type:systeminfo:mediumpriority"/>
        </channel-type>
 
        <channel-type id="uptime" advanced="true">
                <label>System Uptime</label>
                <description>System uptime (time after start) in minutes</description>
                <state readOnly="true" pattern="%.1f Minutes"/>
-               <config-description-ref uri="systeminfo:channels:mediumpriority"/>
+               <config-description-ref uri="channel-type:systeminfo:mediumpriority"/>
        </channel-type>
 
        <channel-type id="threads" advanced="true">
                <label>Number of Threads</label>
                <description>Number of threads currently running</description>
                <state readOnly="true" pattern="%d"/>
-               <config-description-ref uri="systeminfo:channels:mediumpriority"/>
+               <config-description-ref uri="channel-type:systeminfo:mediumpriority"/>
        </channel-type>
 
        <channel-type id="threads_process" advanced="true">
                <label>Number of Threads</label>
                <description>Number of threads currently running</description>
                <state readOnly="true" pattern="%d"/>
-               <config-description-ref uri="systeminfo:channels:mediumpriority_process"/>
+               <config-description-ref uri="channel-type:systeminfo:mediumpriority_process"/>
        </channel-type>
 
        <channel-type id="information" advanced="true">
                <label>Display Information</label>
                <description>Product, manufacturer, SN, width and height of the display in cm</description>
                <state readOnly="true" pattern="%s "/>
-               <config-description-ref uri="systeminfo:channels:lowpriority"/>
+               <config-description-ref uri="channel-type:systeminfo:lowpriority"/>
        </channel-type>
 
        <channel-type id="ip">
                <label>IP Address</label>
                <description>Host IP address of the network</description>
                <state readOnly="true" pattern="%s "/>
-               <config-description-ref uri="systeminfo:channels:lowpriority"/>
+               <config-description-ref uri="channel-type:systeminfo:lowpriority"/>
        </channel-type>
 
        <channel-type id="mac" advanced="true">
                <label>Mac Address</label>
                <description>Mac address of the network</description>
                <state readOnly="true" pattern="%s "/>
-               <config-description-ref uri="systeminfo:channels:lowpriority"/>
+               <config-description-ref uri="channel-type:systeminfo:lowpriority"/>
        </channel-type>
 
        <channel-type id="networkName">
                <label>Network Name</label>
                <description>The name of the network.</description>
                <state readOnly="true" pattern="%s "/>
-               <config-description-ref uri="systeminfo:channels:lowpriority"/>
+               <config-description-ref uri="channel-type:systeminfo:lowpriority"/>
        </channel-type>
 
        <channel-type id="networkDisplayName">
                <label>Network Display Name</label>
                <description>The display name of the network</description>
                <state readOnly="true" pattern="%s "/>
-               <config-description-ref uri="systeminfo:channels:lowpriority"/>
+               <config-description-ref uri="channel-type:systeminfo:lowpriority"/>
        </channel-type>
 
        <channel-type id="packetsSent" advanced="true">
                <label>Packets Sent</label>
                <description>Number of packets sent</description>
                <state readOnly="true" pattern="%d "/>
-               <config-description-ref uri="systeminfo:channels:mediumpriority"/>
+               <config-description-ref uri="channel-type:systeminfo:mediumpriority"/>
        </channel-type>
 
        <channel-type id="packetsReceived" advanced="true">
                <label>Packets Received</label>
                <description>Number of packets received</description>
                <state readOnly="true" pattern="%d "/>
-               <config-description-ref uri="systeminfo:channels:mediumpriority"/>
+               <config-description-ref uri="channel-type:systeminfo:mediumpriority"/>
        </channel-type>
 
        <channel-type id="dataSent" advanced="true">
                <label>Data Sent</label>
                <description>Data sent in MB</description>
                <state readOnly="true" pattern="%d MB"/>
-               <config-description-ref uri="systeminfo:channels:mediumpriority"/>
+               <config-description-ref uri="channel-type:systeminfo:mediumpriority"/>
        </channel-type>
 
        <channel-type id="dataReceived" advanced="true">
                <label>Data Received</label>
                <description>Data received in MB</description>
                <state readOnly="true" pattern="%d MB"/>
-               <config-description-ref uri="systeminfo:channels:mediumpriority"/>
+               <config-description-ref uri="channel-type:systeminfo:mediumpriority"/>
        </channel-type>
 
 </thing:thing-descriptions>