From fa57c627a99974765213ec81f372fc5462d2beaf Mon Sep 17 00:00:00 2001 From: Cody Cutrer Date: Mon, 24 Apr 2023 05:22:18 -0600 Subject: [PATCH] [mqtt.homeassistant] don't set range on current temp channel (#14858) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit the min/max from the config are specifically only for the set point. i.e. for a heater in winter when the heater is off, it may have a set point range of 65-104°F, but if it's off for an unoccopied room the ambient temperature might drop far below 65 Signed-off-by: Cody Cutrer --- .../mqtt/homeassistant/internal/component/Climate.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bundles/org.openhab.binding.mqtt.homeassistant/src/main/java/org/openhab/binding/mqtt/homeassistant/internal/component/Climate.java b/bundles/org.openhab.binding.mqtt.homeassistant/src/main/java/org/openhab/binding/mqtt/homeassistant/internal/component/Climate.java index b44d35081..e082782e6 100644 --- a/bundles/org.openhab.binding.mqtt.homeassistant/src/main/java/org/openhab/binding/mqtt/homeassistant/internal/component/Climate.java +++ b/bundles/org.openhab.binding.mqtt.homeassistant/src/main/java/org/openhab/binding/mqtt/homeassistant/internal/component/Climate.java @@ -232,9 +232,8 @@ public class Climate extends AbstractComponent { channelConfiguration.awayModeStateTopic, commandFilter); buildOptionalChannel(CURRENT_TEMPERATURE_CH_ID, - new NumberValue(channelConfiguration.minTemp, channelConfiguration.maxTemp, precision, - channelConfiguration.temperatureUnit.getUnit()), - updateListener, null, null, channelConfiguration.currentTemperatureTemplate, + new NumberValue(null, null, precision, channelConfiguration.temperatureUnit.getUnit()), updateListener, + null, null, channelConfiguration.currentTemperatureTemplate, channelConfiguration.currentTemperatureTopic, commandFilter); buildOptionalChannel(FAN_MODE_CH_ID, new TextValue(channelConfiguration.fanModes.toArray(new String[0])),