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

Fix humidifier mode setting when power is off #1761

Merged
merged 2 commits into from
Jul 14, 2024

Conversation

whc2001
Copy link
Contributor

@whc2001 whc2001 commented Jul 12, 2024

When the (de)humidifier is turned off, the "State" and "Mode" in the Lovelace card are both showing "Off":

image

However if I change mode to anything other than "Off" without first turning state to "On", nothing happens and an error can be seen in the log:

Storage Room Dehumidifier(nwt.derh.wdh318efw1): Set miot property {'did': 'prop.2.2', 'siid': 2, 'piid': 2, 'value': 0} failed: {'code': -5000, 'message': 'invalid operation'}

I think it makes sense that changing the mode during power off should firstly turn it on then set the mode. I'd love to hear more opinions about this behaviour.

Also this is only tested on NWT 18L Dehumidifier (nwt.derh.wdh318efw1) since that's the only (de)humidifier I have on hand. It may need more testing with more devices.

@al-one al-one merged commit 390a486 into al-one:master Jul 14, 2024
5 checks passed
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

Successfully merging this pull request may close these issues.

2 participants