sarahhenkens / home-assistant-iocare

27 stars 15 forks source link

KeyError #6

Closed kylerw closed 3 years ago

kylerw commented 4 years ago

File "/usr/local/lib/python3.7/site-packages/iocare/devices/purifier.py", line 16, in refresh self.is_on = control_status['0001'] == '1' KeyError: '0001'

kylerw commented 3 years ago

Seems to have been an API issue. Not seeing this any more.

DeltaAngle commented 3 years ago

In case anyone else comes across this issue, my problem was caused by one of my purifiers being in an offline state. I reset the wifi connection and verified communication in the IOCare app. Removing and reconfiguring the component fixed the KeyError.