Air Conditioner, Logic Question?

Good evening –
I have a Honeywell portable AC which is connected to Tuya just fine. I do have some issues with how the data is read into HA, haven’t quite figure that out… but I’m wanting to create some custom actions to trigger different modes.

This is the information obtained from the entity.

hvac_modes:
  - 'off'
  - heat_cool
  - cool
  - heat
  - dry
  - fan_only
min_temp: 61
max_temp: 194
target_temp_step: 1
swing_modes:
  - 'off'
  - horizontal
current_temperature: 171
temperature: 160
swing_mode: 'off'
friendly_name: Dayroom AC
supported_features: 33

This is the yaml for the action, but it’s telling me the data is wrong upon trying to run the action after I add the

swing_mode: horizontal

Any ideas to get the swing_mode enabled?

You should link to the documentation for this device, if you want random strangers to help you.

I did not find where product documentation should help with a YAML configuration issue. The data comes in as swing_modes from the integration. I’m just not sure how to actually call that attribute when the thermostat calls.

I mean the documentation of whatever Python code is ultimately running. Those “swing_modes” need to be defined somewhere (in some addon), because otherwise it’s never going to work.

I’m bringing it in from Tuya. I’ve been talking to their engineers for months attempting to figure out why the actual temp and set temp are not real numbers. It’s coming in as “178” which equals 81F. Problem is 77F is showing as “171” and 79F is showing as “174”. I cannot find the math correlation here.

The unit has a swing door which you can control from the Tuya application and I saw the “swing_modes” in the attributes from the entity. I thought I could iterate from that, but either I’m lost or its not working like I thought it would.

The correct answer to my question would have been: “I am using the Tuya - Home Assistant addon”.

Here is a similiar issue: https://github.com/home-assistant/core/issues/77420. In general, I would recommend to stay as far away as possible from Tuya.

My hatred towards that company has no limits.

Why so? I’ve not been doing home automation long enough to have built a ‘hatred’ for any part of it yet, but I’ve experienced an outage or two over the past 2 years from Tuya. It made me figure out Local Tuya and I did migrate a few devices to that method versus Tuya cloud.

I guess the short version is that you need to go through great lengths to work around their shitty products. At that point, it’s better to just not give them money and hope they go bankrupt.