-
Notifications
You must be signed in to change notification settings - Fork 68
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
Samsung AC - "clean" gets toggled twice #106
Comments
@bogd I'm confused as to what this issue is about the toggle_list feature as there is no change. |
@nao-pon I admit I am confused as well. I even tried looking at the code, and it clearly shows all items in I tried enabling debug logging based on the instructions you gave me in the previous issue ( #78 ):
However there is nothing in the logs from tasmota_irhvac :( . Doing a bit more testing, it seems that the behavior of the command has changed. It no longer acts like a toggle, but it seems... inverted (if I send "clean:on" from Tasmota, the self-clean light on the unit goes off). Based on this, it looks more like a change in IRRemoteESP8266 - so I think it would be best to close this issue, and ask more about this on the library's page. Before I go, one unrelated thing - while digging through the logs, I found repeated instances of this: Thank you! |
Going through the issues of IRRemoteESP8266 (to make sure that the issue has not been already posted before opening a new one), I found these: If I'm reading the changes correctly, this means that the "toggle" behavior is now handled on the library side, with "clean": "on" actually meaning "toggle the setting". Which would also explain the behavior I was seeing above (when sending "clean: on", the "clean" light on the unit would turn off because I was toggling the setting). And indeed, after doing some more testing, this is exactly what is happening - "clean: on" toggles the unit's state. So I know what has happened, now the question is "how do I fit this into TasmotaIRHVAC?". Because with these changes, "clean" does not need to be configured as a toggle in tasmotairhvac's toggle_list, but I still need to send "clean" only once, when powering off. |
Yes, parameters marked as toggle switches in the library will be toggled from on to off or from off to on by sending on. So as long as clean value is off in any sending data, the device should stay in clean mode. That is, if I include clean in the toggle_list, I expect the following behavior:
If it doesn't work as described above, it is likely that there is an implementation error somewhere. From what you've stated, it's possible that the async_update_ha_state() issue could be a property save timing issue, but I think it's unlikely. Alternatively, if the equipment you use is designed to turn off clean mode when operation is stopped, you may need to send clean mode ON only once after starting operation. |
Everything works exactly like you said. And indeed, since my unit automatically disables clean mode once a cleaning cycle is completed (i.e. after the unit turns off), I need to toggle the setting every time I turn it back on again. I am now doing this by calling
As for the other issue, Thank you once again for your help! |
This is related to issue #78 . In that issue, I mentioned the fact that on my Samsung AC unit, the "Clean" command is a unit-side (as opposed to remote-side) toggle, changing its state every time a "Clean: on" IR code is received.
You fixed that by introducing "clean" as a toggle, that I could call manually using
tasmota_irhvac.set_clean
. And that worked for a while, but there seems to have been a recent change.Now (using Tasmota 12.5.0), once I call
tasmota_irhvac.set_clean
, theclean
flag is also set in the next IR command sent (theoff
command), effectively toggling the setting once again and turning it off.Steps to reproduce:
climate.set_hvac_mode
, set tocool
tasmota_irhvac.set_clean
, setclean
toon
climate.set_hvac_mode
, set tooff
Expected result: unit should turn off, and enter clean mode
Actual result: unit turns off, clean mode is turned off
Details: the codes sent by tasmota_irhvac are below (captured using another tasmota device):
Notice the "clean": "on" setting in the last (
off
) message. That should actually be "clean": "off", to avoid toggling the setting once again. For details, see the last messages in #78 .Edited for some additional details:
The text was updated successfully, but these errors were encountered: