Starting new.
pi@raspberrypi:~/domoticz/plugins/domoticz_lg_thinq_plugin $ python3 example.py -c NL -l en-EN
Traceback (most recent call last):
File "example.py", line 235, in example
with open(STATE_FILE) as f:
FileNotFoundError: [Errno 2] No such file or directory: 'wideq_state.json'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "example.py", line 343, in <module>
main()
File "example.py", line 339, in main
ret = example(args.country, args.language, args.verbose, cmd=args.cmd, args=args.args)
File "example.py", line 241, in example
raise IOError
OSError
and when i copy an old wideq_state.json is says:
Session expired.
Traceback (most recent call last):
File "example.py", line 343, in <module>
main()
File "example.py", line 339, in main
ret = example(args.country, args.language, args.verbose, cmd=args.cmd, args=args.args)
File "example.py", line 262, in example
resp = example_command(client, cmd, args)
File "example.py", line 225, in example_command
return func(client, *args)
File "example.py", line 32, in ls
for device in client.devices:
File "/home/pi/domoticz/plugins/domoticz_lg_thinq_plugin/wideq/client.py", line 135, in devices
self._devices = self.session.get_devices()
File "/home/pi/domoticz/plugins/domoticz_lg_thinq_plugin/wideq/core.py", line 526, in get_devices
return get_list(self.get("service/application/dashboard"), "item")
File "/home/pi/domoticz/plugins/domoticz_lg_thinq_plugin/wideq/core.py", line 517, in get
language=self.auth.gateway.language,
File "/home/pi/domoticz/plugins/domoticz_lg_thinq_plugin/wideq/core.py", line 282, in thinq_request
raise API_ERRORS
Code: Select all
(code)
TypeError: __init__() takes 1 positional argument but 2 were given
Jacco