@nexuswave, Sorry I read read now after reading through the code.
P.S I don’t think anyone has tried that model until now - so it likely need’s a few bits of tuning.
(The device discovery information would be good to know - so I can pin down which precise model this is just in case its different to what I suspect).
So for our air purifiers we have a fan level and the modes auto, manual, and sleep.
In the app it shows → auto,1,2,3,4,sleep (from memory).
I’m guessing in for your air humidifiers it possibly shows as auto → low → high in the app?
If I set the fan speed on a air purifier when the mode is not manual it does not change. The mode has to be set to manual first then the fan speed changes (the binding does it for the air purifiers).
Could you please change the device to manual mode in the app, then first select mist level one and capture the poll response, and then do the same for the other mist-level’s, so the mappings can be confirmed please*
Also what is the name of the channel you are using mistLevel?
Based on your poll captures, this will confirm the mist-level mappings, and if they possibly vary for that device, in which case I can remap it for that model.
I’m assuming power on / off and other commands are working when you attempt to set them?
The reason it switches back like you have seen, is because its tried to send the command, then it checks to confirm the value changed, and as it hasn’t it will flip back.