sampsyo / hass-smartthinq

Home Assistant component for LG SmartThinQ HVAC devices
MIT License
282 stars 98 forks source link

AC: Stops reporting temperature after some time #41

Open mpapierski opened 4 years ago

mpapierski commented 4 years ago

After some time my HASS instance is running, AC controls doesn't update the state anymore (i.e. start AC -> controls are still gray. After restarting HASS I can see the controls changing color after initiating an action). It's interesting because it does send requests and I can still turn on/off the AC unit. There's just no feedback from the server whatsoever. I also noticed the temperature doesn't get reported from the API and it stays constant.

It might be related to an error I noticed today that also killed my HASS instance:

  File "/home/michal/homeassistant/lib/python3.7/site-packages/wideq/ac.py", line 274, in poll
    res = self.mon.poll_json()
  File "/home/michal/homeassistant/lib/python3.7/site-packages/wideq/client.py", line 62, in poll_json
    data = self.poll()
  File "/home/michal/homeassistant/lib/python3.7/site-packages/wideq/client.py", line 44, in poll
    return self.session.monitor_poll(self.device_id, self.work_id)
  File "/home/michal/homeassistant/lib/python3.7/site-packages/wideq/core.py", line 336, in monitor_poll
    res = self.post('rti/rtiResult', {'workList': work_list})['workList']
KeyError: 'workList'

I'm running f6a5d03a9ff1f7587b40483b500a4b6f7a349a4b and wideq==1.3.0

sampsyo commented 4 years ago

Hello! I'm afraid there's not much we can help with here, since it sounds like the loss of monitoring is happening on the LG server side. Unless there's anything obvious in the log that would suggest more detail?

For the error, could you report a bug in the WideQ library? It's not clear exactly what the LG servers are doing, but maybe we can handle the failure more gracefully…