Want to track your crypto portfolio inside Home Assistant? In this tutorial, Iโll show you how to display cryptocurrency values as sensors, add history graphs to your dashboard, and automatically track highest and lowest values using helpers and automations.
Even if you donโt own Bitcoin or any crypto, this is a great tutorial to learn how to work with numbers, YAML, Jinja templates, helpers, and automations in Home Assistant.
Note: The crypto values in this guide are examples and not based on my personal portfolio.
โญโญโญ NOTE: โญโญโญ
This article belongs to a YouTube video. I wrote it before recording the video. You can help me continue doing this by checking out the video, commenting on it, giving it a thumbs up, andย subscribing to my YouTube channel. This will ensure that the video is offered more frequently to new visitors, allowing them to stay informed about the latest Home Assistant tutorials and smart home-related product reviews.
I appreciate your support!
Ed
What Weโre Building
By the end, youโll have:
- Crypto sensors (Bitcoin, Litecoin, Ripple) showing portfolio value in EUR
- A dashboard with:
- Tile cards per coin
- History graph cards
- Min + Max tiles per coin
- Helpers to track:
- Bitcoin Min / Max
- Litecoin Min / Max
- Ripple Min / Max
- Crypto Total + Crypto Total Max
- Automations to keep min/max updated continuously
Step 1: Install Cryptoinfo Advanced via HACS
- Go to HACS
- Search for Cryptoinfo Advanced
- Download and install
- Restart Home Assistant
If you donโt have HACS yet, install HACS first (itโs required for this integration).
Step 2: Create Crypto Sensors in YAML
Install a text editor add-on like Studio Code Server, then:
- Open
configuration.yaml - Add:
sensor: !include sensors.yaml
- Create
sensors.yaml
Example sensors (edit multipliers to match your own holdings):
- platform: cryptoinfo_advanced
id: "bitcoin"
cryptocurrency_name: "bitcoin"
currency_name: "eur"
unit_of_measurement: "โฌ"
multiplier: 0.4
update_frequency: 15
Repeat for Litecoin and Ripple (or any coin you want). The multiplier is what makes this a portfolio sensor instead of just the market price.
Step 3: Build the Crypto Dashboard (Tiles + Graphs)
Create a dashboard view using Sections, then for each coin:
- Add a Heading (e.g., Bitcoin)
- Add a Tile card for the sensor
- Add a History Graph card for the same sensor
- Set the tile name + precision (2 decimals)
Step 4: Create Helpers (Min/Max + Total)
Create:
- Number helpers for each coin:
- Bitcoin Min, Bitcoin Max, Litecoin Min, Litecoin Max, Ripple Min, Ripple Max
- A โCombine sensorsโ helper:
- Crypto Total (Sum of all crypto sensors)
- One more Number helper:
- Crypto Total Max
Set step size to 0.01 and unit to โฌ.
Then set initial min/max helper values manually to the current sensor values to create a baseline.
Step 5: Automations for Max Values (YAML + Jinja)
Create one automation with:
- Triggers for each coin sensor + Crypto Total
- โChooseโ actions with โTriggered byโ conditions
- An
input_number.set_valueaction that updates Max when the new value is higher
Set automation mode to Queued to avoid collisions.
Step 6: Automations for Min Values (and prevent 0 values)
Duplicate the max automation and modify it:
- Remove Crypto Total (optional)
- Add numeric condition
Above 0to avoid overwriting with 0 when data fails - Use
<comparison for min logic
Step 7: Add Min/Max to the Dashboard
For each coin section:
- Add two Tile cards for Min and Max helpers
- Place them next to the main coin tile
For totals:
- Add Crypto Total and Crypto Total Max as badges
Known Issue: Input Numbers and Decimals
Input number helpers donโt always show two decimal places nicely (e.g., showing โ12.5โ instead of โ12.50โ). Home Assistant currently doesnโt allow setting precision for input numbers. The clean workaround is to create template sensors that format the values correctly.
Final Thoughts
This Home Assistant crypto dashboard is:
- A great exercise in YAML, helpers, and automations
- Practical (if you track your portfolio)
- Educational (even if you donโt)
If this tutorial saved you time or frustration, consider sponsoring the channel. These guides take many hours to produce.
โญโญโญ
- Join this channel to get access to perks: ๐บ https://www.youtube.com/c/smarthomejunkie/join
- Please consider becoming my patron ๐ at https://www.patreon.com/join/smarthomejunkie
- Or please support me by buying me a โ at https://ko-fi.com/smarthomejunkie/
- Or sponsor me through PayPal at https://paypal.me/smarthomejunkie
โญโญโญ
