swingerman / ha-dual-smart-thermostat

The `dual_smart_thermostat` is an enhaced verion of generic thermostat implemented in Home Assistant. It uses several sensors and dedicated switches connected to a heater and air conditioning under the hood.
https://github.com/swingerman/ha-dual-thermostat
Apache License 2.0
121 stars 20 forks source link

[feat] - expose fan_hot_tolerance as a switch to enable/disable on frontend #255

Closed Jeepmb closed 1 month ago

Jeepmb commented 1 month ago

TL;DR I'd like to turn on/off the fan_hot_tolerance feature (so only AC is running) more conveniently and with automations.

So I have been using the fan_hot_tolerance feature along with the fan_air_outside setting for a while now, and abolutely love it! The majority of the time, it performs exactly as I intend, and I don't have to think about it! It pulls in outside air when it's cool outside, and switches to AC only when it's not.

Recently though, wildfire season has started here, and we have really bad outdoor air quality due to smoke. In this case, it is undesirable for the fan to bring in outside air. The problem is with the current configuration I have to go into the config file, manually comment out the settings for fan_hot_tolerance, and restart home assistant whenever the outdoor air pollution gets bad. Otherwise the fan kicks on in the evening and fills the house with smoke.

My proposed solution is to expose an input boolean or switch in the HA frontend that allows you to enable/disable the fan_hot_tolerance feature altogether. I believe there are a number of use cases where this might be worth having a quick toggle for:

swingerman commented 1 month ago

Please check https://github.com/swingerman/ha-dual-smart-thermostat/releases/tag/v0.9.8.beta-4

use

fan_hot_tolerance_toggle: entity_id

To toggle the feature

Jeepmb commented 1 month ago

That was fast! Thanks for throwing that together so quickly. I tested it yesterday and found a bug. It seems if you toggle the fan_hot_tolerance_toggle entity, it will immediately turn on the cooling device (whether AC or fan depending on toggle state) regardless of the temperture or set point.