Hey Thierry,Thierry33700 wrote: ↑Sunday 04 October 2020 12:23Hi,stingone wrote: ↑Saturday 27 June 2020 21:51How did you solve this? get the same error. With both Buster and StretchThierry33700 wrote: ↑Sunday 03 November 2019 15:41
Hello luckymr2201,
Thanks for your help, unfortunately i was not able to go next step, i created a wideq_state.json file like follow :
"{
"access_token": "1ca3e111112234e543cfada616f65ee60493d136640adc1e1f841989a7fe9cf3350594da1c6ae485e6e6e8182f4f42451d",
"refresh_token": "194be3b7596111111a5eb8ee484e180d3adb4644a63fc4f8ce9709e3f1c696fb20d1329e022d56daab51ac820893bd7",
"oauth2_backend_url": "https://gb.lgeapi.com/"
}
"
But i had the same issue when running 'python3 example.py ls' :
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 180, in example_command
func(client, *args[1:])
File "example.py", line 25, in ls
for device in client.devices:
File "/root/LGAC_SmartT/wideq.py", line 474, in devices
self._devices = self.session.get_devices()
File "/root/LGAC_SmartT/wideq.py", line 465, in session
self._session, self._devices = self.auth.start_session()
File "/root/LGAC_SmartT/wideq.py", line 257, in start_session
return Session(self, session_id), as_list(session_info['item'])
KeyError: 'item'
Can't go further. Hope someone has the same issue and help
Thx.
Thierry
After lot of several new tests, i succeded. Here is what i did to make it work.
First, i deleted /home/pi/LGAC_SmartT folder:
sudo rm -rf LGAC_SmartT/
then i choosed fork from https://github.com/heggink/LGAC_SmartT. - Thanks to heggink !!!
I followed mostly his installation process, get the same problem ... BUT then i had the idea to change this line in the installation process :
python3 example.py
was changed into
sudo python3 example.py
then everything worked for the server.
Then in domoticz, i get the following errors in domoticz's logs :
...
2020-10-04 11:42:09.327 Error: (LG-SmartThinq-AC) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/LG-SThinq-AC/:/usr/lib/python37.zip:/usr/lib/python3.7:/usr/lib/python3.7/lib-dynload:/usr/local/lib/python3.7/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.7/dist-packages'.
2020-10-04 11:42:09.328 Error: (Clim_Salon) Module Import failed, exception: 'AttributeError'
2020-10-04 11:42:09.328 Error: (Clim_Salon) Error Line details not available.
2020-10-04 11:43:20.329 Error: Clim_Salon hardware (7) thread seems to have ended unexpectedly
..
I found a similar issue there : https://github.com/mrin/domoticz-mirobo ... /issues/26
So i followed to type :
sudo pip3 install -U --ignore-installed msgpack=="0.6.2"
Then domoticz started to use the plugin !!
Next i'll add others Climatisers by creating duplications of the server scripts as explain.
And i will now prepare or look for a script to manage start and stop within a given temperature in the room.
Thanks to all developpers that worked on this.
Thierry
It's weird that you had to revert to msgpack 0.6.2 as I run 1.0.0. with no problems... Which OS/version are you running? From the above, I would suspect the latest raspbian, right?
I 'only' made a bunch of changes to olinek2's plugin to make it work for me but I am hardly the new maintainer. If anyone wants to help maintain this and develop on top of my changes, be my guest. I have no plans to buy other LG stuff for now (no need).