Fixer.io exchange rates fails to load

Hello, i’m trying to get the fixer.io integration to work but getting the following on startup:

fixer: Error on device update!
 
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 493, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 715, in async_device_update
    await task
  File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/fixer/sensor.py", line 105, in update
    self._state = round(self.data.rate["rates"][self._target], 3)
KeyError: 'rates'

The entry in configuration.yaml looks like this:

sensor:
  - platform: fixer
    api_key: redacted
    target: SEK

anyone has any idea what i’m doing wrong?

Fixer.io has moved to apilayer but their new api key doesn’t work with this integration… so the solution was to register on Sign Up - Fixer without letting it redirect you to apilayer. With firefox this can be done by editing about:config and setting accessibility.blockautorefresh to true. Weird solution but it works.

Probably the integration need to be updated.

2 Likes