RobertD502 / home-assistant-iocare

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

Retrying setup: list index out of range error. #13

Closed Elderwolf1700 closed 1 year ago

Elderwolf1700 commented 1 year ago

I am getting "Retrying setup: list index out of range" error after logging in. error In the logs, it shows:

Unexpected error fetching coway data: list index out of range Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 205, in _async_refresh self.data = await self._async_update_data() File "/config/custom_components/coway/coordinator.py", line 41, in _async_update_data data = await self.client.async_get_purifiers_data() File "/usr/local/lib/python3.10/site-packages/cowayaio/coway_client.py", line 152, in async_get_purifiers_data dust_pollution = state[2][1][0].get('dustPollution') IndexError: list index out of range

It was working before all this login stuff changed.

RobertD502 commented 1 year ago

What Airmega model do you have?

Elderwolf1700 commented 1 year ago

I have two AP-1512HHS's. But this was not a problem before.

RobertD502 commented 1 year ago

It is possible that Coway removed some fields for that purifier model during their last update. However, I don't own that model so I can't say for sure what was removed. If you could possibly temporarily share your account with me (not through here), I'd be able to see what is available for your models.

Elderwolf1700 commented 1 year ago

Sure, do you have discord? I could send it to you there. Or would email be better?

Edit: closed problem on accident.

RobertD502 commented 1 year ago

Discord: RobertD502

Elderwolf1700 commented 1 year ago

Tag number?

RobertD502 commented 1 year ago

Apologies! RobertD502#4048

RobertD502 commented 1 year ago

Solved: Temporary Coway server-side bug.