]> git.basschouten.com Git - openhab-addons.git/commitdiff
[mqtt.homeassistant] don't set range on current temp channel (#14858)
authorCody Cutrer <cody@cutrer.us>
Mon, 24 Apr 2023 11:22:18 +0000 (05:22 -0600)
committerGitHub <noreply@github.com>
Mon, 24 Apr 2023 11:22:18 +0000 (13:22 +0200)
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 <cody@cutrer.us>
bundles/org.openhab.binding.mqtt.homeassistant/src/main/java/org/openhab/binding/mqtt/homeassistant/internal/component/Climate.java

index b44d350812871ab4e34473bee3fad06ca050fa2c..e082782e69fde424a7deaac06972e545e9a2723c 100644 (file)
@@ -232,9 +232,8 @@ public class Climate extends AbstractComponent<Climate.ChannelConfiguration> {
                 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])),