iaqualink-py icon indicating copy to clipboard operation
iaqualink-py copied to clipboard

i2d is not a supported system type.

Open rkinnc75 opened this issue 3 years ago • 4 comments

Example logic call and results

pi@raspberrypi:~ $ cat aqua.py

#!/usr/bin/python

import iaqualink from iaqualink.client import AqualinkClient import asyncio

async def main(): async with AqualinkClient('[email protected]', 'password') as c: print(c) s = await c.get_systems() print(s) d = await list(s.values())[0].get_devices() print(d)

if name=="main": asyncio.run(main())

pi@raspberrypi:~ $ python aqua.py

<iaqualink.client.AqualinkClient object at 0xb5cfb370> i2d is not a supported system type. {} Traceback (most recent call last): File "/home/pi/aqua.py", line 16, in asyncio.run(main()) File "/usr/lib/python3.9/asyncio/runners.py", line 44, in run return loop.run_until_complete(main) File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete return future.result() File "/home/pi/aqua.py", line 12, in main d = await list(s.values())[0].get_devices() IndexError: list index out of range

rkinnc75 avatar Feb 04 '22 17:02 rkinnc75

As the message says, that's expected. The API isn't documented and I don't have access to one of those.

Depending on your technical abilities, you might be able to reverse engineer it by setting up a proxy (e.g. mitmproxy, CharlesProxy) and intercepting requests coming from the mobile app. I can also offer to do it for you if you give me access to it.

Either way, I won't have time to add support in the near future. The free time I have is spent getting the current codebase into shape and making it easier for people to contribute to.

flz avatar Feb 04 '22 18:02 flz

Thanks! I've installed mitmproxy and configured it. I've captured a series of different GET/POST lines. I'll see what I can do to decipher it.

On Fri, Feb 4, 2022 at 1:19 PM Florent Thoumie @.***> wrote:

As the message says, that's expected. The API isn't documented and I don't have access to one of those.

Depending on your technical abilities, you might be able to reverse engineer it by setting up a proxy (e.g. mitmproxy, CharlesProxy) and intercepting requests coming from the mobile app. I can also offer to do it for you if you give me access to it.

Either way, I won't have time to add support in the near future. The free time I have is spent getting the current codebase into shape and making it easier for people to contribute to.

— Reply to this email directly, view it on GitHub https://github.com/flz/iaqualink-py/issues/18#issuecomment-1030236669, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKYKR5T66LXMZWB5HNRY323UZQKCXANCNFSM5NSNGXYQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

rkinnc75 avatar Feb 04 '22 19:02 rkinnc75

That's awesome. I've got a bunch of work in progress to make adding new systems easier but documenting the API in the first place is the hardest part.

flz avatar Feb 04 '22 19:02 flz

Hi, has any progress been made on this? I just tried to add one of these to home assistant and running into this issue - I'd be happy to help where I can but I don't speak much Python

DarkWolf7 avatar Aug 26 '22 16:08 DarkWolf7