|
if (value == "fanOn" || value == "on" ) { value = "on" } |
Found that the Hubitat Thermostat tile is sending
setThermostatFanMode( on)
Note the 'space' character in front of 'on' ---> causing a failure to set the ecobee fan modes and throwing an error.
Starting at L1229, you have a work-around for other misbehaving calls to setThermostatFanMode(). I have tested on my Hubitat by adding an additional || condition to look for the " on" string. It fixes the badly behaving call...
if (value == "fanOn" || value == "on" || value == " on") { value = "on" }
I suggest adding this condition (with the leading space character) as part of each 'if' statement L1229-L1232...