crankyoldgit / IRremoteESP8266

Infrared remote library for ESP8266/ESP32: send and receive infrared signals with multiple protocols. Based on: https://github.com/shirriff/Arduino-IRremote/
GNU Lesser General Public License v2.1
2.84k stars 810 forks source link

making a ir hub #2108

Closed invisible-ladka closed 1 week ago

invisible-ladka commented 1 week ago

i am trying to make a ir hub to use with home assistant but when i tried to record the ir signals of my ac remote it sends alot of data like temp, fanspeed, mode, swing etc if i recorded signal that changes temp from 22 to 23 and 23 to 24 but both signals had different fan speeds and i play those signals fanspeed also changes what can i do to change only 1 thing at a time while rest modes n all remains the same until i change them

Protocol  : TEKNOPOINT
Code      : 0x23CB26010024030B0D0000000054 (112 Bits)
Mesg Desc.: Model: 2 (GZ055BE1), Type: 1, Power: On, Mode: 3 (Cool), Temp: 20C, Fan: 5 (High), Swing(V): 1 (Highest), On Timer: Off, Off Timer: Off
uint16_t rawData[227] = {3502, 1608,  538, 1162,  538, 1160,  540, 520,  538, 522,  538, 522,  536, 1162,  538, 522,  538, 520,  538, 1160,  538, 1160,  538, 520,  538, 1160,  538, 520,  538, 522,  536, 1162,  538, 1162,  536, 522,  538, 1162,  538, 1162,  536, 522,  538, 520,  538, 1162,  538, 522,  536, 522,  536, 1162,  538, 520,  538, 522,  536, 522,  538, 522,  538, 520,  538, 522,  538, 520,  538, 520,  538, 522,  538, 522,  538, 520,  536, 522,  538, 520,  538, 520,  538, 502,  556, 522,  538, 522,  538, 1160,  538, 520,  538, 522,  538, 1162,  538, 520,  538, 522,  538, 1162,  536, 1162,  538, 520,  538, 522,  538, 520,  538, 522,  538, 522,  538, 522,  538, 1162,  538, 1162,  538, 522,  536, 1162,  538, 520,  538, 522,  538, 522,  538, 522,  538, 1162,  538, 522,  536, 1164,  538, 1162,  538, 520,  538, 520,  538, 522,  538, 522,  538, 522,  538, 520,  538, 520,  538, 522,  536, 522,  538, 522,  538, 520,  538, 520,  538, 522,  538, 522,  538, 522,  538, 522,  538, 520,  538, 522,  538, 520,  538, 522,  538, 522,  536, 522,  536, 522,  538, 522,  538, 520,  538, 522,  538, 522,  538, 520,  538, 522,  538, 522,  536, 522,  538, 522,  538, 522,  538, 520,  538, 522,  538, 520,  538, 522,  538, 520,  538, 1162,  538, 522,  538, 1162,  538, 522,  538, 1160,  538, 522,  538};  // TEKNOPOINT
uint8_t state[14] = {0x23, 0xCB, 0x26, 0x01, 0x00, 0x24, 0x03, 0x0B, 0x0D, 0x00, 0x00, 0x00, 0x00, 0x54};

this is one recorded signal

please guide me as im a beginner

crankyoldgit commented 1 week ago

Take a look at the example code here: https://github.com/crankyoldgit/IRremoteESP8266/blob/master/examples/TurnOnKelvinatorAC/TurnOnKelvinatorAC.ino

See also: https://github.com/crankyoldgit/IRremoteESP8266/blob/9785cb910d2b8c81785afb58d76090cb57c5b2df/src/ir_Teknopoint.cpp#L78-L81

You will need to use the IRTcl112Ac class to control it the way you want.