You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the IRHaierAC160 implementation with ESPHome and everything is working great so far, except the light toggle switch.
currently it only changes the light status every 2nd press.
As is mentioned in the code this light setting is kind of special because it is only controlled by the button code (0x15) in byte 13.
But the light button on the remote control works more like a pushbutton than a switch.
Each time you press it, it sends the exact same code for switching the light on or off.
But the function setLightToggle sets the button depending on bool value to different codes.
_.Button = on ? kHaierAc160ButtonLight : kHaierAcYrw02ButtonPower;
I think this is wrong. It has to set _.Button = kHaierAc160ButtonLight every time.
Because of this the getLightToggle function unfortunately is useless here, because with this protocol there is no way of knowing the current state of the light.
I am using the IRHaierAC160 implementation with ESPHome and everything is working great so far, except the light toggle switch.
currently it only changes the light status every 2nd press.
As is mentioned in the code this light setting is kind of special because it is only controlled by the button code (0x15) in byte 13.
But the light button on the remote control works more like a pushbutton than a switch.
Each time you press it, it sends the exact same code for switching the light on or off.
But the function setLightToggle sets the button depending on bool value to different codes.
IRremoteESP8266/src/ir_Haier.cpp
Line 1776 in 61b43de
I think this is wrong. It has to set _.Button = kHaierAc160ButtonLight every time.
Because of this the getLightToggle function unfortunately is useless here, because with this protocol there is no way of knowing the current state of the light.
IRremoteESP8266/src/ir_Haier.cpp
Line 1769 in 61b43de
The text was updated successfully, but these errors were encountered: