Skip to content

Commit 31486a9

Browse files
authored
Provide unit hints for rpm channels (openhab#18175)
Signed-off-by: Jacob Laursen <[email protected]>
1 parent de951f5 commit 31486a9

File tree

4 files changed

+6
-6
lines changed
  • bundles
    • org.openhab.binding.comfoair/src/main/resources/OH-INF/thing
    • org.openhab.binding.danfossairunit/src/main/resources/OH-INF/thing
    • org.openhab.binding.haywardomnilogic/src/main/resources/OH-INF/thing

4 files changed

+6
-6
lines changed

Diff for: bundles/org.openhab.binding.comfoair/src/main/resources/OH-INF/thing/thing-types.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -557,15 +557,15 @@
557557
</channel-type>
558558

559559
<channel-type id="fan_in_RPM" advanced="true">
560-
<item-type>Number:Frequency</item-type>
560+
<item-type unitHint="rpm">Number:Frequency</item-type>
561561
<label>Fan In (rpm)</label>
562562
<description>Current rotational speed of incoming fan</description>
563563
<category>Number</category>
564564
<state readOnly="true" pattern="%.0f rpm"/>
565565
</channel-type>
566566

567567
<channel-type id="fan_out_RPM" advanced="true">
568-
<item-type>Number:Frequency</item-type>
568+
<item-type unitHint="rpm">Number:Frequency</item-type>
569569
<label>Fan Out (rpm)</label>
570570
<description>Current rotational speed of outgoing fan</description>
571571
<category>Number</category>

Diff for: bundles/org.openhab.binding.danfossairunit/src/main/resources/OH-INF/thing/thing-types.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -159,14 +159,14 @@
159159
<state step="10" min="0" max="100"/>
160160
</channel-type>
161161
<channel-type id="supplyFanSpeed">
162-
<item-type>Number:Frequency</item-type>
162+
<item-type unitHint="rpm">Number:Frequency</item-type>
163163
<label>Supply Fan Speed</label>
164164
<description>Current rotation of the fan supplying air to the rooms</description>
165165
<category>Fan</category>
166166
<state pattern="%.0f rpm" readOnly="true" min="0"/>
167167
</channel-type>
168168
<channel-type id="extractFanSpeed">
169-
<item-type>Number:Frequency</item-type>
169+
<item-type unitHint="rpm">Number:Frequency</item-type>
170170
<label>Extract Fan Speed</label>
171171
<description>Current rotation of the fan extracting air from the rooms</description>
172172
<category>Fan</category>

Diff for: bundles/org.openhab.binding.haywardomnilogic/src/main/resources/OH-INF/thing/filter.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
</channel-type>
6262

6363
<channel-type id="filterSpeedRpm">
64-
<item-type>Number:Frequency</item-type>
64+
<item-type unitHint="rpm">Number:Frequency</item-type>
6565
<label>Filter Speed</label>
6666
<description>Filter speed in rpm</description>
6767
<state min="0" max="3600" step="200" pattern="%d rpm" readOnly="false"/>

Diff for: bundles/org.openhab.binding.haywardomnilogic/src/main/resources/OH-INF/thing/pump.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
</channel-type>
4747

4848
<channel-type id="pumpSpeedRpm">
49-
<item-type>Number:Frequency</item-type>
49+
<item-type unitHint="rpm">Number:Frequency</item-type>
5050
<label>Pump Speed</label>
5151
<description>Pump speed in rpm</description>
5252
<state min="0" max="3600" step="200" pattern="%d rpm" readOnly="false"/>

0 commit comments

Comments
 (0)