+
+
+
${(stateObj.attributes.hvac_modes || [])
.concat()
@@ -357,12 +381,14 @@ export class HuiThermostatCard extends LitElement implements LovelaceCard {
const stateObj = this.hass!.states[this._config!.entity] as ClimateEntity;
if (e.detail.low) {
+ this._lastSetMode = 0;
this.hass!.callService("climate", "set_temperature", {
entity_id: this._config!.entity,
target_temp_low: e.detail.low,
target_temp_high: stateObj.attributes.target_temp_high,
});
} else if (e.detail.high) {
+ this._lastSetMode = 1;
this.hass!.callService("climate", "set_temperature", {
entity_id: this._config!.entity,
target_temp_low: stateObj.attributes.target_temp_low,
@@ -382,9 +408,9 @@ export class HuiThermostatCard extends LitElement implements LovelaceCard {
}
return html`