]> git.basschouten.com Git - openhab-addons.git/commitdiff
[danfossairunit] Add channel descriptions and categories (#11129)
authorjlaur <jacob-github@vindvejr.dk>
Sun, 22 Aug 2021 09:50:33 +0000 (11:50 +0200)
committerGitHub <noreply@github.com>
Sun, 22 Aug 2021 09:50:33 +0000 (11:50 +0200)
* Use system default channel type for battery level.
* Add channel categories where applicable
* Add missing channel descriptions (and fix two existing)

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
bundles/org.openhab.binding.danfossairunit/README.md
bundles/org.openhab.binding.danfossairunit/src/main/resources/OH-INF/thing/thing-types.xml

index 03f77b16286ba25b171d165b8afeee4813fa5a70..a2b280250e0b31e5b7a4bb73194261b486248356 100644 (file)
@@ -27,8 +27,8 @@ These are the available configuration parameters:
 | manual_fan_speed | main | Dimmer | RW | Value to control the fan speed when in MANUAL mode (10 steps) |
 | supply_fan_speed | main | Number | RO | Current rotation of the fan supplying air to the rooms (in rpm) |
 | extract_fan_speed | main | Number | RO | Current rotation of the fan extracting air from the rooms (in rpm) |
-| supply_fan_step | main | Dimmer | RO | Current 10-step setting of the fan supplying air to the rooms |
-| extract_fan_step | main | Dimmer | RO | Current 10-step setting of the fan extracting air from the rooms |
+| supply_fan_step | main | Dimmer | RO | Current step setting of the fan supplying air to the rooms |
+| extract_fan_step | main | Dimmer | RO | Current step setting of the fan extracting air from the rooms |
 | boost | main | Switch | RW | Enables fan boost  |
 | night_cooling | main | Switch | RW | Enables night cooling  |
 | room_temp | temps | Number | RO | Temperature of the air in the room of the Air Dial  |
index dd392bef2b0bd7155bd82ef3e9a00dab35d87969..8ad223236e894b644b231ece3eb47472df8713b5 100644 (file)
        <channel-group-type id="service">
                <label>Service</label>
                <channels>
-                       <channel id="battery_life" typeId="percentage">
+                       <channel id="battery_life" typeId="system.battery-level">
                                <label>Battery Life</label>
                                <description>Remaining Air Dial Battery Level</description>
                        </channel>
        <channel-type id="currentTime">
                <item-type>DateTime</item-type>
                <label>Current Time</label>
+               <description>Current time reported by the air unit</description>
+               <category>Time</category>
                <state readOnly="true"/>
        </channel-type>
        <channel-type id="mode">
                <item-type>String</item-type>
                <label>Mode</label>
-               <description>Off, Demand, Manual, Program</description>
+               <description>Operation mode of the air unit: Off, Demand, Manual, Program</description>
                <state>
                        <options>
                                <option value="DEMAND">Demand</option>
        <channel-type id="manualFanSpeed">
                <item-type>Dimmer</item-type>
                <label>Manual Fan Speed</label>
+               <description>Controls 10-step setting of the fan when operation mode is manual</description>
+               <category>Fan</category>
                <state step="10" min="0" max="100"/>
        </channel-type>
        <channel-type id="supplyFanSpeed">
                <item-type>Number</item-type>
                <label>Supply Fan Speed</label>
+               <description>Current rotation of the fan supplying air to the rooms</description>
+               <category>Fan</category>
                <state pattern="%.0f rpm" readOnly="true" min="0"/>
        </channel-type>
        <channel-type id="extractFanSpeed">
                <item-type>Number</item-type>
                <label>Extract Fan Speed</label>
+               <description>Current rotation of the fan extracting air from the rooms</description>
+               <category>Fan</category>
                <state pattern="%.0f rpm" readOnly="true" min="0"/>
        </channel-type>
        <channel-type id="supplyFanStep">
                <item-type>Dimmer</item-type>
                <label>Supply Fan Step</label>
+               <description>Current step setting of the fan supplying air to the rooms</description>
+               <category>Fan</category>
                <state step="10" min="0" max="100" readOnly="true"/>
        </channel-type>
        <channel-type id="extractFanStep">
                <item-type>Dimmer</item-type>
                <label>Extract Fan Step</label>
+               <description>Current step setting of the fan extracting air from the rooms</description>
+               <category>Fan</category>
                <state step="10" min="0" max="100" readOnly="true"/>
        </channel-type>
        <channel-type id="percentage">
                <item-type>Number:Temperature</item-type>
                <label>Temperature</label>
                <description>Current temperature</description>
+               <category>Temperature</category>
                <state readOnly="true" pattern="%.1f %unit%"/>
        </channel-type>