gysmo38 / mitsubishi2MQTT

Mitsubishi to MQTT with ESP8266 module
GNU Lesser General Public License v2.1
393 stars 141 forks source link

Fix initialization of min and max temperature for Fahrenheit and ensure control page loads correctly #34

Closed chrdavis closed 4 years ago

chrdavis commented 4 years ago

We are setting Celsius min and max when expecting Fahrenheit values. This results in the temperature setting toggle in HA not appearing. Fix is to call load_unit() before init_MQTT() and ensure we convert property in haConfig as the default constants are in Celsius. I am also including a fix for the control page not loading due to the content of the page being too large to send in one chunk.

gysmo38 commented 4 years ago

Thank a lot :) I search many times for control page...