@mark.cockcroft can advise if needed, but the change should be something like this.
That is, you should replace these lines in def configure()
:
sendEvent(name: "supportedThermostatFanModes", value: ["off"])
...
sendEvent(name: "supportedThermostatModes", value: ["off", "heat"] )
with these:
sendEvent(name: "supportedThermostatFanModes", value: groovy.json.JsonOutput.toJson(["off"]))
sendEvent(name: "supportedThermostatModes", value: groovy.json.JsonOutput.toJson(["off", "heat"]))
Then, click Configure
on the device page.