Couldn’t find anything that I could use so I took a stab at adding support for it myself.
Code lives here: https://github.com/flz/hass-aqualink. Just needs to be dropped in your custom_components directory and add an aqualink section to your config (with username/password fields). Check the github link for more in-depth instructions.
This may require a recent version of HA. I have 0.92.x.
Thank you for taking this on, really appreciate the work.
Gave it a quick run this evening getting the following in the logs. I will have more time in the morning to look into this further, but thought you might recognize something.
2019-03-15 16:26:48 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Aqualink for aqualink
Traceback (most recent call last):
File “/usr/src/app/homeassistant/config_entries.py”, line 260, in async_setup
result = await component.async_setup_entry(hass, self)
File “/config/custom_components/aqualink/init.py”, line 69, in async_setup_entry
aqualink.refresh()
File “/config/custom_components/aqualink/api.py”, line 207, in refresh
state = state_map[state.attrs[‘src’]]
KeyError: ‘/files/images/aux_1_0.png’
Found the problem, the state_map was failing on my pool light. Added the extra values and i am now up and running.
Will run some tests and report back. The light is dimmable, so that may be the difference
Thanks again, wasn’t sure how i was going to integrate my pool equipment. Was looking into the aqualinkD project, and about to order a Pi. But was not sure how i was going to get it connected into HA. This is much simpler, and has all the functions i need. Great work, and very timely.
Thank you. I was going to ask them for an api when I can find time during their support hours, but you got a component done. Could you supply an example config section on the github page. I am not able to get mine working. Edit: Issue is related to the image of aux_2_0.png missing.
Your issue may be similar to mine. I have a dimmable pool light that uses a different image for the state and a different method for toggling off and on. What i did to temporarily patch the issue was to add the two new images into the state_map logic in api.py (see below). My issue was the dimmable light that uses aux_1_0 and aux_1_1. Looks like you may have something a bit different.
I don’t have dimmable lights in my setup but if you can give me temporary access somehow, I’d be happy to have a look for you.
None of that stuff is documented so I’ve only been able to go with what the UI showed me. For example, it’s not clear to me what difference there is between aux_0_1.png and aux_0_3.png. Both icons looked the same to me.
Sure, i am up for that. But apparently i am not smart enough to figure out how to send a personal message with the uid/passowrd. I will figure it out eventually i suppose. Thanks
ok, found the PM (i think). you should have access, good luck. I will leave it open for a bit. If you need more, let me know. I am very happy to help you any way that i am able. Really appreciate the effort!
Bonus points if you can grab both the set-point temperatures. Might be nice to combine that with the temp and heater controls for a climate entity.
Thanks, I’ll try to have a look in the next few days.
I doubt the temperatures will be available, I know they aren’t for me. I’m guessing this isn’t something that iAqualink exposes. Likewise, I can change the settings for the chlorine generator.
My set temps are there, interesting that yours are not. No chlorine generator though. It certainly is a challenging project when things appear differently for each pool. Good luck. It is a beautiful sunny day, so outside anyway.
Attaching a pic of my new pool tab, thanks to you!
I like the look of your tab, I haven’t given much time to mine besides having my sensors/switches in separate pool/spa cards
You’re right, I have the set temperatures. I will have a look at that after I add support for the dimmable lights. It might be tricky to test but it shouldn’t be too difficult to implement.