CharlesBlonde / libpurecoollink

Dyson Pure Cool link python library

Home Page:http://libpurecoollink.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't find device in account

bryanshihpeng opened this issue · comments

Hi, Thanks for your API.
I Can't find my TP04 in my account which is already registered.
what can i do?
Thanks for your help!

modify dyson.py v1 -> v2

def devices(self):
        """Return all devices linked to the account."""
        if self._logged:
            device_response = requests.get(
                "https://{0}/v2/provisioningservice/manifest".format(
                    DYSON_API_URL), verify=False, auth=self._auth)

and dyson_device.py
because 'Active' is not found in the response now

    def on_connect(client, userdata, flags, return_code):
        ...
#         self._active = json_body['Active']
        self._active = True

But in my case, program freezes after connect() or auto_connect().

the current version of this library doesn't support those devices and I'm afraid that those changes aren't enough to get them working. but I already submitted a pr add support for them here:
#15