Skip to content

Commit

Permalink
Adjust climate max vaue for air setpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Domochip committed Nov 17, 2024
1 parent e041cde commit 0a2186c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/WPalaControl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,8 @@ bool WPalaControl::mqttPublishHassDiscovery()
fan_modes.add("auto");
}

jsonDoc[F("max_temp")] = SPLMAX;
// Adjust max_temp for stove with air temperature setPoint, goal is to center the range around 19°C (Does someone really wants its room at 51°C ...)
jsonDoc[F("max_temp")] = (isHydroType && (UICONFIG == 1 || UICONFIG == 3 || UICONFIG == 4)) ? SPLMAX : SPLMIN + 2 * (19 - SPLMIN);
jsonDoc[F("min_temp")] = SPLMIN;
jsonDoc[F("mode_command_template")] = F("CMD+{{ iif(value == 'off', 'OFF', 'ON') }}");
jsonDoc[F("mode_command_topic")] = cmdTopic;
Expand Down

0 comments on commit 0a2186c

Please sign in to comment.