Trying now for hours to get it working. With the new wideq version https://github.com/gladhorn/wideq/blob/api2_merged atleast i get at once a refresh token and a device ID. it creates a proper wideq_state.json file with all information. however if i extract this information and put it in the LGACServerNew.py i get the error below:
Traceback (most recent call last):
File "src/gevent/greenlet.py", line 854, in gevent._gevent_cgreenlet.Greenlet.run
File "./LGACServerNew.py", line 97, in ac_commands_handler
client = wideq.Client.from_token(token)
File "/home/pi/LGAC_SmartT/wideq.py", line 555, in from_token
client.refresh()
File "/home/pi/LGAC_SmartT/wideq.py", line 542, in refresh
self._session, self._devices = self.auth.start_session()
File "/home/pi/LGAC_SmartT/wideq.py", line 257, in start_session
return Session(self, session_id), as_list(session_info['item'])
KeyError: 'item'
2020-06-28T08:45:09Z <Greenlet at 0x756e69c0: ac_commands_handler('XXXXXXXXXXXXXXXXXXXXXX', 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX, <Queue at 0x756c8880>)> failed with KeyError
where at the X it shows the device ID number and the refresh token...
Trying now for hours to get it working. With the new wideq version https://github.com/gladhorn/wideq/blob/api2_merged atleast i get at once a refresh token and a device ID. it creates a proper wideq_state.json file with all information. however if i extract this information and put it in the LGACServerNew.py i get the error below:
Traceback (most recent call last):
File "src/gevent/greenlet.py", line 854, in gevent._gevent_cgreenlet.Greenlet.run
File "./LGACServerNew.py", line 97, in ac_commands_handler
client = wideq.Client.from_token(token)
File "/home/pi/LGAC_SmartT/wideq.py", line 555, in from_token
client.refresh()
File "/home/pi/LGAC_SmartT/wideq.py", line 542, in refresh
self._session, self._devices = self.auth.start_session()
File "/home/pi/LGAC_SmartT/wideq.py", line 257, in start_session
return Session(self, session_id), as_list(session_info['item'])
KeyError: 'item'
2020-06-28T08:45:09Z <Greenlet at 0x756e69c0: ac_commands_handler('XXXXXXXXXXXXXXXXXXXXXX', 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX, <Queue at 0x756c8880>)> failed with KeyError
where at the X it shows the device ID number and the refresh token...