Jandy iAqualink Pool Integration

Hey @flauran - I got the same problem when upgrading to 0.95:

‘Config flow is not supported for custom integration aqualink’

Looking at changes in 0.95 I found this: https://github.com/home-assistant/home-assistant/pull/24657

Thanks for all your hard work!

Update - downgraded to 94.4 - worked after that

Hello @flauran. First, thank you for creating this! This was a game changer and the reason I migrated from Vera to HA. The integration has been working perfectly for a few months now, but all of a sudden it broke and is throwing the following in the logs:

2019-07-08 20:24:21 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity.py”, line 225, in async_update_ha_state
self._async_write_ha_state()
File “/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity.py”, line 255, in _async_write_ha_state
attr.update(self.state_attributes or {})
File “/usr/local/lib/python3.7/site-packages/homeassistant/components/climate/init.py”, line 219, in state_attributes
self.hass, self.target_temperature, self.temperature_unit,
File “/config/custom_components/aqualink/climate.py”, line 124, in target_temperature
return int(self.dev.state)
ValueError: invalid literal for int() with base 10: ‘’

I’m running Has.io 0.93.2. Any help would be much appreciated!

Try rebooting your router.

1 Like

That got it! Thanks so much.

1 Like

Ciao,
I installed the component and updated configuration.yaml, but I’m receiving below error, can someone help? Thanks

Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/core.py", line 1150, in _safe_execute
    await self._execute_service(handler, service_call)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/core.py", line 1163, in _execute_service
    await handler.func(service_call)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/homeassistant/__init__.py", line 90, in async_handle_core_service
    errors = await conf_util.async_check_ha_config_file(hass)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/config.py", line 841, in async_check_ha_config_file
    res = await check_ha_config_file(hass)  # type: ignore
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/scripts/check_config.py", line 342, in check_ha_config_file
    component = integration.get_component()
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/loader.py", line 130, in get_component
    cache[self.domain] = importlib.import_module(self.pkg_path)
  File "/usr/lib/python3.5/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 986, in _gcd_import
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 669, in exec_module
  File "<frozen importlib._bootstrap_external>", line 775, in get_code
  File "<frozen importlib._bootstrap_external>", line 735, in source_to_code
  File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
  File "/home/homeassistant/.homeassistant/custom_components/aqualink/__init__.py", line 78
    _LOGGER.error(f'Exception raised while attempting to login: {e}')
                                                                   ^
SyntaxError: invalid syntax

Not sure why you’re getting a SyntaxError exception but it looks like the actual issue is that your username/password credentials are incorrect.

Apologies for the delay, I’m pretty busy at the moment. I will update my dev environment to 0.95 and see what’s causing the issue.

I’m pretty sure the username and password are OK. I triple checked it and I tried to hadcorde it as well in init.py. Is there any way I can debug this to get more detail on the error? Thanks

I confirm the component is broken in 95.4 as well. Is it possible to add this to the HACS store?

Also an integration with custom updater would be nice.

Looking like .96 update was not nice to this component unfortunately.

Invalid config

The following components and platforms could not be set up:

  • aqualink.climate

Please check your config.

Unable to prepare setup for platform aqualink.climate: Platform not found (cannot import name ‘STATE_HEAT’ from ‘homeassistant.components.climate.const’ (/usr/src/homeassistant/homeassistant/components/climate/const.py)).

Hey, I’ve just updated the code to work with 0.96. Update the code with git pull.

1 Like

Just noticing that the error mentions python3.5. I’m using python3.7 (which is what comes with hass.io) so that might be the reason.

Back in business. Thanks! I’m seeing this in the log though. Anything to worry about?

i2d_robot is not a supported system type.
10:08 AM custom_components/aqualink/init.py (WARNING)

Nothing to worry about. This is my library’s way of telling you it found a system linked to your iaqualink that it doesn’t know how to handle.

Working perfectly for since you pushed the update, thank you flauran very much. Note that I was still running 0.95 when I first pulled and even after a restart continued to get the same errors but after updating to 0.96 everything picked back up, no additional steps required.

1 Like

Ciao, i’m back again trying to make this work. I believe that there must be something else, for sure the user and password are correct, I have many custom components working with homeassistant, so I’m not new on this :slight_smile:
Can you help providing any further instruction or test I could try?
Thanks in advance

Ciao, after updating Python to 3.7.3, component doesn’t return error, so it seems to be an uncompatibility with Python 3.5.
Now the problem is that it doesnt support any device. I’ve got robot zodiac iq and saline clorator zodiac exo iq. Both are working in the mobile app, can anybody help?
i2d_robot is not a supported system type.
exo is not a supported system type.

Thanks in advance.

1 Like

Thanks for making this library. This is my first time using Home Assistant, and my main, (really only), goal for this project is to be able to use Google Home to control pool functions so I don’t have to get out of the pool, dry off my hands, and control iAqualink through my phone. So far, I have the pool functions showing in the Google Home app, and I can voice control water features and the lights, but I really want to control the light color. I assume this involves an edit of configuration.yaml somehow to assign each light effect to certain names. I have no idea how to do this, any help?

edit: I got this working with a script like this. I’m too big a noob to figure out how to pass in a variable for color, so I just made a different script for each color. Works with Google Home by saying “activate the blue light,” and you set up a routine in the GH app you can just say “turn on the blue pool light.” Now if we can get the VSP functionality added we’ll be in business…

blue_light:
  alias: Blue Light
  sequence:
    service: light.turn_on
    entity_id: light.pool_light
    data:
      effect: 'CARIBBEAN_BLUE'
2 Likes