-
Notifications
You must be signed in to change notification settings - Fork 27
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
MideaClient does not support multiple device due "static" content #11
Comments
Could you detail how you did it? I'm interested in your solution. |
Hi,
the key is: In humidifier.py, I changed the way to get client:
Hope it helps. Regards, |
Ok I'll try it soon and revert back to you thanks a lot.... I think this solution it's way better than the one i was proposing..... Maybe barban push this change to his git |
Hi, Is it correct to simply paste your code in the block following
like this
Unfortunately I don't really understand python-code... am I missing something? |
Hi Florian Regards, |
It's working :) I have done all the changes and it is working quite well. Congratulations! And thanks a lot you should share your code with the community I've added part of your code but you should take the merit for these findings 👍 |
Thanks a lot! :) by the way |
Please, feel free to share my code. |
Thank a lot Gianluca! Your code works like a charm! :-) |
Hi @gianlucasullazzo , I would like to merge your modificatiion in the next release (pushing hass.data new client for each appliace): why do you state that "it is not a good solution" on the first post ? |
MideaClient cannot support multiple device (like 2 dehumi) because hass.data[MIDEA_API_CLIENT] is the same for all devices.
When hass queries first device status, all other ones will assume that specific status.
I "solved" in my custom_component by creating new client inside MideaDehumidifierDevice constructor (instead of receiving it) but this is not a good solution. Are you planning to develop multi device integration?
The text was updated successfully, but these errors were encountered: