sampsyo / wideq

reverse-engineered client for the LG SmartThinQ API
https://pypi.org/project/wideq/
MIT License
331 stars 159 forks source link

wideq.core.InvalidRequestError: (9000, '잘못된 요청') #135

Closed gholliday closed 3 years ago

gholliday commented 3 years ago

Similar to https://github.com/sampsyo/wideq/issues/63, my device doesn't support instant power usage reporting via InOutInstantPower or OutTotalInstantPower

python3 example.py -c AU -l en-AU -v ac-config deviceid
Traceback (most recent call last):
  File "example.py", line 302, in <module>
    main()
  File "example.py", line 298, in main
    example(args.country, args.language, args.verbose, args.cmd, args.args)
  File "example.py", line 239, in example
    example_command(client, cmd, args)
  File "example.py", line 208, in example_command
    func(client, *args)
  File "example.py", line 186, in ac_config
    print(ac.get_outdoor_power(), " watts")
  File "/code/wideq/wideq/ac.py", line 318, in get_outdoor_power
    value = self._get_config('OutTotalInstantPower')   <-------------------------
  File "/code/wideq/wideq/client.py", line 453, in _get_config
    key,
  File "/code/wideq/wideq/core.py", line 500, in get_device_config
    'data': '',
  File "/code/wideq/wideq/core.py", line 402, in post
    return lgedm_post(url, data, self.auth.access_token, self.session_id)
  File "/code/wideq/wideq/core.py", line 219, in lgedm_post
    raise API_ERRORS[code](code, message)
wideq.core.InvalidRequestError: (9000, '잘못된 요청')

Fix is incoming.