]> git.basschouten.com Git - openhab-addons.git/commitdiff
[sensorcommunity] State pattern for dB, Percent and Microgram/m3 added (#15692)
authorBernd Weymann <bernd.weymann@gmail.com>
Sun, 5 Nov 2023 15:36:33 +0000 (16:36 +0100)
committerGitHub <noreply@github.com>
Sun, 5 Nov 2023 15:36:33 +0000 (16:36 +0100)
* State pattern for dB, Percent and Microgram/m3 added

---------

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>
bundles/org.openhab.binding.sensorcommunity/src/main/resources/OH-INF/thing/thing-types.xml

index 89684f8b3ce47cc3042014a532348dc5e5cbf4cb..19e8eaa9043b97c4514273b111268db61395ce51 100644 (file)
        <channel-type id="pm25-channel">
                <item-type>Number:Density</item-type>
                <label>Particulate Matter category 2.5</label>
-               <state pattern="%.1f %unit%" readOnly="true"/>
+               <state pattern="%.1f µg/m³" readOnly="true"/>
        </channel-type>
        <channel-type id="pm100-channel">
                <item-type>Number:Density</item-type>
                <label>Particulate Matter category 10.0</label>
-               <state pattern="%.1f %unit%" readOnly="true"/>
+               <state pattern="%.1f µg/m³" readOnly="true"/>
        </channel-type>
        <channel-type id="temp-channel">
                <item-type>Number:Temperature</item-type>
@@ -93,7 +93,7 @@
                <item-type>Number:Dimensionless</item-type>
                <label>Humidity</label>
                <description>Humidity from the selected Sensor ID</description>
-               <state pattern="%.1f %unit%" readOnly="true"/>
+               <state pattern="%.1f %%" readOnly="true"/>
        </channel-type>
        <channel-type id="pressure-channel">
                <item-type>Number:Pressure</item-type>
                <item-type>Number:Dimensionless</item-type>
                <label>Average Noise</label>
                <description>Average noise level from the selected Sensor ID</description>
-               <state pattern="%.1f %unit%" readOnly="true"/>
+               <state pattern="%.1f dB" readOnly="true"/>
        </channel-type>
        <channel-type id="noise-min-channel">
                <item-type>Number:Dimensionless</item-type>
                <label>Minimum Noise</label>
                <description>Minimum noise level (last 2.5 minutes) from the selected Sensor ID</description>
-               <state pattern="%.1f %unit%" readOnly="true"/>
+               <state pattern="%.1f dB" readOnly="true"/>
        </channel-type>
        <channel-type id="noise-max-channel">
                <item-type>Number:Dimensionless</item-type>
                <label>Maximum Noise</label>
                <description>Maximum noise level (last 2.5 minutes) from the selected Sensor ID</description>
-               <state pattern="%.1f %unit%" readOnly="true"/>
+               <state pattern="%.1f dB" readOnly="true"/>
        </channel-type>
 </thing:thing-descriptions>