Skip to content

Commit

Permalink
Merge pull request #24 from shampeon/celsiusDefault
Browse files Browse the repository at this point in the history
Adding imperial-friendly templates back to upstream
  • Loading branch information
gysmo38 authored Jan 20, 2020
2 parents 1396733 + b0cfc47 commit 328cdef
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/mitsubishi2mqtt/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
4 changes: 2 additions & 2 deletions src/mitsubishi2mqtt/mitsubishi2mqtt.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Binary file removed src/mitsubishi2mqtt/wemos_d1_mini_041b.bin
Binary file not shown.

0 comments on commit 328cdef

Please sign in to comment.