Skip to content

Commit

Permalink
Update Tasmota IR Thermostat (zemismart#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgespneto committed Oct 20, 2020
1 parent 6abef72 commit d8aa6c4
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions Tasmota IR Thermostat (#1)
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ metadata {
input name: "ACvendor", title:"Vendor string of Air Conditioner", options: ["SAMSUNG_AC", "LG", "LG2", "COOLIX", "DAIKIN", "KELVINATOR", "MITSUBISHI_AC", "GREE", "ARGO", "TROTEC", "TOSHIBA_AC", "FUJITSU_AC", "MIDEA", "HAIER_AC", "HITACHI_AC", "HAIER_AC_YRW02", "WHIRLPOOL_AC", "ELECTRA_AC", "PANASONIC_AC", "DAIKIN2", "VESTEL_AC", "TECO", "TCL112AC", "MITSUBISHI_HEAVY_88", "MITSUBISHI_HEAVY_152", "DAIKIN216", "SHARP_AC", "GOODWEATHER", "DAIKIN160", "NEOCLIMA", "DAIKIN176", "DAIKIN128"], type: "enum", required: true, defaultValue: "SAMSUNG_AC"
input name: "offThreshold", title:"Off Threshold Power (W)", type: "number", required: true, defaultValue: 3.9
input name: "onThreshold", title:"On Threshold Power (W)", type: "number", required: true, defaultValue: 4
}

}

Expand Down Expand Up @@ -217,19 +216,6 @@ def fanOn() {
}


def setThermostatMode(mode) {
//"heat", "cool", "emergency heat", "auto", "off"
// if (mode!="cool" && mode!="auto" && mode!="fanOnly" && mode!="dry") {
if (mode!="cool" && mode!="auto" && mode!="heat" && mode!="emergency heat" && mode!="dry") { //editei aqui jorge
sendEvent(name: "airConditionerMode", value: "auto", displayed: true)
sendTasmota('IRhvac {"Vendor":"'+VENDOR+'", "Power":"On","Mode":"'+mode+'","FanSpeed":"'+FANMODE+'","Temp":"'+device.currentValue("coolingSetpoint")+'"}')
return
}
sendTasmota('IRhvac {"Vendor":"'+VENDOR+'", "Power":"On","Mode":"'+mode+'","FanSpeed":"'+FANMODE+'","Temp":"'+device.currentValue("coolingSetpoint")+'"}')
sendEvent(name: "airConditionerMode", value: mode, displayed: true)

}

def setThermostatFanMode(mode) {
//"auto", "circulate", "on"
//if (mode!="low" && mode!="medium" && mode!="high" && mode!="auto") {
Expand All @@ -243,6 +229,7 @@ def setThermostatFanMode(mode) {
sendTasmota('IRhvac {"Vendor":"'+VENDOR+'", "Power":"On","Mode":"'+device.currentValue("thermostatMode")+'","FanSpeed":"'+FANMODE+'","Temp":"'+device.currentValue("coolingSetpoint")+'"}')
}


def sendTasmota(command) {
def options = [
method: "GET",
Expand Down

0 comments on commit d8aa6c4

Please sign in to comment.