Embedded climate to display the correct slider
Partially solves #1613 Partially solves #1627
This commit is contained in:
@@ -117,16 +117,16 @@ script:
|
|||||||
float total_steps = (temp_max-temp_offset)/temp_step;
|
float total_steps = (temp_max-temp_offset)/temp_step;
|
||||||
set_climate->execute
|
set_climate->execute
|
||||||
(
|
(
|
||||||
thermostat_embedded->current_temperature, // current_temp
|
thermostat_embedded->current_temperature, // current_temp
|
||||||
0, // supported_features
|
0, // supported_features
|
||||||
thermostat_embedded->target_temperature, // target_temp
|
((${addon_climate_dual}) ? -999 : thermostat_embedded->target_temperature), // target_temp
|
||||||
thermostat_embedded->target_temperature_high, // target_temp_high
|
((${addon_climate_dual}) ? thermostat_embedded->target_temperature_high : -999), // target_temp_high
|
||||||
thermostat_embedded->target_temperature_low, // target_temp_low
|
((${addon_climate_dual}) ? thermostat_embedded->target_temperature_low : -999), // target_temp_low
|
||||||
int(round(${temp_step}*10)), // temp_step
|
int(round(${temp_step}*10)), // temp_step
|
||||||
int(round(total_steps)), // total_steps //int(round((10*thermostat_embedded->target_temperature-temp_offset)/temp_step)), // slider_val
|
int(round(total_steps)), // total_steps //int(round((10*thermostat_embedded->target_temperature-temp_offset)/temp_step)), // slider_val
|
||||||
int(round(${temp_min}*10)), // temp_offset
|
int(round(${temp_min}*10)), // temp_offset
|
||||||
"", // climate_icon
|
"", // climate_icon
|
||||||
true // embedded_climate
|
true // embedded_climate
|
||||||
);
|
);
|
||||||
|
|
||||||
// Update target temp icon
|
// Update target temp icon
|
||||||
|
|||||||
Reference in New Issue
Block a user