Closed nsolvepaul closed 3 years ago
Hi, can you please tell me the version of the integration, that your are using, and also the home assistant version? And for more information, can you enable the debug logging for the integration in your configuration.yaml?
logger:
default: warning
logs:
custom_components.husqvarna_automower: debug
custom_components.husqvarna_automower.vacuum: debug
custom_components.husqvarna_automower.config_flow: debug
`Thanks for the reply @Thomas55555
version | core-2021.2.3 |
---|---|
installation_type | Home Assistant OS |
dev | false |
hassio | true |
docker | true |
virtualenv | false |
python_version | 3.8.7 |
os_name | Linux |
os_version | 5.4.83-v7l |
arch | armv7l |
timezone | Europe/London |
With logging:
2021-02-26 06:57:12 INFO (MainThread) [custom_components.husqvarna_automower] Inizialising UpdateCoordiantor 2021-02-26 06:57:12 INFO (MainThread) [custom_components.husqvarna_automower] Updating data 2021-02-26 06:57:12 INFO (MainThread) [custom_components.husqvarna_automower] Getting new token, because Null oder expired 2021-02-26 06:57:16 INFO (MainThread) [custom_components.husqvarna_automower] {'access_token': 'eyJhbGciOi.....LbQLQ', 'scope': 'iam:read', 'expires_in': 86399, 'refresh_token': 'ee25....1d35', 'provider': 'husqvarna', 'user_id': 'f846....c59c', 'token_type': 'Bearer'} 2021-02-26 06:57:16 INFO (MainThread) [custom_components.husqvarna_automower] Token expires at 1614409035.087819 UTC 2021-02-26 06:57:16 DEBUG (MainThread) [custom_components.husqvarna_automower] Finished fetching husqvarna_automower data in 4.178 seconds 2021-02-26 06:57:16 ERROR (MainThread) [homeassistant.components.vacuum] Error while setting up husqvarna_automower platform for vacuum Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 198, in _async_setup_platform await asyncio.shield(task) File "/config/custom_components/husqvarna_automower/vacuum.py", line 43, in async_setup_entry for idx, ent in enumerate(coordinator.data["data"]) KeyError: 'data'`
I could reproduce the error. You probably only have connected to the Authentication API and not to the Automower Connect API. See step 5 of the instructions. Please connect to the Automower API on the Husqvarna website and then it should work.
Thank you that was indeed the issue, completely missed it sorry
I believe I have followed the installation instructions but am getting this error in the logviewer:
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 198, in _async_setup_platform await asyncio.shield(task) File "/config/custom_components/husqvarna_automower/vacuum.py", line 43, in async_setup_entry for idx, ent in enumerate(coordinator.data["data"]) KeyError: 'data'
Any tips please