value_template: >-
{{
not((state_attr('climate.hatherm','current_temperature')>state_attr('climate.hatherm','temperature')
and
state_attr('climate.midea_ac_160528703464305','min_temp')==state_attr('climate.midea_ac_160528703464305','temperature')
or
state_attr('climate.hatherm','current_temperature')<=state_attr('climate.hatherm','temperature') and state_attr('climate.midea_ac_160528703464305','max_temp')==state_attr('climate.midea_ac_160528703464305','temperature'))) }}