Adding fan only support for generic thermostat

Hi all,

I’ve been using the generic thermostat component for a couple of months and it’s pretty great. For my setup, I’m controlling two relays over MQTT: one for fan only and one for heat (no ac). Right now I just have a separate switch that I use to control the fan only setting but would like to integrate it into the component. The problem is that I know pretty much nothing about python or the github workflow.

I’ve gotten it to the point where it’s no longer giving me any errors in the log, but it’s not working. The fan icon isn’t displaying in the thermostat.

Can anyone look at my modifications with the generic_thermostat.py and tell me where I’m going wrong with my guessed modifications? Located here: https://gist.github.com/poldim/be5e6d494fe76c976f4067cdd7169c55

@mtreinish - if you have some time to look at this, it’d be appreciated!