HASS integration to track your ETF values and profits based of the JustETF API*.
- Using the tool of choice open the directory (folder) for your HA configuration (where you find
configuration.yaml
). - If you do not have a
custom_components
directory (folder) there, you need to create it. - In the
custom_components
directory (folder) create a new folder calledetf_monitor
. - Download all the files from the
custom_components/etf_monitor/
directory (folder) in this repository. - Place the files you downloaded in the new directory (folder) you created.
- Add the
etf_monitor
as a new sensor to yourconfiguration.yaml
See Configuration - Create your ETF configuration file and add your ETFs. See ETF Config
- Restart Home Assistant
For an example configuration see the ./config folder. This folder contains an example for the sensor creation in the configuration.yaml
and an example of an etf configuration file.
Ready to stay informed about your ETF investments? Head over to JustETF to find your desired ETF(s). Once located, simply copy the ISIN of the ETF and seamlessly integrate it into your ETF configuration. After adding your purchases and restarting Home Assistant, your ETFs will be represented by two sensor entries: one displaying the current price per share, and the other showcasing the Gain/Loss of your investments. Stay ahead of the curve with effortless ETF monitoring!
Configuration of the integration in the configuration.yaml
.
sensor:
- platform: etf_monitor # Platform of this integration
name: "ETF Sens" # (Optional) Name for the integration (Default: None)
config: "etf_tracker.yaml" # (Optional) Name of the configuration file relative to the config folder (Default: "etf_tracker.yaml")
update_rate: 300 # (Optional) API polling rate in seconds (Default: 300)
Configuration of ETFs to track and purchase history.
etfs: # ETF collection
- name: MSCI Europe # ETF Name and sensor entity name
isin: LU0274209237 # ETF ISIN for API requests
transactions: # List of transactions to track
- amount: 8 # Amount of shares
purchase_price: 80.64 # Price per share
purchase_date: 18-01-2024 # (optional) Date of purchase
- amount: 15 # ...
purchase_price: 80.97
purchase_date: 12-12-2023
Please be advised that the API utilized in this project is not officially documented by JustETF. Consequently, it may be subject to alterations, limitations, or discontinuation without prior notice. As such, we cannot guarantee its continued availability or functionality.