Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i2d is not a supported system type. #18

Open
rkinnc75 opened this issue Feb 4, 2022 · 4 comments
Open

i2d is not a supported system type. #18

rkinnc75 opened this issue Feb 4, 2022 · 4 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@rkinnc75
Copy link

rkinnc75 commented Feb 4, 2022

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('xxx@example.com', '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

@flz flz added enhancement New feature or request help wanted Extra attention is needed labels Feb 4, 2022
@flz
Copy link
Owner

flz commented Feb 4, 2022

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.

@rkinnc75
Copy link
Author

rkinnc75 commented Feb 4, 2022 via email

@flz
Copy link
Owner

flz commented Feb 4, 2022

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.

@DarkWolf7
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants