Hi,
Which platform do you use for currency and stock exchange rates? Am I the only one experiencing issue with all of them? I am interested in USD to EUR, HUF, BTC, ETH, XRP and a few stocks. So far what I am experiencing:
Currently only the Alpha Vantage could provide both currency, crypto and stock information. My implementation is like below but the problem is it is only providing information for one currency, kind of randomly. After every restart it picks one which works e.g. I have XRP information at the moment but the rest just causing an error in the log. After a restart I have e.g. BTC and all the others have the following error. Is anyone experiencing this? Anything to try?
Implementation:
- platform: alpha_vantage
api_key: !secret alpha_vantage_api
foreign_exchange:
- name: USD_HUF
from: USD
to: HUF
- name: Bitcoin
from: BTC
to: USD
- name: Ethereum
from: ETH
to: USD
- name: Ripple
from: XRP
to: USD
Error log:
2018-12-05 17:02:56 ERROR (MainThread) [homeassistant.components.sensor] alpha_vantage: Error on device update!
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py”, line 248, in _async_add_entity
await entity.async_device_update(warning=False)
File “/srv/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/entity.py”, line 349, in async_device_update
await self.hass.async_add_executor_job(self.update)
File “/usr/lib/python3.6/concurrent/futures/thread.py”, line 56, in run
result = self.fn(*self.args, **self.kwargs)
File “/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/sensor/alpha_vantage.py”, line 216, in update
from_currency=self._from_currency, to_currency=self._to_currency)
File “/srv/homeassistant/lib/python3.6/site-packages/alpha_vantage/alphavantage.py”, line 178, in _format_wrapper
data = call_response[data_key]
KeyError: ‘Realtime Currency Exchange Rate’
CurrencyLayer
I just implemented, does not show any error but does not show up in the states list either. Basically it acts like it would not be in my implementation.
- platform: currencylayer
api_key: secret! currencylayer_api_key
base: USD
quote:
- EUR
- HUF
Coinmarketcap
Only showed me BTC as many times as many currencies I requested. I was requesting ETH, BTC, XRP and got bitcoin 3 times in the states list.
Fixer
I just removed, did not work either.
Any idea what and how to use would be highly appreciated!