Temperature adjustment increments for instances using imperial (Fahrenheit)
This is a followup from the issue related to the temperature display for Celsius vs Fahrenheit. If the HA instance is set to use imperial, temperature adjustments are currently a bit erratic. I just wanted to note what I've found in case someone who actually knows python is interested in working this out before I cobble together some functioning code to submit another PR.
According to the notes in the readme for gree-remote:
- "SetTem" and "TemUn": set temperature and temperature unit
- if
TemUn= 0,SetTemis the set temperature in Celsius- if
TemUn= 1,SetTemis the set temperature is Fahrenheit
This means:
- the integration will need to know if HA is sending data back in Celsius or Fahrenheit
- that state will need to be translated into the enum values (C = 0; F = 1)
- any time
SetTemis used (maybe here or here) to send an updated target temperature to the device,TemUnwill also need to be sent with the value derived from the HA instance config state
Have you found a solution yet? I am having the same issue, but I don't have too much experience with Python.
Closing this one. Fahrenheit has recently been implemented. Feel free to reopen if still missing.