Coinbase

The coinbase integration lets you access account balances and exchange rates from Coinbase.

You will need to obtain an API key from the API section in Coinbase’s User Settings to use this integration. Your API key and secret should be of the form organizations/XXXXX/apiKeys/XXXXX and -----BEGIN EC PRIVATE KEY-----\nXXXXXXXXXXXXXXXXX\n-----END EC PRIVATE KEY-----\n respectively. When creating your API key, it is highly recommended to ensure that only the View box is ticked in the API restrictions section.

配置

要将 Coinbase integration 添加到您的 Home Assistant 实例中,请使用此 My 按钮:

手动配置步骤

如果上述 My 按钮不起作用,您也可以手动执行以下步骤:

API Key

Your API key generated by Coinbase, this is required.

API Secret

Your API secret generated by Coinbase, this is required.

选项

Coinbase 的选项可以通过用户界面设置,具体步骤如下:

  • 浏览到您的 Home Assistant 实例。
  • 转到 设置 > 设备与服务
  • 如果配置了多个 Coinbase 实例,请选择您想配置的实例。
  • 选择集成,然后选择 配置
Wallet balances to report

List of currency codes to create account wallet sensors for.

Exchange rates to report

Optional list of currencies to create exchange rate sensors for.

Base currency for exchange rate sensors

Currency used as the currency unit for exchange rate sensors. The default is US Dollar (USD).

Number of decimal places for exchange rates

The number of decimals calculated in exchange rate sensors, a smaller number of decimal places may be returned when the upstream data from Coinbase lacks sufficient precision, this is usually the case when the exchange rate is much larger than the base currency and thus should have no significant effect on calculations.