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

Need Help: Detail Support For Hitachi PC-LH3B #1848

Open
bingooo opened this issue Jul 29, 2022 · 4 comments
Open

Need Help: Detail Support For Hitachi PC-LH3B #1848

bingooo opened this issue Jul 29, 2022 · 4 comments

Comments

@bingooo
Copy link

bingooo commented Jul 29, 2022

Hello, I have a Hitachi PC-LH3B, and did some data collection base on #1063 .

Google Sheet: HITACHI PC-LH3B

Is that possiable to add Irac support for this?

Thanks.

@kmihaylov
Copy link

Hello. Thank you for your data. How do you use the library with HITACHI_AC3?

Something like ...?

begin();
stateReset();
setRaw();
send();

@crankyoldgit
Copy link
Owner

@kmihaylov HITACHI_AC3 does not yet have detailed support. The code for it has not been added to the library.

@kmihaylov
Copy link

@crankyoldgit thank you for your fast reply. I'm looking ir_Hitachi.cpp where the IRHitachiAc3 class has begin(), setRaw(), etc. Isn't these enough to send some of the codes given by @bingooo ?

@crankyoldgit
Copy link
Owner

Ah yes. It doesn't have detailed support, as in you can't tell the library to change the AC to Heat mode etc, or set the fan to Medium etc. You can however set the state code/array, as it does have enough for that.

So yes, you can set the state via setRaw() for that class, and use the send() method.
You should only need to call/use the begin() and stateReset() once. Heck, you don't even need to invoke stateReset(); actually.

See the IRsendDemo.ino code for an example.
e.g.

// Example Samsung A/C state captured from IRrecvDumpV2.ino
uint8_t samsungState[kSamsungAcStateLength] = {
0x02, 0x92, 0x0F, 0x00, 0x00, 0x00, 0xF0,
0x01, 0xE2, 0xFE, 0x71, 0x40, 0x11, 0xF0};

&
Serial.println("a Samsung A/C state from IRrecvDumpV2");
irsend.sendSamsungAC(samsungState);

The above shows you how to do it without using the IRHitachiAc3 class. i.e. via irsend.sendHitachiAc3(state_array);
Currently the class is just scaffolding for when someone writes the rest of the code/decodes the protocol fully. There really is no point using the class till that's been added.

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

No branches or pull requests

3 participants