Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TECO protocol Light on/off #870

Closed
tomiisp opened this issue Aug 24, 2019 · 10 comments
Closed

TECO protocol Light on/off #870

tomiisp opened this issue Aug 24, 2019 · 10 comments

Comments

@tomiisp
Copy link

tomiisp commented Aug 24, 2019

Hi,

I have ALASKA A/C and this use TECO protocol, I have tested that and seems most basic commands works perfect except - A/C start with turned off display and I not found command to turn on/off display in lib.
I have used IRrecvDumpv2 to check and seems LIGHT button is in third (byte 2) byte:
Example cmd:
Light on: 0x250200A09
Light off: 0x250000A09
Then it is in byte 2, and b5 which seems in lib its wrong because TECO lib have for byte 2 this:
b0-3 = 0b0000
b4-7 = Timer hours (unit, not thenth)

I tested that Timer hours too, 0-9hours is in b0-3 in range 0000-1001 (max up to 9h), b5 = light on/off, in hex byte 2 counts: 0x0-9 (light off) or 0x20-29 (light on).

Just FYI

/Tomi

@tomiisp
Copy link
Author

tomiisp commented Aug 24, 2019

There is also other thing, I have on remote 4 buttons without text, seems they do not anything with my A/C but they show icons on remote and change data:

  • big gray button, right of + button (4)
    base state - 0x250000A09
    on remote show icon AIR 1 - 0x251000A09
    on remote show icon AIR 2 - 0x252000A09

  • small gray button, right of - button) (3)
    base state - 0x250000A09
    on remote show HUMID - 0x250100A09

  • small white button on bottom, 1st from right (1)
    base state - 0x250000A09
    on remote show SAVE - 0x250800A09

  • small white button on bottom, 2nd from right (2)
    base state - 0x250000A09
    on remote show icon of tree with some bubbles around - 0x250400A09

/Tomi

DSC_0555_1

@tomiisp
Copy link
Author

tomiisp commented Aug 24, 2019

That light cmd I already fixed but of course you can do that better.

ir_Teco.h:

  • add (~line 120)
 void setLight(const bool state);
 bool getLight(void);
  • change:
    const uint64_t kTecoPower = 0b00000000000001000000000000000001000;
    (default light on)
  • add:
    const uint64_t kTecoLight = 0b00000000000001000000000000000000000;

ir_Teco.cpp:

  • add (line ~147)
bool IRTecoAc::getLight(void) { return remote_state & kTecoLight; }
void IRTecoAc::setLight(const bool on) {
  if (on)
    remote_state |= kTecoLight;
  else
    remote_state &= ~kTecoLight;
}
  • change in stdAc::state_t IRTecoAc::toCommon(void)
    result.light = false;
    to
    result.light = this->getLight();
  • add at end in String IRTecoAc::toString(void)
    result += addBoolToString(getLight(), F("Light"));

/Tomi

@crankyoldgit
Copy link
Owner

Can you please provide the part/model numbers for the A/C remote and the A/C's head unit so I can add it to the supported device list?

I'll work on your suggested changes shortly.

@crankyoldgit
Copy link
Owner

  byte 1 = Cst 0x50
    b6-7 = "AIR" 0, 1, 2
  byte 2:
    b0 = Save
    b1 = "Tree with bubbles" / Filter??
    b2 = Light/LED.
    b3 = Humid

I've added the above. My guess is the "tree" thing is either a Fresh Air mode or a Filter (for pollen?). Any chance you've got a manual? or know what the features of the A/C are/were?

@crankyoldgit
Copy link
Owner

crankyoldgit commented Aug 25, 2019

I've tried to update what I can based on your info.

Can you please try out the code in PR #871 (https://github.com/crankyoldgit/IRremoteESP8266/tree/alaska) and let me know how it goes for you?

@tomiisp
Copy link
Author

tomiisp commented Aug 25, 2019

Hi,
remote and A/C unit itself have mark ALASKA SAC9010QC
about code, I will test that over today, I let you know if it work

Anyway, thanks for your work :)
/Tomi

@tomiisp
Copy link
Author

tomiisp commented Aug 25, 2019

Code is working, at least that Light option is ok. Rest I cannot judge, my A/C doesn't support that commands, they are only on remote (and they have missing text/description on remote) and manual also not mention that unmarked buttons and symbols on remote, I think this remote was used also for other A/C units from Alaska where was that functions supported.

/Tomi

@crankyoldgit
Copy link
Owner

Thanks for confirming.

@crankyoldgit crankyoldgit reopened this Aug 25, 2019
crankyoldgit added a commit that referenced this issue Aug 25, 2019
* Add light, humid, & save support.
* Add model info & improve unit tests.
For #870
@crankyoldgit
Copy link
Owner

As you can't confirm the rest of the functionality, and as that PR is now merged into the master branch. I'm marking this closed.

@crankyoldgit
Copy link
Owner

FYI: The changes mentioned above have been included in v2.6.5 of the library which has just been released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants