sampsyo / wideq

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

Sending on command to AC not working #54

Closed AlexandreLogist closed 5 years ago

AlexandreLogist commented 5 years ago

Hi,

When sending the on commands to the api endpoint, the ac is not turned on. I've tried with the 3 on commands as following payload. Anything I'm missing?

data = {
            'cmd': 'Control',
            'cmdOpt': 'Set',
            'value': {"Operation": "AC_MAIN_OPERATION_ALL_ON_W"},
            'deviceId': device_id,
            'workId': gen_uuid(),
            'data': '',
        }

--> turning it off works as expected and setting the temperature too.

KR Alex

AlexandreLogist commented 5 years ago

Seems like a pebcak issue as the api expects booleans :) Great repo btw !