-
Notifications
You must be signed in to change notification settings - Fork 17
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
Bug(C3): When THB or Desinfect is set to enabled, it's not possible to disable it again. #399
Comments
In I found this on lign 63
This can maybe explain the behavior. I don't know how to change this in the wuwentao/midea_ac_lan ? |
@bdecl thanks for your bug report. so we still need to find out the root cause. |
The issue is that tbh and disinfect switch tries to controls the same control bit. The return value sets both switches. Once you set one of the two switches to enable (1), together with the OR function, not possible to disable the switches on the same time --> I adapted the code midealocal/devices/c3/device.py as folow to solve my issue lign 103 - I removed self.disinfect or
lign 182 - commented lign
This makes the disinfect switch obsolete but this is not an issue since it has the same function as tbh for this C3 device. The OR function must be written in a other way. |
@bdecl sorry for the delay response. thank you very much for your code changes and test result share. need to confirm below : with this changes, it works well for all your device in addition, @micturkey @fagallo @AndreasTUHU @erikgieseler, seems we also have C3 device, is this bug/feature works or exist in your C3 device with current code? from current code:
I don't think disinfect is a different value with tbh, maybe they are same one. |
HA core version
2024.11.3
Current integration version
0.6.5
Last known working integration version
0.0.0
Device type and model
Heat Pump Wi-Fi Controller 171H120F (0) by Midea
Working mobile app
Smarthome
The detail description of bug/problem
description the device type and name(you may have multiple devices)
Airwell RCW30 - Heat Pump Wi-Fi Controller 171H120F (0) by Midea - C3
description the error action or error info (device have multiple data/features)
When the TBH or Desinfect switch is enabled then it's not possible anymore to get it disabled. I observed when the TBH switch is enabled then the desinfect automatically is also enabled and the way around.
I think that this brings us in a situation that it's impossible to disable TBH and the Desinfect disabled at the same time. TBH and Desinfect switch remains always enabled because they are activated by each other.
The only way to get it disabled is to use the smarthome app.
The logs
logsC3_TBH_cannot_be_disabled.txt
The text was updated successfully, but these errors were encountered: