Only change relay state if it is different
Added fan control class