It is quite limiting to have a generic thermostat that can only do cooling or heating, but not both at the same time.
Some time ago @shandoosheri created a custom component to address this fairly simply, but recently this has stopped working.
Details of the custom component, and a vision of how this feature should work are at…
This feature request is to implement this functionality into the core HA generic thermostat, essentially making it more generic