Python Plugin: LG Smart AC (SmartThinQ) Topic is solved
Moderator: leecollings
-
- Posts: 5
- Joined: Thursday 15 February 2018 11:18
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Wroclaw
- Contact:
Python Plugin: LG Smart AC (SmartThinQ)
Hi,
I have written plugin for LG Smart AC devices. It is in it's early stage (for me it is operating in Domoticz for past few months). Finally I have finished readme .
https://github.com/olinek2/LGAC_SmartT
Best regards,
Olek
I have written plugin for LG Smart AC devices. It is in it's early stage (for me it is operating in Domoticz for past few months). Finally I have finished readme .
https://github.com/olinek2/LGAC_SmartT
Best regards,
Olek
- Attachments
-
- Hardware
- Hardware.PNG (60.31 KiB) Viewed 15597 times
-
- Controls
- Controls.PNG (164.93 KiB) Viewed 15597 times
-
- Posts: 1
- Joined: Sunday 17 February 2019 8:24
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.97
- Location: France
- Contact:
Re: Python Plugin: LG Smart AC (SmartThinQ)
Hi,
I test your plugin, it's a very good job.
I have a Banana Pi with a bananian 16.04, I had to adapt the installation :
For the dependencies :
For automatic start :
And use /etc/init.d/(your script.sh) start
In plugin.py :
I have 3 clim and i use 3 server with different port, I do not know if it's the right method, but it works
I have an error for my 3 clim, I do not know where it comes from, but it does not seem to have any consequence. If someone has an idea ?
It works perfectly for me,
Thank you so much
I test your plugin, it's a very good job.
I have a Banana Pi with a bananian 16.04, I had to adapt the installation :
For the dependencies :
Code: Select all
apt-get install python3 python3-dev
apt-get install libffi-dev libssl-dev
apt-get install python3-gevent python3-msgpack python3-greenlet python-gevent-websocket python-setuptools
Code: Select all
#! /bin/sh
### BEGIN INIT INFO
# Provides: perso
# Required-Start: $network $remote_fs $syslog
# Required-Stop: $network $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Home Automation System
# Description: This daemon will start the Server LG AC
### END INIT INFO
case "$1" in
start)
echo "Start LG Server"
# run application you want to start
nohup python3 (***)/LGAC_SmartT/LGACServerNew.py &
;;
stop)
echo "Stopping LG Server"
# kill application you want to stop
killall python3
;;
*)
echo "Usage: /etc/init.d/lgac_server{start|stop}"
exit 1
;;
esac
exit 0
In plugin.py :
Code: Select all
sys.path.append('/usr/lib/python3/dist-packages')
I have an error for my 3 clim, I do not know where it comes from, but it does not seem to have any consequence. If someone has an idea ?
Code: Select all
2019-02-17 08:54:01.205 Error: (Clim - Salle) 'onMessage' failed 'TypeError'.
2019-02-17 08:54:01.205 Error: (Clim - Salle) ----> Line 329 in /domoticz/plugins/LG-SThinq-AC/plugin.py, function onMessage
2019-02-17 08:54:01.205 Error: (Clim - Salle) ----> Line 209 in /domoticz/plugins/LG-SThinq-AC/plugin.py, function onMessage
2019-02-17 08:54:07.079 Error: (Clim - Chambre 1) 'onMessage' failed 'TypeError'.
2019-02-17 08:54:07.079 Error: (Clim - Chambre 1) ----> Line 329 in /domoticz/plugins/LG-SThinq-AC/plugin.py, function onMessage
2019-02-17 08:54:07.079 Error: (Clim - Chambre 1) ----> Line 209 in /domoticz/plugins/LG-SThinq-AC/plugin.py, function onMessage
2019-02-17 08:54:12.156 Error: (Clim - Chambre 2) 'onMessage' failed 'TypeError'.
2019-02-17 08:54:12.156 Error: (Clim - Chambre 2) ----> Line 329 in /domoticz/plugins/LG-SThinq-AC/plugin.py, function onMessage
2019-02-17 08:54:12.156 Error: (Clim - Chambre 2) ----> Line 209 in /domoticz/plugins/LG-SThinq-AC/plugin.py, function onMessage
Thank you so much
-
- Posts: 4
- Joined: Monday 11 March 2019 9:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: LG Smart AC (SmartThinQ)
Hi,
Very nice job !
I am also a LG AC owner, however I did notice that the reported ambiant temperatures were not accurate at all.
When my room temperature is about 21-22°C (measured with 2 different electronic thermometers): if the split is not heating, the reported ambiant temperature is about 24-25°C; and when the split is heating, it is reporting about 28-29°C ?!
Do you have the same behaviour or your reported ambiant temperatures are accurate/stable ?
Very nice job !
I am also a LG AC owner, however I did notice that the reported ambiant temperatures were not accurate at all.
When my room temperature is about 21-22°C (measured with 2 different electronic thermometers): if the split is not heating, the reported ambiant temperature is about 24-25°C; and when the split is heating, it is reporting about 28-29°C ?!
Do you have the same behaviour or your reported ambiant temperatures are accurate/stable ?
-
- Posts: 1
- Joined: Wednesday 27 March 2019 14:26
- Target OS: Raspberry Pi / ODroid
- Domoticz version: v4.9700
- Location: Polska
- Contact:
Re: Python Plugin: LG Smart AC (SmartThinQ)
I try run your solution on domoticz and i have problem with link to login account. I copy link from python3 example.py and pasting to browse
"https://pl.m.lgaccount.com/login/sign_i ... country=PL" .
I see login page and enter a login and password. after i click sign in i have information about page not found.
"https://pl.m.lgaccount.com/login/iabClo ... os_type=PC"
When i copy this link to python3 example.pyi get error :
"Log in here:
https://pl.m.lgaccount.com/login/sign_i ... LGAO221A02
Then paste the URL where the browser is redirected:
https://pl.m.lgaccount.com/login/sign_i ... LGAO221A02
Traceback (most recent call last):
File "example.py", line 214, in <module>
example(sys.argv[1:])
File "example.py", line 195, in example
client._auth = authenticate(client.gateway)
File "example.py", line 19, in authenticate
return wideq.Auth.from_url(gateway, callback_url)
File "/home/pawel/LGAC_SmartT/wideq.py", line 247, in from_url
access_token, refresh_token = parse_oauth_callback(url)
File "/home/pawel/LGAC_SmartT/wideq.py", line 162, in parse_oauth_callback
return params['access_token'][0], params['refresh_token'][0]
KeyError: 'access_token'"
My qestion, What i do wrong?
"https://pl.m.lgaccount.com/login/sign_i ... country=PL" .
I see login page and enter a login and password. after i click sign in i have information about page not found.
"https://pl.m.lgaccount.com/login/iabClo ... os_type=PC"
When i copy this link to python3 example.pyi get error :
"Log in here:
https://pl.m.lgaccount.com/login/sign_i ... LGAO221A02
Then paste the URL where the browser is redirected:
https://pl.m.lgaccount.com/login/sign_i ... LGAO221A02
Traceback (most recent call last):
File "example.py", line 214, in <module>
example(sys.argv[1:])
File "example.py", line 195, in example
client._auth = authenticate(client.gateway)
File "example.py", line 19, in authenticate
return wideq.Auth.from_url(gateway, callback_url)
File "/home/pawel/LGAC_SmartT/wideq.py", line 247, in from_url
access_token, refresh_token = parse_oauth_callback(url)
File "/home/pawel/LGAC_SmartT/wideq.py", line 162, in parse_oauth_callback
return params['access_token'][0], params['refresh_token'][0]
KeyError: 'access_token'"
My qestion, What i do wrong?
-
- Posts: 4
- Joined: Monday 11 March 2019 9:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: LG Smart AC (SmartThinQ)
Hi,
I had the same issue when I was using my Google based account.
It seems there is an issue with LG accounts based on Google/Facebook accounts. Try using a LG Account based on an email and it should work (it worked for me at least).
I had the same issue when I was using my Google based account.
It seems there is an issue with LG accounts based on Google/Facebook accounts. Try using a LG Account based on an email and it should work (it worked for me at least).
-
- Posts: 3
- Joined: Sunday 14 April 2019 8:54
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: LG Smart AC (SmartThinQ)
I'm current Vera user and joined Domoticz community to have integration with LG AC, Samsung TVs and iRobot - all of wchich Vera doesn'n support :/
But for now non of this works for me in Domoticz too
@Olinek2 unfortunatelly I'm unable to send you PM, since I am new user here - I installed LGAC_SmartT as you instructed.
But after running webserver I got:
"????????-????-????-????-????????????": KLIMATYZATOR (AC RAC_XXXXXX_PL)
What am I missing?
But for now non of this works for me in Domoticz too
@Olinek2 unfortunatelly I'm unable to send you PM, since I am new user here - I installed LGAC_SmartT as you instructed.
But after running webserver I got:
So in my case format of AC Device Number is slightly different that in your example:wideq.TokenError
2019-04-14T07:03:27Z <Greenlet at 0x7591c718: ac_commands_handler('AC_XXXXXX_PL', 'd27b3ec0-XXXX-XXXX-XXXX-XXXXXXXXXXXX', <Queue at 0x75ee3b20>)> failed with TokenError
"????????-????-????-????-????????????": KLIMATYZATOR (AC RAC_XXXXXX_PL)
What am I missing?
-
- Posts: 4
- Joined: Monday 11 March 2019 9:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: LG Smart AC (SmartThinQ)
Hi !
Is there anybody having some LG splits ambiant temperature graphs to be shared with me ?
I have the feeling that my splits are not correctly regulating temperatures (the ambiant is rising very fast of about 3°C then stop heating, then the ambiant temp is decreasing and after a few minutes, it is heating again)
Is there anybody having some LG splits ambiant temperature graphs to be shared with me ?
I have the feeling that my splits are not correctly regulating temperatures (the ambiant is rising very fast of about 3°C then stop heating, then the ambiant temp is decreasing and after a few minutes, it is heating again)
-
- Posts: 8
- Joined: Wednesday 24 July 2019 8:30
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: LG Smart AC (SmartThinQ)
Hi all,
I will post here the experience I got with this plugin.
It took me hours to get it work, not because of any bug it has, but because there are requirements not included to the documentation.
I had a raspberry pi running a jessie distribution and when you have this OS the latest python3 you will get it 3.4.2. Problem is that with this version when you try to start the server, you get an error message saying that "SocketKind" is not defined. This is a knwn bug from python 3.4.2 and resolved in 3.4.3.
Some people being more experts may have a simple solution for this but I ended up upgrading my OS to a newer debian distribution offering a newer python 3.5.x which then allowed me to get server running as expected.
Hopefully this will come handy to other people in the future.
Olek, your plugin is fantastic. Thank you so much for your work on it.
I will post here the experience I got with this plugin.
It took me hours to get it work, not because of any bug it has, but because there are requirements not included to the documentation.
I had a raspberry pi running a jessie distribution and when you have this OS the latest python3 you will get it 3.4.2. Problem is that with this version when you try to start the server, you get an error message saying that "SocketKind" is not defined. This is a knwn bug from python 3.4.2 and resolved in 3.4.3.
Some people being more experts may have a simple solution for this but I ended up upgrading my OS to a newer debian distribution offering a newer python 3.5.x which then allowed me to get server running as expected.
Hopefully this will come handy to other people in the future.
Olek, your plugin is fantastic. Thank you so much for your work on it.
Re: Python Plugin: LG Smart AC (SmartThinQ)
Starting last week I have some errors when the server is starting
xxxx, yyyy - are my refresh tocken and device number
Can you help me with this error ?
Code: Select all
server: Starting server on 127.0.0.1 22233
Traceback (most recent call last):
File "./LGACServerNew.py", line 105, in ac_commands_handler
ac.monitor_start()
File "/srv/LGAC_SmartT/wideq.py", line 888, in monitor_start
self.mon.start()
File "/srv/LGAC_SmartT/wideq.py", line 391, in start
self.work_id = self.session.monitor_start(self.device_id)
File "/srv/LGAC_SmartT/wideq.py", line 302, in monitor_start
'workId': gen_uuid(),
File "/srv/LGAC_SmartT/wideq.py", line 281, in post
return lgedm_post(url, data, self.auth.access_token, self.session_id)
File "/srv/LGAC_SmartT/wideq.py", line 122, in lgedm_post
raise APIError(code, message)
wideq.APIError: ('0106', '\uc7a5\uce58\uac00 \uc811\uc18d\uc911\uc774 \uc544\ub2d9\ub2c8\ub2e4.')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "src/gevent/greenlet.py", line 766, in gevent._greenlet.Greenlet.run
File "./LGACServerNew.py", line 136, in ac_commands_handler
ac.monitor_stop()
File "/srv/LGAC_SmartT/wideq.py", line 893, in monitor_stop
self.mon.stop()
File "/srv/LGAC_SmartT/wideq.py", line 394, in stop
self.session.monitor_stop(self.device_id, self.work_id)
AttributeError: 'Monitor' object has no attribute 'work_id'
2019-08-12T17:52:54Z <Greenlet at 0x7fa6958148: ac_commands_handler('xxxx', 'yyyy, <Queue at 0x7fa68e48d0>)> failed with AttributeError
Can you help me with this error ?
-
- Posts: 4
- Joined: Sunday 18 August 2019 15:32
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: LG Smart AC (SmartThinQ)
Hello,
I tried to install this script, evrything was great til but i can't go further than an unsuccessfull test, i do not get the "wideq_state.json" file as supposed to have.
After having widep.py file updated i run the exemple.py script, and get this :
root@tynati:~/LGAC_SmartT# nano wideq.py
root@tynati:~/LGAC_SmartT# python3 example.py
Log in here:
https://fr.m.lgaccount.com/login/sign_i ... LGAO221A02
Then paste the URL where the browser is redirected:
https://fr.m.lgaccount.com/login/iabClo ... geapi.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 "/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'
root@tynati:~/LGAC_SmartT# ls
Controls.PNG Hardware.PNG LG-SThinq-AC __pycache__ setup.py wideq.egg-info
example.py LGACServerNew.py LICENSE README.md testServer.py wideq.py
What am i doing wrong ?
Domoticz Version: 4.9700, running on Raspi
I tried to install this script, evrything was great til but i can't go further than an unsuccessfull test, i do not get the "wideq_state.json" file as supposed to have.
After having widep.py file updated i run the exemple.py script, and get this :
root@tynati:~/LGAC_SmartT# nano wideq.py
root@tynati:~/LGAC_SmartT# python3 example.py
Log in here:
https://fr.m.lgaccount.com/login/sign_i ... LGAO221A02
Then paste the URL where the browser is redirected:
https://fr.m.lgaccount.com/login/iabClo ... geapi.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 "/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'
root@tynati:~/LGAC_SmartT# ls
Controls.PNG Hardware.PNG LG-SThinq-AC __pycache__ setup.py wideq.egg-info
example.py LGACServerNew.py LICENSE README.md testServer.py wideq.py
What am i doing wrong ?
Domoticz Version: 4.9700, running on Raspi
-
- Posts: 8
- Joined: Wednesday 24 July 2019 8:30
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: LG Smart AC (SmartThinQ)
Thierry,
Once you logged in using the provided URL you should see that the resulting URL has 3 data in it. access_token, refresh_token and oauth2_backend_url
This is all that would go in the resulting json file anyway.
I suggest you simply move to the next step using the raw information from the URL that you can copy / paste in a text editor.
I hope this will be enough to get you out of trouble.
Once you logged in using the provided URL you should see that the resulting URL has 3 data in it. access_token, refresh_token and oauth2_backend_url
This is all that would go in the resulting json file anyway.
I suggest you simply move to the next step using the raw information from the URL that you can copy / paste in a text editor.
I hope this will be enough to get you out of trouble.
-
- Posts: 3
- Joined: Wednesday 02 October 2019 11:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: LG Smart AC (SmartThinQ)
Hello,
I would like to inform you that the library WIDEQ has been updated, and now it is possible to change vertical and the horizontal swing
Maybe someone can adapted it to the olinek2's python plugin ?
I would like to inform you that the library WIDEQ has been updated, and now it is possible to change vertical and the horizontal swing
Maybe someone can adapted it to the olinek2's python plugin ?
-
- Posts: 4
- Joined: Sunday 18 August 2019 15:32
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: LG Smart AC (SmartThinQ)
Hello luckymr2201,luckymr2201 wrote: ↑Monday 26 August 2019 8:53 Thierry,
Once you logged in using the provided URL you should see that the resulting URL has 3 data in it. access_token, refresh_token and oauth2_backend_url
This is all that would go in the resulting json file anyway.
I suggest you simply move to the next step using the raw information from the URL that you can copy / paste in a text editor.
I hope this will be enough to get you out of trouble.
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
Re: Python Plugin: LG Smart AC (SmartThinQ)
Hi,
I am a totally newbee on Python and Raspberry Pi....
I have two LG SmartThinq AC's. I want to use them with Domoticz because the app is really slow. And I don't want to use several apps/programs to control my stuff.
I've read the wiki's.... but I really don't know where to start.
Is there a 'simple' tutorial who to install everything on a Pi in an "A to Z"-listing.
Something like:
Open Putty
Connect to your raspberry
use this command to install Wideq
use these commands to setup your connections with the AC
then do this
then do that
links to sites as :https://pypi.org/project/wideq/ drives me complety mad, because I don't know where to start.
What should I do, to install WideQ on my Pi????
after that I need to do these steps: https://github.com/olinek2/LGAC_SmartT .......
But even that is to complicated for me.... for all programmers it seems every easy, but for a newbee: a simple thing for you, is difficult for me....
So is there someone how could make a 'tutorial for a complete newbee', with very simple instructions.
Even steps that are so easy for you, not left out.... so I could copy this straight forward...
Many thanks in advance
I am a totally newbee on Python and Raspberry Pi....
I have two LG SmartThinq AC's. I want to use them with Domoticz because the app is really slow. And I don't want to use several apps/programs to control my stuff.
I've read the wiki's.... but I really don't know where to start.
Is there a 'simple' tutorial who to install everything on a Pi in an "A to Z"-listing.
Something like:
Open Putty
Connect to your raspberry
use this command to install Wideq
use these commands to setup your connections with the AC
then do this
then do that
links to sites as :https://pypi.org/project/wideq/ drives me complety mad, because I don't know where to start.
What should I do, to install WideQ on my Pi????
after that I need to do these steps: https://github.com/olinek2/LGAC_SmartT .......
But even that is to complicated for me.... for all programmers it seems every easy, but for a newbee: a simple thing for you, is difficult for me....
So is there someone how could make a 'tutorial for a complete newbee', with very simple instructions.
Even steps that are so easy for you, not left out.... so I could copy this straight forward...
Many thanks in advance
RFXcom433e ver1009,Raspberry Pi,Domoticz v3.5877
KaKu:16c remote,dimmer,wall-sockets,sunscreenswitch
Promax:wall sockets Elro:wall sockets Somfy:RFY screens
TFA:weather station Chinese temperature sensors, smoke detectors, power switches
KaKu:16c remote,dimmer,wall-sockets,sunscreenswitch
Promax:wall sockets Elro:wall sockets Somfy:RFY screens
TFA:weather station Chinese temperature sensors, smoke detectors, power switches
Re: Python Plugin: LG Smart AC (SmartThinQ)
Hi, I'm a little bit further then before
Now I've got a problem at this point:
python3 example.py
The script will ask you to open a browser, log in, and then paste the URL you're redirected to. It will then write a JSON file called wideq_state.json.
I've typed the url in Google Chrome and I want to log in... But the site doesn't respond.
I live in the Netherlands, so I've changed (in comparision with Poland) PL to NL... left the rest unchanged....
The url copied to CHROME... can't log in.... what am I doing wrong???
Now I've got a problem at this point:
python3 example.py
The script will ask you to open a browser, log in, and then paste the URL you're redirected to. It will then write a JSON file called wideq_state.json.
I've typed the url in Google Chrome and I want to log in... But the site doesn't respond.
I live in the Netherlands, so I've changed (in comparision with Poland) PL to NL... left the rest unchanged....
The url copied to CHROME... can't log in.... what am I doing wrong???
RFXcom433e ver1009,Raspberry Pi,Domoticz v3.5877
KaKu:16c remote,dimmer,wall-sockets,sunscreenswitch
Promax:wall sockets Elro:wall sockets Somfy:RFY screens
TFA:weather station Chinese temperature sensors, smoke detectors, power switches
KaKu:16c remote,dimmer,wall-sockets,sunscreenswitch
Promax:wall sockets Elro:wall sockets Somfy:RFY screens
TFA:weather station Chinese temperature sensors, smoke detectors, power switches
Re: Python Plugin: LG Smart AC (SmartThinQ)
Hi... Finally got some problems solved... created a new LG-account, and fixed a type-mismatch in the URL.
But now the following error occurs:
When I get to this point:
To check if the server is operating properly type: ./LGACServerNew.py.
pi@raspberrypi:~/LGAC_SmartT $ ./LGACServerNew.py
Traceback (most recent call last):
File "./LGACServerNew.py", line 9, in <module>
from gevent import monkey
ImportError: No module named 'gevent'
pi@raspberrypi:~/LGAC_SmartT $
Tried several thing to install GEVENT, but nothing works....
python3 version = 3.5.2
python version = 2.7.9
When installing several things (pip, greenlet, gevent), i see that GEVENT is installed... but it keeps giving this error
This drives me crazy.... because I'm almost at the end of this wiki
But now the following error occurs:
When I get to this point:
To check if the server is operating properly type: ./LGACServerNew.py.
pi@raspberrypi:~/LGAC_SmartT $ ./LGACServerNew.py
Traceback (most recent call last):
File "./LGACServerNew.py", line 9, in <module>
from gevent import monkey
ImportError: No module named 'gevent'
pi@raspberrypi:~/LGAC_SmartT $
Tried several thing to install GEVENT, but nothing works....
python3 version = 3.5.2
python version = 2.7.9
When installing several things (pip, greenlet, gevent), i see that GEVENT is installed... but it keeps giving this error
This drives me crazy.... because I'm almost at the end of this wiki
RFXcom433e ver1009,Raspberry Pi,Domoticz v3.5877
KaKu:16c remote,dimmer,wall-sockets,sunscreenswitch
Promax:wall sockets Elro:wall sockets Somfy:RFY screens
TFA:weather station Chinese temperature sensors, smoke detectors, power switches
KaKu:16c remote,dimmer,wall-sockets,sunscreenswitch
Promax:wall sockets Elro:wall sockets Somfy:RFY screens
TFA:weather station Chinese temperature sensors, smoke detectors, power switches
-
- Posts: 71
- Joined: Tuesday 30 April 2019 16:06
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.10717
- Location: Portugal
- Contact:
Re: Python Plugin: LG Smart AC (SmartThinQ)
Good night,
I have some kind of problem when I type: $ ./LGACServerNew.py from telnet
I get this message error:
File "./LGACServerNew.py", line 99, in ac_commands_handler
if device.type != wideq.DeviceType.AC:
AttributeError: 'NoneType' object has no attribute 'type'
2020-02-09T01:28:34Z <Greenlet at 0x75909718: ac_commands_handler('nvjvbkl0-7681-22d3-34b0-0051ed5e5675: Air Conditi, 'f561e12e315a6c22dfb07ec21ewfdw20nbkjlle7427e82fe, <Queue at 0x75e55928>)> failed with AttributeError
I think I am not able to loggin in LG-Server and I cannot power on AC device from Domoicz.
Any help is appreciated.
I have some kind of problem when I type: $ ./LGACServerNew.py from telnet
I get this message error:
File "./LGACServerNew.py", line 99, in ac_commands_handler
if device.type != wideq.DeviceType.AC:
AttributeError: 'NoneType' object has no attribute 'type'
2020-02-09T01:28:34Z <Greenlet at 0x75909718: ac_commands_handler('nvjvbkl0-7681-22d3-34b0-0051ed5e5675: Air Conditi, 'f561e12e315a6c22dfb07ec21ewfdw20nbkjlle7427e82fe, <Queue at 0x75e55928>)> failed with AttributeError
I think I am not able to loggin in LG-Server and I cannot power on AC device from Domoicz.
Any help is appreciated.
Last edited by javalin on Sunday 09 February 2020 12:29, edited 1 time in total.
-
- Posts: 71
- Joined: Tuesday 30 April 2019 16:06
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.10717
- Location: Portugal
- Contact:
Re: Python Plugin: LG Smart AC (SmartThinQ)
Solved, just had to write the Device number "????????-????-????-????-????????????" and avoid the rest of the string
Re: Python Plugin: LG Smart AC (SmartThinQ)
Finally I boughed a brand new Raspberry Pi 3B+
Installed newest Raspbian software
updated everything...
but now I get problems at the point where I logged in to LG and put the return URL in EXAMPLE.PY
see my screenshot with a lot of errors....
Installed newest Raspbian software
updated everything...
but now I get problems at the point where I logged in to LG and put the return URL in EXAMPLE.PY
see my screenshot with a lot of errors....
RFXcom433e ver1009,Raspberry Pi,Domoticz v3.5877
KaKu:16c remote,dimmer,wall-sockets,sunscreenswitch
Promax:wall sockets Elro:wall sockets Somfy:RFY screens
TFA:weather station Chinese temperature sensors, smoke detectors, power switches
KaKu:16c remote,dimmer,wall-sockets,sunscreenswitch
Promax:wall sockets Elro:wall sockets Somfy:RFY screens
TFA:weather station Chinese temperature sensors, smoke detectors, power switches
Re: Python Plugin: LG Smart AC (SmartThinQ)
WOW !!! Problem solved..... I had Raspbian Buster installed, went back to Stretch and no problems with installation....
Didn't copied the folder to domoticz yet.
I've 2 airco's and want them both installed in Domoticz, how will I do that?
After that I will copy folder to Domoticz
Didn't copied the folder to domoticz yet.
I've 2 airco's and want them both installed in Domoticz, how will I do that?
After that I will copy folder to Domoticz
RFXcom433e ver1009,Raspberry Pi,Domoticz v3.5877
KaKu:16c remote,dimmer,wall-sockets,sunscreenswitch
Promax:wall sockets Elro:wall sockets Somfy:RFY screens
TFA:weather station Chinese temperature sensors, smoke detectors, power switches
KaKu:16c remote,dimmer,wall-sockets,sunscreenswitch
Promax:wall sockets Elro:wall sockets Somfy:RFY screens
TFA:weather station Chinese temperature sensors, smoke detectors, power switches
Who is online
Users browsing this forum: No registered users and 1 guest