nervetattoo / simple-thermostat

A different take on the thermostat card for Home Assistant ♨️
MIT License
743 stars 112 forks source link

Display Horizontal swing mode #281

Open gulli1986 opened 2 years ago

gulli1986 commented 2 years ago

I just cannot figure out how to display the horizontal swing mode for my HVAC. The card is configured this way:

    cards:
      - type: custom:simple-thermostat
        entity: climate.ac_living_room
        header:
          toggle:
            entity: switch.ac_living_room_nanoe
            name: Nanoe
        control:
          - hvac
          - preset
          - fan
          - swing

However this will only show the "vertical" swing. Is there a way to display the "horizontal" swing as well?

Here are the attributes from the HVAC:

hvac_modes:
  - 'off'
  - heat
  - cool
  - heat_cool
  - dry
  - fan_only
min_temp: 16
max_temp: 30
fan_modes:
  - Auto
  - Low
  - LowMid
  - Mid
  - HighMid
  - High
preset_modes:
  - none
  - boost
  - eco
swing_modes:
  - Auto
  - Up
  - UpMid
  - Mid
  - DownMid
  - Down
current_temperature: 24
temperature: 22.5
fan_mode: Auto
preset_mode: none
swing_mode: Auto
horizontal_swing_mode: Auto
horizontal_swing_modes:
  - Auto
  - Left
  - LeftMid
  - Mid
  - RightMid
  - Right
friendly_name: AC Living Room
supported_features: 57
winczead commented 2 years ago

Is there already a solution?

gulli1986 commented 2 years ago

I don't think there is a solution yet.

christophermichaelshaw commented 2 years ago

This is super frustrating -- any progress? I appreciate the devs' efforts! :)

paalkr commented 1 year ago

I like tis idea, and the ability to ser horizontal swing modes. My AC (Mitsubishi) has these attributes.

hvac_modes:
  - 'off'
  - heat
  - dry
  - cool
  - fan_only
  - heat_cool
min_temp: 10
max_temp: 31
target_temp_step: 0.5
fan_modes:
  - auto
  - '1'
  - '2'
  - '3'
  - '4'
  - '5'
swing_modes:
  - auto
  - 1_up
  - '2'
  - '3'
  - '4'
  - 5_down
  - swing
current_temperature: 18
temperature: 24
fan_mode: '5'
swing_mode: auto
vane_horizontal: '4'
vane_horizontal_positions:
  - auto
  - 1_left
  - '2'
  - '3'
  - '4'
  - 5_right
  - split
  - swing
vane_vertical: auto
vane_vertical_positions:
  - auto
  - 1_up
  - '2'
  - '3'
  - '4'
  - 5_down
  - swing
friendly_name: 2.etg-sov-varmepumpe
supported_features: 41
witooski commented 1 year ago

Dear @nervetattoo would you mind looking at this request about adding support for both horizontal swing mode? As others have already reported, their AC support not only vertical but also horizontal swing modes and currently your awesome Lovelace card supports only vertical :(

Mine AC (LG) supports both vertical and horizontal modes as indicated in the attributes section:

swing_modes: VerticalOff, VerticalTop, VerticalMiddleTop1, VerticalMiddleTop2, VerticalMiddleBottom2, VerticalMiddleBottom1, VerticalBottom, VerticalSwing, HorizontalOff, HorizontalLeft, HorizontalMiddleLeft, HorizontalCenter, HorizontalMiddleRight, HorizontalRight, HorizontalLeftHalf, HorizontalRightHalf, HorizontalSwing

I can't help much with the coding, but happy to help testing any workarounds, temporary fixes, etc. Thanks!