Hello
I too have a problem to past the creation of wideq_state.json when installing the plugin
As some people in this threat I am getting the following error:
Code: Select all
domoticz@domoticz:~/LGAC_SmartT$ python3 example.py
Log in here:
https://pl.m.lgaccount.com/login/sign_in?country=PL&language=en-EN&svcCode=SVC202&authSvr=oauth2&client_id=LGAO221A02&division=ha&grant_type=password
Then paste the URL where the browser is redirected:
https://pl.m.lgaccount.com/login/iabClose?access_token=55a28d8f96aabdc2f22fe6bbc2fa8ba32419df9bfdb4a456717e71292eb1df2f65dccfa1a51f471a37484b636c48cfda&refresh_token=9af0e8ea0e0665058fd766b07a5c021a7237abead3d2c8a1ac2aa202417e0bb3686ddca663b6b5abaf93815c37c40bc6&oauth2_backend_url=https://gb.lgeapi.com/
Traceback (most recent call last):
File "example.py", line 214, in <module>
example(sys.argv[1:])
File "example.py", line 200, in example
example_command(client, args)
File "example.py", line 177, in example_command
ls(client)
File "example.py", line 25, in ls
for device in client.devices:
File "/home/domoticz/LGAC_SmartT/wideq.py", line 474, in devices
self._devices = self.session.get_devices()
File "/home/domoticz/LGAC_SmartT/wideq.py", line 465, in session
self._session, self._devices = self.auth.start_session()
File "/home/domoticz/LGAC_SmartT/wideq.py", line 257, in start_session
return Session(self, session_id), as_list(session_info['item'])
KeyError: 'item'
EDIT:
I solved the problem, at the begining I was trying to use Olinek's plugin, that was linked at the beginning of the topic, then I found the fork from @heggink but with the same error as before and finally on next pages I found the other plugin from @majki available at
https://github.com/majki09/domoticz_lg_thinq_plugin and this plugin works for me without any problems, so thank you @majki for the good work. I have 2 questions for you
1. I have a multi-split installation in 2 rooms, how can I add second AC? Will it be enough to add second ID on hardware tab or do I need to change something in the code?
2. Will you be able to add more functionality to the plugin like enabling air jonization, jet mode function or air quality meter? All those options are available at LG ThinQ app and on the remote control so it would be nice to get it also on the plugin.
Also I would like to thank you for your great work