-
Notifications
You must be signed in to change notification settings - Fork 836
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
[Toshiba AC] support swing toggle button #1423
Comments
Ah .. I get it now. I think your device differs from the previous models we support, in that they have a discrete swing |
@crankyoldgit I haven't tested sending swing on and swing off commands to the air conditioner yet. Try it and report the results. |
FYI, the codes to try for discrete swing on & off should be: uint8_t swingOnState[7] = {0xF2, 0x0D, 0x01, 0xFE, 0x21, 0x01, 0x20};
uint8_t swingOffState[7] = {0xF2, 0x0D, 0x01, 0xFE, 0x21, 0x02, 0x23};
// Turn on the swing
irsend.sendToshibaAC(swingOnState, 7);
// Turn off the swing
irsend.sendToshibaAC(swingOffState, 7); |
Turns out there is another swtting for swing. This means it needs to grow from 2 bits to 3 bits. Adjustments as needed. * Unit test coverage. For #1423
Can you please try out branch https://github.com/crankyoldgit/IRremoteESP8266/tree/Issue1423 and let me know how it goes. |
I tried swing command acceptance. The air conditioner accepted the swing on and swing off commands and worked perfectly. And I'm going to try https://github.com/crankyoldgit/IRremoteESP8266/tree/Issue1423. |
I have confirmed by https://github.com/crankyoldgit/IRremoteESP8266/tree/Issue1423 that the swing toggle button is detected correctly. Thank you! |
For the time being, when I build with Tasmota with this fix applied, ESP (ESP-01) will restart when the swing command is accepted. If I undo this, it won't reboot. |
* Make `setRaw()` memory safer by passing a length arg. * Update calls to `IRToshibaAC::setRaw()` Fingers crossed. Ref: #1423 (comment)
I've pushed another commit to that branch. It may fix the crash issue. Not sure, but I can then say with more confidence that it isn't the libary's fault after this fix. Fingers crossed for you. |
* Add support for the Swing Toggle setting. - Turns out there is another setting for swing. This means it needs to grow from 2 bits to 3 bits. Adjustments as needed. * Fix potential memory crash issue with `setRaw()` - Make `setRaw()` memory safer by passing a length arg. - Update calls to `IRToshibaAC::setRaw()` * Unit test coverage. Fixes #1423 * Try to ignore changing the `IRac` class temp when we get an inbound swing IR command. * May fix some upstream implementations & setups. e.g. Tasmota & Home Assistant. - Can't hurt at least. (Famous last words) Fixes #1424
_v2.7.16 (20210324)_ **[Features]** - ToshibaAC: Swing handling and `setRaw()` improvements. (#1423 #1424 #1425) - Support for XMP (Xfinity) protocol. (#1414 #1422) - ToshibaAC: Adjust inter-message gap timing to improve matching. (#1420 #1421) - Ecoclim: Add detailed A/C support (#1397 #1415) **[Misc]** - [ESP32] Fix `addApbChangeCallback(): duplicate func` kernel msgs (#1434 #1435) - refactor ir_Fujitsu (#1419) - refactor ir_Whirlpool (#1416) - refactor ir_Vestel (#1413) - refactor ir_Trotec (#1412)
## _v2.7.16 (20210324)_ **[Features]** - ToshibaAC: Swing handling and `setRaw()` improvements. (#1423 #1424 #1425) - Support for XMP (Xfinity) protocol. (#1414 #1422) - ToshibaAC: Adjust inter-message gap timing to improve matching. (#1420 #1421) - Ecoclim: Add detailed A/C support (#1397 #1415) **[Misc]** - [ESP32] Fix `addApbChangeCallback(): duplicate func` kernel msgs (#1434 #1435) - refactor ir_Fujitsu (#1419) - refactor ir_Whirlpool (#1416) - refactor ir_Vestel (#1413) - refactor ir_Trotec (#1412)
FYI, the aforementioned changes have been included in the new v2.7.16 release for the library. |
Version/revision of the library used
v2.7.15
Describe the bug
There is a remote control with a button to turn the swing on and off. The button toggles the swing ON / OFF. There is no difference between ON and OFF.
To Reproduce
When submitted with that button, the library will detect it as "Swing (V): 0 (Step)".
Example code used
IRrecvDumpV2
Expected behaviour
I want the library to detect it as "Swing (V): 4 (On / Off)".
Output of raw data from [IRrecvDumpV2.ino]
Each time you press the swing button, the next signal will be sent.
What brand/model IR demodulator are you using?
VS1838B
I have followed the steps in the [Troubleshooting Guide]
Yes
Has this library/code previously worked as expected for you?
No. Maybe.
The text was updated successfully, but these errors were encountered: