RobertD502 / home-assistant-iocare

Home Assistant custom component for monitoring and controlling Coway Airmega Purifiers
MIT License
50 stars 8 forks source link

Failed setup, will retry - Coway API error #37

Closed rd778 closed 5 months ago

rd778 commented 5 months ago

Hello,

I've just added two devices to the integration. The first one added fine with no trouble. However, the second one fails to connect to Home Assistant "failed setup, will retry".

Looking at the logs, I'm getting this message: "Error fetching coway data: Coway API error: Coway server failed to return purifier quality status."

Any suggestions to get this working? I wondered if the issue was because I had two devices on one account, so I added the second device to a new IOCare account and added it to HA as a new "hub". The issue still happens.

Thanks!

RobertD502 commented 5 months ago

There will be a release here shortly. The issue stems from some purifiers that were recently purchased not working with the old API (at least only for the quality endpoint).

If you have a purifier on your account that does work with the older API and then add a purifier that doesn't, the integration fails. So, the issue isn't with having multiple purifiers on a single account as this is completely fine. Feel free to add all of your purifiers to a single account. Once I release version 0.4.0 (it'll be within the next ~30min - 1 hour), install it and then try again.

RobertD502 commented 5 months ago

Please download & install 0.4.0. This should solve your issue.

rd778 commented 5 months ago

Thank you. Yes, I'm no longer getting that error message (instead I'm now getting issue #39 ), so looks like this particular issue resolved. Thanks!

RobertD502 commented 5 months ago

Thank you. Yes, I'm no longer getting that error message (instead I'm now getting issue #39 ), so looks like this particular issue resolved. Thanks!

0.4.1 resolves the new issue.