Open nvx opened 1 year ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
still relevant
+1
Agreeing with @nvx, changing climate_ir.cpp#L12 from
traits.set_supported_modes({climate::CLIMATE_MODE_OFF, climate::CLIMATE_MODE_HEAT_COOL});
to
traits.set_supported_modes({climate::CLIMATE_MODE_OFF}); if (this->supports_cool_ and this->supports_heat_) traits.add_supported_mode(climate::CLIMATE_MODE_HEAT_COOL);
shall fix this issue. but only if someone takes a look into this
@OttoWinter @jesserockz @oxan @napieraj @CarlosGS @glmnet can you guys please take a look? I can raise a PR if needed
I've come across this same issue. A little workaround that is working for me is to disable heat/cool (and fan only) from the card on my dashboards. Still tho; heat/cool shouldn't be present when supports_heat: false
is set.
See my screenshot:
Heat/cool is also what is know on many ac as auto
Since ACs which are cool only also has the auto function, then heat/cool mode is not hidden on any ac
The problem
When using the esphome climate_ir with fujitsu_general, setting
supports_heat: false
correctly disables the heat option, but the heat/cool option is still displayed.I would expect the heat/cool option to only be enabled when both supports_heat and supports_cool are true
Which version of ESPHome has the issue?
2022.12.3
What type of installation are you using?
Home Assistant Add-on
Which version of Home Assistant has the issue?
2022.12.8
What platform are you using?
ESP8266
Board
Mirabella Genio Smart IR
Component causing the issue
climate_ir
Example YAML snippet
traits.set_supported_modes({climate::CLIMATE_MODE_OFF, climate::CLIMATE_MODE_HEAT_COOL});
traits.set_supported_modes({climate::CLIMATE_MODE_OFF}); if (this->supportscool and this->supportsheat) traits.add_supported_mode(climate::CLIMATE_MODE_HEAT_COOL);