geoffdavis / esphome-mitsubishiheatpump

ESPHome Climate Component for Mitsubishi Heatpumps using direct serial connection
BSD 2-Clause "Simplified" License
560 stars 153 forks source link

Don't treat swing mode 'auto' as CLIMATE_SWING_VERTICAL #15

Closed loongyh closed 4 years ago

loongyh commented 4 years ago

When the swing mode is set to 'off' from 'vertical', after a while the heatpump updates currentSettings.vane to 'auto'. As a result, the swing mode gets erroneously sets back to vertical.

Swing mode 'auto' is not the same as 'swing' according to the following excerpt from a mitsubishi manual:

swing

Auto seems to be just a shorthand to set the vane at position 1 when it's in the cool/dry mode and position 5 when it's in heat mode. As such, swing mode auto should not be treated as a state of CLIMATE_SWING_VERTICAL.

Fixes #13