hristo-atanasov/Tasmota-IRHVAC

swing mode pasasonic

Closed this issue ยท 10 comments

can you add swing mode vertical for panasonic

my panasonic airconditional have this mode for swing
Highest
High
Middle
Low
Lowest
Auto

the code for tasmota is

{"Vendor": "PANASONIC_AC", "Model": "-1", "Power": "on", "Mode": "dry", "Celsius": "on", "Temp": 23, "FanSpeed": "auto", "SwingV": "off", "SwingH": "off", "Quiet": "off", "Turbo": "off", "Econo": "off", "Light": "off", "Filter": "off", "Clean": "off", "Beep": "off", "Sleep": -1}

thank you

Hi! I see, that in the library used in tasmota it is supported (for some Panasonic AC models) to set these values for swinging in vertical direction, but in Home Assistant there is only one field for setting the Swing and no option for adding second one. This means we cannot differentiate in clean (especially in a clean) way between Swing Horizontal and Swing Vertical. As I wanted to keep it as much as possible clean and tied to their original implementation for ACs, I just combined just these few possible options that are common between all ACs .. There is a more dirty way for me to do it, but this will take some time to code and test. As of now I don't have enought time to integrate this (both SwingH and SwingV and all possible values in single dropdown). It is in my list, but I can't say when I'll have time to make it. So I'll leave this issue opened for now. Please excuse me for not having enough time to do it now!

Thank you. normally my air conditioner once turned on has the swing open, but stopped, at least I wanted to control the auto option.

You can. In the Swing dropdown:
Horizontal sets SwingH: "auto"
Vertical sets SwingV: "auto"
Both sets SwingH: "auto" and SwingV: "auto"
Off sets SwingH: "auto" and SwingV: "auto"
Snippet from the code:

       if self.swing_mode == SWING_BOTH:
            swing_h = STATE_AUTO
            swing_v = STATE_AUTO
        elif self.swing_mode == SWING_HORIZONTAL:
            swing_h = STATE_AUTO
        elif self.swing_mode == SWING_VERTICAL:
            swing_v = STATE_AUTO

+1 same situation (and FR) is here. Please note that IRRemoteESP8266 use different keywords from model to model to mark the vertical/horizontal air positions (but usually maximum uses 7-7 positions + swing). -So it should be free text/string from the user(integration) pov,

Hello @nao-pon,
Unfortunatelly, the PR does not resolve the original problem.
the swing has only 4 options: off, vertical, horizontal, or both. For example in the mqtt it looks like this:
...."SwingV":"Auto","SwingH":"Off",...
I think @riddik14 suggested that it should be a choosable list for swingV as the element of the following possible values from a list:

  • Auto, Automatic, On, Swing
  • Off, Stop
  • Min, Minimum, Lowest, Bottom, Down
  • Low
  • Mid, Middle, Med, Medium, Centre, Center
  • High, Hi
  • Highest, Max, Maximum, Top, Up

I think this is the same situation for the horizontal, where the values also can be very various:

  • Auto, Automatic, On, Swing
  • Off, Stop
  • LeftMax, Left Max, MaxLeft, Max Left, FarLeft, Far Left
  • Left
  • Mid, Middle, Med, Medium, Centre, Center
  • Right
  • RightMax, Right Max, MaxRight, Max Right, FarRight, Far Right
  • Wide

So the ultimate solution (as @hristo-atanasov mentioned) it would be 2 additional, independent and separated dropdownlist instead of the current one. The 2 new list would contain the above mentioned predefinied options as currently is working like the fan mode)
So the mqtt output would be something like ...."SwingV":"Medium","SwingH":"RightMax",....

Some example from: Swing section from Tasmota.
The count of the lists on bit levels are the maximum of 8-8 possible states (limitation of the IrRemoteESP8266 library).

I'll bet that the original/inbuilt climate schema supports only the current working method, so the values are chooseable from the "off, vertical, horizontal, or both" options for swing but it is not sufficient:
image

@cociweb Well, when HA changes its climate integration to support it, we will change our integrationt to support it too. For now, we have only one dropdown. I hope HA will add second one soon.

One option is to give up wind direction control in HA UI and control it with an IR remote controller.
In this integration, the control value of the IR remote controller is saved, so once set, the wind direction will not change due to temperature changes by HA.

The following settings are available:
supported_swing_list: []

Added set_swingv, set_swingh services in v2022.08.30. Also reverted the vane position on swing-off to its previous fixed position.

We can now control the vane's swing and position. ๐Ÿ‘

A blueprint for an automation that uses dropdown inputs and services can be found below.

FireShot Capture 044 - ็ฎก็†่€…ใƒ‘ใƒใƒซ โ€“ Home Assistant - hypha duckdns org
FireShot Capture 047 - ็ฎก็†่€…ใƒ‘ใƒใƒซ โ€“ Home Assistant - hypha duckdns org (1)

@nao-pon what is the JSON to send in tasmota's console to control the swing?

oh got it, "SwingV":"lowest"