AlexanderBabel / homebridge-broadlink-rm

[This fork supports TV accessories] Broadlink RM Mini and Pro plugin for homebridge: https://github.com/nfarina/homebridge
Apache License 2.0
46 stars 11 forks source link

Mode Functionality Tidy-up #36

Closed kiwi-cam closed 4 years ago

kiwi-cam commented 4 years ago

Re-implemented the mode hex codes, e.g. "heat": "26000000..." and "cool": "2600000....". These can now be used to change the mode independently of temperature changes - previously these values weren't used. This supports AC units with separate mode change hex codes from Temperature changes. If the mode and temperature are changed, the unit is first set to the correct mode using the mode hex code, then the temperature set using the temperature hex code. These mode hex codes are optional. Units the use hex codes containing all settings can be set in the temperature, or mode+temperature settings without these mode only codes. Tidied up the mode logic Moved mode change code out of the Temperature change functions to make the above tidier. Fixed Readme config formatting

kiwi-cam commented 4 years ago

iOS13/tvOS13 appears to poll the device status more frequently. Adjusted default temperature update times to reduce duplication. Removed duplicate onTemperature Calls to speed up refresh