]> git.basschouten.com Git - openhab-addons.git/commitdiff
Provide unit hint for water consumption channel (#16621)
authorJacob Laursen <jacob-github@vindvejr.dk>
Sun, 7 Apr 2024 08:06:02 +0000 (10:06 +0200)
committerGitHub <noreply@github.com>
Sun, 7 Apr 2024 08:06:02 +0000 (10:06 +0200)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
bundles/org.openhab.binding.miele/src/main/resources/OH-INF/thing/channeltypes.xml

index 2b871ca58490ec5a1b6ccbab556801d66e0042c1..b65eae3edc627b9f75ba400f78ccc43312c70f66 100644 (file)
        </channel-type>
 
        <channel-type id="water-consumption">
-               <item-type>Number:Volume</item-type>
+               <item-type unitHint="l,gal">Number:Volume</item-type>
                <label>Water Consumption</label>
                <description>Water consumption by the currently running program on the appliance</description>
                <category>Water</category>
                        <tag>Measurement</tag>
                        <tag>Water</tag>
                </tags>
-               <state readOnly="true" pattern="%.1f l"/>
+               <state readOnly="true" pattern="%.1f %unit%"/>
        </channel-type>
 
        <channel-type id="laundry-weight" advanced="true">