[systeminfo] Standardize config URI (#11016)

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
This commit is contained in:
lolodomo 2021-07-17 23:55:30 +02:00 committed by GitHub
parent e01532b666
commit ee937debbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 38 additions and 38 deletions

View 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, 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. --> 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"> <parameter-group name="priorityGroup">
<label>String</label> <label>String</label>
@ -30,7 +30,7 @@
</parameter> </parameter>
</config-description> </config-description>
<config-description uri="systeminfo:channels:mediumpriority"> <config-description uri="channel-type:systeminfo:mediumpriority">
<parameter name="priority" type="text"> <parameter name="priority" type="text">
<label>Interval</label> <label>Interval</label>
<description>Refresh interval in seconds.</description> <description>Refresh interval in seconds.</description>
@ -43,7 +43,7 @@
</parameter> </parameter>
</config-description> </config-description>
<config-description uri="systeminfo:channels:highpriority"> <config-description uri="channel-type:systeminfo:highpriority">
<parameter name="priority" type="text"> <parameter name="priority" type="text">
<label>Interval</label> <label>Interval</label>
<description>Refresh interval in seconds.</description> <description>Refresh interval in seconds.</description>
@ -56,7 +56,7 @@
</parameter> </parameter>
</config-description> </config-description>
<config-description uri="systeminfo:channels:lowpriority_process"> <config-description uri="channel-type:systeminfo:lowpriority_process">
<parameter name="priority" type="text"> <parameter name="priority" type="text">
<label>Interval</label> <label>Interval</label>
<description>Refresh interval in seconds.</description> <description>Refresh interval in seconds.</description>
@ -74,7 +74,7 @@
</parameter> </parameter>
</config-description> </config-description>
<config-description uri="systeminfo:channels:mediumpriority_process"> <config-description uri="channel-type:systeminfo:mediumpriority_process">
<parameter name="priority" type="text"> <parameter name="priority" type="text">
<label>Interval</label> <label>Interval</label>
<description>Refresh interval in seconds.</description> <description>Refresh interval in seconds.</description>
@ -92,7 +92,7 @@
</parameter> </parameter>
</config-description> </config-description>
<config-description uri="systeminfo:channels:highpriority_process"> <config-description uri="channel-type:systeminfo:highpriority_process">
<parameter name="priority" type="text"> <parameter name="priority" type="text">
<label>Interval</label> <label>Interval</label>
<description>Refresh interval in seconds.</description> <description>Refresh interval in seconds.</description>

View File

@ -130,7 +130,7 @@
<label>Path</label> <label>Path</label>
<description>The full path</description> <description>The full path</description>
<state readOnly="true" pattern="%s"/> <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>
<channel-type id="available"> <channel-type id="available">
@ -138,7 +138,7 @@
<label>Available</label> <label>Available</label>
<description>Available size in MB</description> <description>Available size in MB</description>
<state readOnly="true" pattern="%d MB"/> <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>
<channel-type id="used"> <channel-type id="used">
@ -146,7 +146,7 @@
<label>Used</label> <label>Used</label>
<description>Used size in MB</description> <description>Used size in MB</description>
<state readOnly="true" pattern="%d MB"/> <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>
<channel-type id="used_process"> <channel-type id="used_process">
@ -154,7 +154,7 @@
<label>Used</label> <label>Used</label>
<description>Used size in MB</description> <description>Used size in MB</description>
<state readOnly="true" pattern="%d MB"/> <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>
<channel-type id="total"> <channel-type id="total">
@ -162,7 +162,7 @@
<label>Total</label> <label>Total</label>
<description>Total size in MB</description> <description>Total size in MB</description>
<state readOnly="true" pattern="%d MB"/> <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>
<channel-type id="availablePercent"> <channel-type id="availablePercent">
@ -170,7 +170,7 @@
<label>Available (%)</label> <label>Available (%)</label>
<description>Available size in percent</description> <description>Available size in percent</description>
<state readOnly="true" pattern="%.1f %%"/> <state readOnly="true" pattern="%.1f %%"/>
<config-description-ref uri="systeminfo:channels:highpriority"/> <config-description-ref uri="channel-type:systeminfo:highpriority"/>
</channel-type> </channel-type>
<channel-type id="usedPercent"> <channel-type id="usedPercent">
@ -178,7 +178,7 @@
<label>Used (%)</label> <label>Used (%)</label>
<description>Used size in percent</description> <description>Used size in percent</description>
<state readOnly="true" pattern="%.1f %%"/> <state readOnly="true" pattern="%.1f %%"/>
<config-description-ref uri="systeminfo:channels:highpriority"/> <config-description-ref uri="channel-type:systeminfo:highpriority"/>
</channel-type> </channel-type>
<channel-type id="name"> <channel-type id="name">
@ -186,7 +186,7 @@
<label>Name</label> <label>Name</label>
<description>Name of the device (process)</description> <description>Name of the device (process)</description>
<state readOnly="true" pattern="%s"/> <state readOnly="true" pattern="%s"/>
<config-description-ref uri="systeminfo:channels:lowpriority"/> <config-description-ref uri="channel-type:systeminfo:lowpriority"/>
</channel-type> </channel-type>
<channel-type id="name_process"> <channel-type id="name_process">
@ -194,7 +194,7 @@
<label>Name</label> <label>Name</label>
<description>Name of the device (process)</description> <description>Name of the device (process)</description>
<state readOnly="true" pattern="%s"/> <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>
<channel-type id="model" advanced="true"> <channel-type id="model" advanced="true">
@ -202,7 +202,7 @@
<label>Model</label> <label>Model</label>
<description>The model of the device</description> <description>The model of the device</description>
<state readOnly="true" pattern="%s"/> <state readOnly="true" pattern="%s"/>
<config-description-ref uri="systeminfo:channels:lowpriority"/> <config-description-ref uri="channel-type:systeminfo:lowpriority"/>
</channel-type> </channel-type>
<channel-type id="serial" advanced="true"> <channel-type id="serial" advanced="true">
@ -210,7 +210,7 @@
<label>Serial Number</label> <label>Serial Number</label>
<description>The serial number of the device</description> <description>The serial number of the device</description>
<state readOnly="true" pattern="%s"/> <state readOnly="true" pattern="%s"/>
<config-description-ref uri="systeminfo:channels:lowpriority"/> <config-description-ref uri="channel-type:systeminfo:lowpriority"/>
</channel-type> </channel-type>
<channel-type id="description" advanced="true"> <channel-type id="description" advanced="true">
@ -218,7 +218,7 @@
<label>Description</label> <label>Description</label>
<description>Description of the device</description> <description>Description of the device</description>
<state readOnly="true" pattern="%s "/> <state readOnly="true" pattern="%s "/>
<config-description-ref uri="systeminfo:channels:lowpriority"/> <config-description-ref uri="channel-type:systeminfo:lowpriority"/>
</channel-type> </channel-type>
<channel-type id="type" advanced="true"> <channel-type id="type" advanced="true">
@ -226,7 +226,7 @@
<label>Type</label> <label>Type</label>
<description>Storage type</description> <description>Storage type</description>
<state readOnly="true" pattern="%s "/> <state readOnly="true" pattern="%s "/>
<config-description-ref uri="systeminfo:channels:lowpriority"/> <config-description-ref uri="channel-type:systeminfo:lowpriority"/>
</channel-type> </channel-type>
<channel-type id="cpuTemp" advanced="true"> <channel-type id="cpuTemp" advanced="true">
@ -234,7 +234,7 @@
<label>CPU Temperature</label> <label>CPU Temperature</label>
<description>CPU Temperature in Celsius degrees</description> <description>CPU Temperature in Celsius degrees</description>
<state readOnly="true" pattern="%.1f °"/> <state readOnly="true" pattern="%.1f °"/>
<config-description-ref uri="systeminfo:channels:highpriority"/> <config-description-ref uri="channel-type:systeminfo:highpriority"/>
</channel-type> </channel-type>
<channel-type id="cpuVoltage" advanced="true"> <channel-type id="cpuVoltage" advanced="true">
@ -242,7 +242,7 @@
<label>CPU Voltage</label> <label>CPU Voltage</label>
<description>CPU Voltage in V</description> <description>CPU Voltage in V</description>
<state readOnly="true" pattern="%.1f V"/> <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>
<channel-type id="fanSpeed" advanced="true"> <channel-type id="fanSpeed" advanced="true">
@ -250,7 +250,7 @@
<label>Fan Speed</label> <label>Fan Speed</label>
<description>Fan speed in rpm</description> <description>Fan speed in rpm</description>
<state readOnly="true" pattern="%d rpm"/> <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>
<channel-type id="remainingTime"> <channel-type id="remainingTime">
@ -258,7 +258,7 @@
<label>Remaining Time</label> <label>Remaining Time</label>
<description>Remaining time in minutes</description> <description>Remaining time in minutes</description>
<state readOnly="true" pattern="%.1f Minutes"/> <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>
<channel-type id="remainingCapacity"> <channel-type id="remainingCapacity">
@ -266,7 +266,7 @@
<label>Remaining Capacity</label> <label>Remaining Capacity</label>
<description>Remaining capacity in percent</description> <description>Remaining capacity in percent</description>
<state readOnly="true" pattern="%.1f %%"/> <state readOnly="true" pattern="%.1f %%"/>
<config-description-ref uri="systeminfo:channels:mediumpriority"/> <config-description-ref uri="channel-type:systeminfo:mediumpriority"/>
</channel-type> </channel-type>
<channel-type id="load_process"> <channel-type id="load_process">
@ -274,7 +274,7 @@
<label>Load</label> <label>Load</label>
<description>Load in percent</description> <description>Load in percent</description>
<state readOnly="true" pattern="%.1f %%"/> <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>
<channel-type id="loadAverage" advanced="true"> <channel-type id="loadAverage" advanced="true">
@ -282,7 +282,7 @@
<label>Load Average</label> <label>Load Average</label>
<description>Load as a number of processes for the last 1,5 or 15 minutes</description> <description>Load as a number of processes for the last 1,5 or 15 minutes</description>
<state readOnly="true" pattern="%.1f"/> <state readOnly="true" pattern="%.1f"/>
<config-description-ref uri="systeminfo:channels:mediumpriority"/> <config-description-ref uri="channel-type:systeminfo:mediumpriority"/>
</channel-type> </channel-type>
<channel-type id="uptime" advanced="true"> <channel-type id="uptime" advanced="true">
@ -290,7 +290,7 @@
<label>System Uptime</label> <label>System Uptime</label>
<description>System uptime (time after start) in minutes</description> <description>System uptime (time after start) in minutes</description>
<state readOnly="true" pattern="%.1f Minutes"/> <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>
<channel-type id="threads" advanced="true"> <channel-type id="threads" advanced="true">
@ -298,7 +298,7 @@
<label>Number of Threads</label> <label>Number of Threads</label>
<description>Number of threads currently running</description> <description>Number of threads currently running</description>
<state readOnly="true" pattern="%d"/> <state readOnly="true" pattern="%d"/>
<config-description-ref uri="systeminfo:channels:mediumpriority"/> <config-description-ref uri="channel-type:systeminfo:mediumpriority"/>
</channel-type> </channel-type>
<channel-type id="threads_process" advanced="true"> <channel-type id="threads_process" advanced="true">
@ -306,7 +306,7 @@
<label>Number of Threads</label> <label>Number of Threads</label>
<description>Number of threads currently running</description> <description>Number of threads currently running</description>
<state readOnly="true" pattern="%d"/> <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>
<channel-type id="information" advanced="true"> <channel-type id="information" advanced="true">
@ -314,7 +314,7 @@
<label>Display Information</label> <label>Display Information</label>
<description>Product, manufacturer, SN, width and height of the display in cm</description> <description>Product, manufacturer, SN, width and height of the display in cm</description>
<state readOnly="true" pattern="%s "/> <state readOnly="true" pattern="%s "/>
<config-description-ref uri="systeminfo:channels:lowpriority"/> <config-description-ref uri="channel-type:systeminfo:lowpriority"/>
</channel-type> </channel-type>
<channel-type id="ip"> <channel-type id="ip">
@ -322,7 +322,7 @@
<label>IP Address</label> <label>IP Address</label>
<description>Host IP address of the network</description> <description>Host IP address of the network</description>
<state readOnly="true" pattern="%s "/> <state readOnly="true" pattern="%s "/>
<config-description-ref uri="systeminfo:channels:lowpriority"/> <config-description-ref uri="channel-type:systeminfo:lowpriority"/>
</channel-type> </channel-type>
<channel-type id="mac" advanced="true"> <channel-type id="mac" advanced="true">
@ -330,7 +330,7 @@
<label>Mac Address</label> <label>Mac Address</label>
<description>Mac address of the network</description> <description>Mac address of the network</description>
<state readOnly="true" pattern="%s "/> <state readOnly="true" pattern="%s "/>
<config-description-ref uri="systeminfo:channels:lowpriority"/> <config-description-ref uri="channel-type:systeminfo:lowpriority"/>
</channel-type> </channel-type>
<channel-type id="networkName"> <channel-type id="networkName">
@ -338,7 +338,7 @@
<label>Network Name</label> <label>Network Name</label>
<description>The name of the network.</description> <description>The name of the network.</description>
<state readOnly="true" pattern="%s "/> <state readOnly="true" pattern="%s "/>
<config-description-ref uri="systeminfo:channels:lowpriority"/> <config-description-ref uri="channel-type:systeminfo:lowpriority"/>
</channel-type> </channel-type>
<channel-type id="networkDisplayName"> <channel-type id="networkDisplayName">
@ -346,7 +346,7 @@
<label>Network Display Name</label> <label>Network Display Name</label>
<description>The display name of the network</description> <description>The display name of the network</description>
<state readOnly="true" pattern="%s "/> <state readOnly="true" pattern="%s "/>
<config-description-ref uri="systeminfo:channels:lowpriority"/> <config-description-ref uri="channel-type:systeminfo:lowpriority"/>
</channel-type> </channel-type>
<channel-type id="packetsSent" advanced="true"> <channel-type id="packetsSent" advanced="true">
@ -354,7 +354,7 @@
<label>Packets Sent</label> <label>Packets Sent</label>
<description>Number of packets sent</description> <description>Number of packets sent</description>
<state readOnly="true" pattern="%d "/> <state readOnly="true" pattern="%d "/>
<config-description-ref uri="systeminfo:channels:mediumpriority"/> <config-description-ref uri="channel-type:systeminfo:mediumpriority"/>
</channel-type> </channel-type>
<channel-type id="packetsReceived" advanced="true"> <channel-type id="packetsReceived" advanced="true">
@ -362,7 +362,7 @@
<label>Packets Received</label> <label>Packets Received</label>
<description>Number of packets received</description> <description>Number of packets received</description>
<state readOnly="true" pattern="%d "/> <state readOnly="true" pattern="%d "/>
<config-description-ref uri="systeminfo:channels:mediumpriority"/> <config-description-ref uri="channel-type:systeminfo:mediumpriority"/>
</channel-type> </channel-type>
<channel-type id="dataSent" advanced="true"> <channel-type id="dataSent" advanced="true">
@ -370,7 +370,7 @@
<label>Data Sent</label> <label>Data Sent</label>
<description>Data sent in MB</description> <description>Data sent in MB</description>
<state readOnly="true" pattern="%d MB"/> <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>
<channel-type id="dataReceived" advanced="true"> <channel-type id="dataReceived" advanced="true">
@ -378,7 +378,7 @@
<label>Data Received</label> <label>Data Received</label>
<description>Data received in MB</description> <description>Data received in MB</description>
<state readOnly="true" pattern="%d MB"/> <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>
</thing:thing-descriptions> </thing:thing-descriptions>