| 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 |
-| room_temp_calculated | temps | Number | RO | Calculated Room Temperature |
-| outdoor_temp | temps | Number | RO | Temperature of the air outside |
-| humidity | humidity | Number | RO | Humidity |
+| room_temp | temps | Number:Temperature | RO | Temperature of the air in the room of the Air Dial |
+| room_temp_calculated | temps | Number:Temperature | RO | Calculated Room Temperature |
+| outdoor_temp | temps | Number:Temperature | RO | Temperature of the air outside |
+| humidity | humidity | Number:Dimensionless | RO | Current relative humidity measured by the unit |
| bypass | recuperator | Switch | RW | Disables the heat exchange. Useful in summer when room temperature is above target and outside temperature is below target. |
| supply_temp | recuperator | Number | RO | Temperature of air which is passed to the rooms |
| extract_temp | recuperator | Number | RO | Temperature of the air as extracted from the rooms |
import java.time.ZoneId;
import java.time.ZonedDateTime;
+import javax.measure.quantity.Dimensionless;
import javax.measure.quantity.Temperature;
import org.eclipse.jdt.annotation.NonNullByDefault;
import org.openhab.core.library.types.QuantityType;
import org.openhab.core.library.types.StringType;
import org.openhab.core.library.unit.SIUnits;
+import org.openhab.core.library.unit.Units;
import org.openhab.core.types.Command;
/**
return getBoolean(REGISTER_1_READ, BYPASS) ? OnOffType.ON : OnOffType.OFF;
}
- public DecimalType getHumidity() throws IOException {
+ public QuantityType<Dimensionless> getHumidity() throws IOException {
BigDecimal value = BigDecimal.valueOf(asPercentByte(getByte(REGISTER_1_READ, HUMIDITY)));
- return new DecimalType(value.setScale(1, RoundingMode.HALF_UP));
+ return new QuantityType<>(value.setScale(1, RoundingMode.HALF_UP), Units.PERCENT);
}
public QuantityType<Temperature> getRoomTemperature() throws IOException, UnexpectedResponseValueException {
<channel-group-type id="humidity">
<label>Humidity</label>
<channels>
- <channel id="humidity" typeId="humidity"/>
+ <channel id="humidity" typeId="humidity">
+ <description>Current relative humidity measured by the unit</description>
+ </channel>
</channels>
</channel-group-type>
<channel-group-type id="recuperator">
<state pattern="%.0f %%" readOnly="true" min="0" max="100"/>
</channel-type>
<channel-type id="humidity">
- <item-type>Number</item-type>
+ <item-type>Number:Dimensionless</item-type>
<label>Humidity</label>
<category>Humidity</category>
<tags>