CharlesBlonde / libpurecoollink

Dyson Pure Cool link python library
http://libpurecoollink.readthedocs.io
Other
205 stars 54 forks source link

Could not Power On #22

Open jeydude1 opened 5 years ago

jeydude1 commented 5 years ago

Hi, Thanks for your API. I have used your API to control Dyson Pure Hot+CoolLink™ air purifier heater & fan device - If I turn ON the Dyson device manually, then if I send the API commands to increase/reduce Heat, Fan Speed, etc it works fine.

But I could not turn ON the Dyson device using API command. Is there any way to Turn ON/OFF the Dyson device using API command? Thanks for your help!

jeydude1 commented 5 years ago

it was my mistake - i have fixed it by doing

To turn on the device, by setting FAN_MODE to FAN

print("Turn ON the FAN")
devices[0].set_configuration(fan_mode=FanMode.FAN, fan_speed=FanSpeed.FAN_SPEED_1)

wait for sometime

time.sleep(interval)