esphome-mitsubishiheatpump: Missing vertical (and horizontal in general) swing mode steps

Hey there,

thank you so much for the great integration in Home Assistant! Currently I‘m missing the option to set the fan swing modes of my heatpump. Mine currently supports a vertical and a horizontal direction in different steps. As I found in the original source code, there are options to customize these kind of settings:

heatpumpSettings settings = {
    "ON",  /* ON/OFF */
    "FAN", /* HEAT/COOL/FAN/DRY/AUTO */
    26,    /* Between 16 and 31 */
    "4",   /* Fan speed: 1-4, AUTO, or QUIET */
    "3",   /* Air direction (vertical): 1-5, SWING, or AUTO —> how to set these in HA? */
    "|"    /* Air direction (horizontal): <<, <, |, >, >>, <>, or SWING  —> how to set these in HA? */
}; 

As far as I understand, I‘m currently only able to set this setting: swing_mode: [OFF, VERTICAL]

Is there a way to integrate these settings via HA?

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Reactions: 3
  • Comments: 40 (7 by maintainers)

Most upvoted comments

If you or someone else wants to leverage my work, feel free!

Just update your external component in esphome like so:

external_components:
  - source: github://jcam/esphome-mitsubishiheatpump@overload-vane-names

And, set this for your lovelace card:

type: custom:simple-thermostat
entity: climate.family_room_minisplit
control:
  hvac:
    heat_cool: false
    heat: false
  fan:
    _name: Fan
    _hide_when_off: true
    low:
      name: Quiet
      icon: mdi:fan-minus
    medium:
      name: 1
      icon: mdi:fan-speed-1
    high:
      name: 2
      icon: mdi:fan-speed-2
    focus:
      name: 3
      icon: mdi:fan-speed-3
    diffuse:
      name: 4
      icon: mdi:car-turbocharger
  swing:
    _name: Angle
    _hide_when_off: true
    'off':
      name: Auto
      icon: mdi:autorenew
    vertical:
      name: Vertical
      icon: mdi:dots-vertical
    horizontal:
      name: Horizontal
      icon: mdi:dots-horizontal
    both:
      name: Swing

I’d love to set the fan modes to something custom too as medium and middle are confusing my wife already 😄

Your wife is not alone in confusion🤣 Not to mention that the gouges are the same🫤 Screenshot_20231120_230345_Home Assistant And even worse - in my language someone has decided to translate both the same way 🤣 Screenshot_20231120_230319_Home Assistant

As an interim solution, I used swing “vertical” for position 5, “horizontal” for position 2, and “both” for vertical swing.

This doesn’t solve the problem of controlling the horizontal position, but at least gives me the two positions i typically use, and I so rarely adjust the horizontal position that I don’t mind pulling a remote out of the drawer for that. https://github.com/jcam/esphome-mitsubishiheatpump/commit/8e4ef6d21b17338fcbd27a5621f4f64463f195c1

In that same branch I also overrode the fan speeds included for passing up to the climate object in home assistant, since there’s no way to correctly set the order of the speeds and i didn’t want 1, 2, 4, 3, quiet.

I then used the simple thermostat HACS custom component to rename them

image