]> git.basschouten.com Git - openhab-addons.git/commitdiff
Use system channel types for humidity and outdoor temperature (#12277)
authorJacob Laursen <jacob-github@vindvejr.dk>
Sun, 13 Feb 2022 18:56:51 +0000 (19:56 +0100)
committerGitHub <noreply@github.com>
Sun, 13 Feb 2022 18:56:51 +0000 (19:56 +0100)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
bundles/org.openhab.binding.danfossairunit/src/main/resources/OH-INF/i18n/danfossairunit.properties
bundles/org.openhab.binding.danfossairunit/src/main/resources/OH-INF/thing/thing-types.xml

index 7777616d2b1c3a3cf958107ae5206e2b9d7c88a0..90102d58ba4aad63350ed1f7b48b0fa289dc38a6 100644 (file)
@@ -19,7 +19,7 @@ thing-type.config.danfossairunit.airunit.updateUnchangedValuesEveryMillis.descri
 
 # channel group types
 
-channel-group-type.danfossairunit.humidity.label = Humidity
+channel-group-type.danfossairunit.humidity.channel.humidity.label = Humidity
 channel-group-type.danfossairunit.humidity.channel.humidity.description = Current relative humidity measured by the air unit
 channel-group-type.danfossairunit.main.label = Mode and Fan Speeds
 channel-group-type.danfossairunit.main.channel.boost.label = Boost
index f95ad846ef19b13e4d8f97a6f7b9831ade57a8e1..748f9eaa32c958e3ee068c1e161c3544724608b6 100644 (file)
@@ -80,7 +80,7 @@
                                <label>Calculated Room Temperature</label>
                                <description>Calculated Room Temperature</description>
                        </channel>
-                       <channel id="outdoor_temp" typeId="temperature">
+                       <channel id="outdoor_temp" typeId="system.outdoor-temperature">
                                <label>Outdoor Temperature</label>
                                <description>Temperature of the air outside</description>
                        </channel>
@@ -89,7 +89,8 @@
        <channel-group-type id="humidity">
                <label>Humidity</label>
                <channels>
-                       <channel id="humidity" typeId="humidity">
+                       <channel id="humidity" typeId="system.atmospheric-humidity">
+                               <label>Humidity</label>
                                <description>Current relative humidity measured by the air unit</description>
                        </channel>
                </channels>
                <description>Read only percentage</description>
                <state pattern="%.0f %%" readOnly="true" min="0" max="100"/>
        </channel-type>
-       <channel-type id="humidity">
-               <item-type>Number:Dimensionless</item-type>
-               <label>Humidity</label>
-               <category>Humidity</category>
-               <tags>
-                       <tag>Measurement</tag>
-                       <tag>Humidity</tag>
-               </tags>
-               <state pattern="%.0f %%" readOnly="true" min="0" max="100">
-               </state>
-       </channel-type>
        <channel-type id="switch">
                <item-type>Switch</item-type>
                <label>Something that can be turned on or off</label>