giladger / ElectraWifi

Control Electra AC with esp8266
GNU General Public License v3.0
29 stars 13 forks source link

Heating and dry modes don't work, cooling and fan does #11

Open guysoft opened 2 years ago

guysoft commented 2 years ago

Hey, So I have now ElectraWifi set up and working. However, when I send a heat.

Steps to reproduce:

  1. test that it works, send to devices/ac/state/json/set (or the path you set in the homie setup):
    {"power": "on", "mode": "cool", "fan": "high", "temperature": 25, "ifeel": "off"}

    See that you can change power on and off and switch the AC on and off.

  2. Try to send now:
    {"power": "on", "mode": "heat", "fan": "high", "temperature": 25, "ifeel": "off"}

    Expected: AC should heat. Actual: Does not switch on.

Electra remote type: RC-3 (or RC3 sold as too)

guysoft commented 2 years ago

Looking at the code I am suspecting it might be a timing issue. The only difference between heat and dry, and the rest is they don't have a one at the end (auto also works).

work:

    MODE_COOL = 0b001,
    MODE_FAN = 0b101,
    MODE_AUTO = 0b011,

Doesn't work:

    MODE_HEAT = 0b010,
    MODE_DRY = 0b100,

https://github.com/giladger/ElectraWifi/blob/master/src/IRelectra.h#L22