diff --git a/src/mitsubishi2mqtt/config.h b/src/mitsubishi2mqtt/config.h index ebf1d07..42e3d58 100644 --- a/src/mitsubishi2mqtt/config.h +++ b/src/mitsubishi2mqtt/config.h @@ -3,7 +3,7 @@ * */ -String m2mqtt_version = "0.4.7.1"; +String m2mqtt_version = "0.4.7.2"; //Define global variables for files String wifi_conf = "wifi.json"; diff --git a/src/mitsubishi2mqtt/mitsubishi2mqtt.ino b/src/mitsubishi2mqtt/mitsubishi2mqtt.ino index 929c9f4..06cf050 100644 --- a/src/mitsubishi2mqtt/mitsubishi2mqtt.ino +++ b/src/mitsubishi2mqtt/mitsubishi2mqtt.ino @@ -880,9 +880,9 @@ void haConfig() { haConfig["mode_stat_tpl"] = "{{ value_json.mode if (value_json is defined and value_json.mode is defined and value_json.mode|length) else 'off' }}"; //Set default value for fix "Could not parse data for HA" haConfig["temp_cmd_t"] = ha_temp_set_topic; haConfig["temp_stat_t"] = ha_state_topic; - haConfig["temp_stat_tpl"] = "{{ value_json.temperature if (value_json is defined and value_json.temperature is defined and value_json.temperature|int > 16) else '26' }}"; //Set default value for fix "Could not parse data for HA" + haConfig["temp_stat_tpl"] = "{{ value_json.temperature if (value_json is defined and value_json.temperature is defined and value_json.temperature|int > " + (String)getTemperature(16, useFahrenheit) + ") else '" + (String)getTemperature(26, useFahrenheit) + "' }}"; //Set default value for fix "Could not parse data for HA" haConfig["curr_temp_t"] = ha_state_topic; - haConfig["curr_temp_tpl"] = "{{ value_json.roomTemperature if (value_json is defined and value_json.roomTemperature is defined and value_json.roomTemperature|int > 16) else '26' }}"; //Set default value for fix "Could not parse data for HA" + haConfig["curr_temp_tpl"] = "{{ value_json.roomTemperature if (value_json is defined and value_json.roomTemperature is defined and value_json.roomTemperature|int > " + (String)getTemperature(8, useFahrenheit) + ") else '" + (String)getTemperature(26, useFahrenheit) + "' }}"; //Set default value for fix "Could not parse data for HA" haConfig["min_temp"] = min_temp; haConfig["max_temp"] = max_temp; haConfig["temp_step"] = temp_step; diff --git a/src/mitsubishi2mqtt/wemos_d1_mini_041b.bin b/src/mitsubishi2mqtt/wemos_d1_mini_041b.bin deleted file mode 100644 index 96bdb46..0000000 Binary files a/src/mitsubishi2mqtt/wemos_d1_mini_041b.bin and /dev/null differ