home-assistant.io/source/_components/etherscan.markdown
Piotr Żuralski 6cbcc1acdc fixing ha_category components annotation (#9432)
* fixing ha_category components annotation

Signed-off-by: Piotr Żuralski <piotr.zuralski@gmail.com>

* ✏️ Tweak
2019-05-11 09:46:28 +02:00

1.6 KiB

layout title description date sidebar comments sharing footer logo ha_category ha_release ha_iot_class redirect_from
page Etherscan Instructions on how to integrate Etherscan.io data within Home Assistant. 2017-06-01 16:20 true false true true etherscan.png
Finance
0.47 Cloud Polling
/components/sensor.etherscan/

The Etherscan sensor platform displays Ether and ERC-20 token balances from Etherscan.io.

To add the Etherscan sensor to your installation, specify an Ethereum address to watch in the configuration.yaml file. You can also optionally provide a token name to retrieve and ERC-20 token balance. If no token is provided then the balance retrieved will be in ETH. You can also optionally provide the token contract address in case the token name is not found.

# Example configuration.yaml entry
sensor:
  - platform: etherscan
    address: '0xfB6916095ca1df60bB79Ce92cE3Ea74c37c5d359'
  - platform: etherscan
    address: "0xfB6916095ca1df60bB79Ce92cE3Ea74c37c5d359"
    token: OMG
  - platform: etherscan
    address: "0xfB6916095ca1df60bB79Ce92cE3Ea74c37c5d359"
    token_address: "0xef68e7c694f40c8202821edf525de3782458639f"
    token: LRC

{% configuration %} address: description: Ethereum wallet address to watch. required: true type: string name: description: The name of the sensor used in the frontend. required: false type: string default: ETH Balance token: description: The ERC20 token symbol. i.e., OMG. required: false type: string token_address: description: The ERC20 token contract address. required: false type: string {% endconfiguration %}