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

I write program using ir_Hitachi liberary but it is not working #1061

Closed
MarkEvens opened this issue Mar 13, 2020 · 7 comments · Fixed by #1072
Closed

I write program using ir_Hitachi liberary but it is not working #1061

MarkEvens opened this issue Mar 13, 2020 · 7 comments · Fixed by #1072

Comments

@MarkEvens
Copy link

#include <Arduino.h>
#include <IRremoteESP8266.h>
#include <IRsend.h>
#include <ir_Hitachi.h>
const uint16_t kIrLed = 4; // ESP8266 GPIO pin to use. Recommended: 4 (D2).
IRHitachiAc ac(kIrLed);
void setup() {
ac.begin();
Serial.begin(115200);
delay(200);
ac.on();
ac.setPower(true);
ac.setMode(kHitachiAc424Cool);
ac.setTemp(24); // 24C
}
void loop() {
ac.send();
delay(5000);
}

this thing is not working remote is 13 byte code IRrecevDumpV2 show hitachi ac1 protocol

@MarkEvens MarkEvens changed the title I write program using hitachi ac liberary but it is not working I write program using ir_Hitachi liberary but it is not working Mar 13, 2020
@MarkEvens
Copy link
Author

it is sending 28 byte code instead of 13 byte

@crankyoldgit
Copy link
Owner

It's a different protocol. The protocol you want to use does not have have detailed support yet.
See #1056

@crankyoldgit
Copy link
Owner

I.e. HITACHI_AC != HITACHI_AC1

@MarkEvens
Copy link
Author

@crankyoldgit
Copy link
Owner

That's still in progress. You can help by working out the checksum algorithm.

@crankyoldgit
Copy link
Owner

In the meantime, you can still send with the state[] = {...}; data provided by IRrecvDumpV2 and using irsend.sendHitachiAc1(state);

To be clear, detail support (i.e. setting custom temp/modes/speeds/etc using the A/C class object) is dependent on #1056 being completed. Hence marking this a dup of #1056

@crankyoldgit crankyoldgit self-assigned this Mar 14, 2020
crankyoldgit added a commit that referenced this issue Apr 2, 2020
* Add IRac::hitachi1
* Adjust `sendAc()`
* Adjust `resultAcToString()`
* Add/update unit tests.

Fixes #1056
Fixes #1061
crankyoldgit added a commit that referenced this issue Apr 2, 2020
* Add IRac::hitachi1
* Adjust `sendAc()`
* Adjust `resultAcToString()`
* Add/update unit tests.

Fixes #1056
Fixes #1061
crankyoldgit added a commit that referenced this issue Apr 9, 2020
* Add settings for `HITACHI_AC1` A/C protocol
  - Power, Fan, Mode, Temp, Swing, Sleep, On & Off Timers.
  - Kudos to @camilloaddis for working out the alg, & @soumaxetuirk for reverse engineering settings.
* Add support for it in the Common A/C api
* Add unit tests.

Fixes #1056
Fixes #1061
crankyoldgit added a commit that referenced this issue Apr 9, 2020
_v2.7.5 (20200409)_

**[Features]**
- Detailed support for `HITACHI_AC1` protocol. (#1056, #1061, #1072)
- update sharp to match Sharp AH-A5SAY (#1074)
- Experimental support for AIRWELL protocol. (#1069, #1070)
- SamsungAC: Add Breeze (Aka WindFree) control (#1062, #1071)
- Support for Daikin FFN-C A/C (#1064, #1065)
- Add basic support for HITACHI_AC3 protocol. (#1060, #1063)
- Add support for `SYMPHONY` 11 bit protocol. (#1057, #1058)
- IRMQTTServer: Improve Home-Assistant discovery by sending a 'device' with the discovery packet (#1055)

**[Misc]**
- Clean up support status of various protocols.
- Add `decodeToState()` unit tests to all supported protocols (#1067, #1068)
- Add Gree AC example code. (#1066)
crankyoldgit added a commit that referenced this issue Apr 9, 2020
_v2.7.5 (20200409)_

**[Features]**
- Detailed support for `HITACHI_AC1` protocol. (#1056, #1061, #1072)
- update sharp to match Sharp AH-A5SAY (#1074)
- Experimental support for AIRWELL protocol. (#1069, #1070)
- SamsungAC: Add Breeze (Aka WindFree) control (#1062, #1071)
- Support for Daikin FFN-C A/C (#1064, #1065)
- Add basic support for HITACHI_AC3 protocol. (#1060, #1063)
- Add support for `SYMPHONY` 11 bit protocol. (#1057, #1058)
- IRMQTTServer: Improve Home-Assistant discovery by sending a 'device' with the discovery packet (#1055)

**[Misc]**
- Clean up support status of various protocols.
- Add `decodeToState()` unit tests to all supported protocols (#1067, #1068)
- Add Gree AC example code. (#1066)
@crankyoldgit
Copy link
Owner

FYI, This has been included in the new v2.7.5 release of the library.

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

Successfully merging a pull request may close this issue.

2 participants