Bitcoin / Cryptocurrency Dashboards

Very nice dashboard :slight_smile:

I’ve just pushed an update to the addon with fees added, example config:

  - platform: cryptoinfo_advanced
    id: "BTC Mempool Fees - Fastest"
    cryptocurrency_name: "btc"
    unit_of_measurement: "sats"
    update_frequency: 1
    api_mode: "mempool_fees"
    extra_sensors:
      - property: mempool_fees_30min
        id: "BTC Mempool Fees - 30min"
        unit_of_measurement: "sats"
      - property: mempool_fees_60min
        id: "BTC Mempool Fees - 60min"
        unit_of_measurement: "sats"
      - property: mempool_fees_eco
        id: "BTC Mempool Fees - Economy"
        unit_of_measurement: "sats"
      - property: mempool_fees_minimum
        id: "BTC Mempool Fees - Minimum"
        unit_of_measurement: "sats"

I just scrolled down your post and realised you have another section with the mempool-blocks endpoint though :smiley: I’ll add that in a bit and make another new release

Pushed another update so now you can get all those next block sensors with the config below:

  - platform: cryptoinfo_advanced
    id: "BTC Next Block - Total TX"
    cryptocurrency_name: "btc"
    unit_of_measurement: "tx"
    update_frequency: 1
    api_mode: "mempool_next_block"
    extra_sensors:
      - property: mempool_next_block_size_calc
        id: "BTC Next Block - Size"
        unit_of_measurement: "MB"
      - property: mempool_next_block_total_fee_calc
        id: "BTC Next Block - Total Fees"
        unit_of_measurement: "₿"
      - property: mempool_next_block_median_fee
        id: "BTC Next Block - Median Fee"
        unit_of_measurement: "sat/vB"
      - property: mempool_next_block_fee_range_combined
        id: "BTC Next Block - Fee Range"
        unit_of_measurement: "sat/vB"

For Clark Moody’s dashboard it looks possible to get all that data, depending on whether he might block usage or not…

It’s a fair amount of work to add it to my component though, as he’s using websockets not REST…

1 Like

@TheHolyRoger

as you see on my dashboard I have “790 days”, thats days since ATH.
I made my own sensor in your code to calculate that but it was removed when I upgraded.

Is it something you can integrate?

@chrs done sir :slight_smile:

example config:

# BTC Price USD
- platform: cryptoinfo_advanced
  id: "BTC Price USD"
  cryptocurrency_name: "bitcoin"
  currency_name: "usd"
  unit_of_measurement: "$"
  update_frequency: 1
  extra_sensors:
    - property: "all_time_high"
      unit_of_measurement: "$"
    - property: "all_time_high_distance"
      unit_of_measurement: "$"
    - property: "all_time_high_days"
      unit_of_measurement: "days"

There’s also all_time_high_date for the raw date

1 Like

Hi,

Is there a way to get a RSI indicator on a dashboard in HA?

This doesn’t work sensors for bitcoin ids and gap are missing

Sorry not sure what you mean?

Thank you for sharing your config.

I’ve been fiddling with it last couple of days and I do notice that sometimes I see ‘unavailable’. I would assume sometimes it does not get the info through the API. Which is fine tbh because 99% of the time it works fine.

However is there some way when it doesn’t get data and it shows ‘unavailable’ to just use the latest value that was coming through?

yep, missing here too.
Someone can fix it?

@stephanschleichstr13 @Qenq
Sorry the example was missing, see here:

1 Like

Try the latest release, there’s a max fetch failure config option which defaults to 3 before “unavailable”

1 Like

Hello, I would also like to integrate the fear and greed sensor into my system. Can you possibly share the sensor from the configuration? I’ve already searched but haven’t found anything. Many thanks in advance and a nice dashboard

Bitcoin fear and greed index

I’m using REST to get the data.

# Fear and Greed Index
  - resource: https://api.alternative.me/fng/?limit=1&format=json&date_format=cn
    scan_interval: 300  # Adjust the interval as needed (in seconds)
    sensor:
      - name: fear_and_greed_index_value
        value_template: '{{ value_json.data[0].value }}'
        unit_of_measurement: 'Index'
      - name: fear_and_greed_index_classification
        value_template: '{{ value_json.data[0].value_classification }}'
      - name: fear_and_greed_index_date
        value_template: '{{ value_json.data[0].timestamp }}'

example

Screen Shot 2024-05-10 at 14.09.21 PM

You need these custom-cards:

  • custom:stack-in-card
  • custom:bignumber-card
  • custom:apexcharts-card
  • custom:mini-graph-card
  • card_mod

and I cant help you with positioning, that is my akilles.
I just try-try-try until I’m happy with the results.

type: custom:stack-in-card
cards:
  - type: custom:bignumber-card
    entity: sensor.fear_and_greed_index_classification
    scale: 100px
    color: darkorange
    card_mod:
      style: |
        ha-card {
        opacity: 0.3;
        height: 250px;
        width: 100%;
        position: absolute;
          top: 0;
          left: 0;
         }
  - type: custom:apexcharts-card
    header:
      show: false
      title: Fear and Greed Index
      show_states: true
      colorize_states: true
    chart_type: radialBar
    series:
      - entity: sensor.fear_and_greed_index_value
        name: ' '
        color: lawngreen
        max: 100
    apex_config:
      plotOptions:
        radialBar:
          offsetY: 0
          startAngle: -108
          endAngle: 108
          hollow:
            size: 75%
          dataLabels:
            name:
              show: false
            value:
              show: false
          track:
            strokeWidth: 50%
            margin: 0
      fill:
        type: gradient
        gradient:
          shade: dark
          type: horizontal
          gradientToColors:
            - red
          shadeIntensity: 1
          inverseColors: true
          opacityFrom: 1
          opacityTo: 1
          stops:
            - 0
            - 100
      legend:
        show: false
      chart:
        height: 400
    card_mod:
      style: |
        ha-card {
        opacity: 0.3;
        height: 250px;
        width: 100%;
        position: absolute;
          top: -20px;
          left: 0;
        }
  - type: custom:mini-graph-card
    icon: mdi:bitcoin
    entities:
      - entity: sensor.cryptoinfo_btc_price
    point_per_hour: 1
    hours_to_show: 240
    points_per_hour: 1
    line_width: 1
    name: last 10 days
    cache: enable
    font_size: 75
    font_size_header: 14
    height: 250
    show:
      name: false
      icon: false
      points: false
      extrema: false
      state: false
      fill: fade
      graph: line
      legend: true
      labels: true
      labels_secondary: true
    color_thresholds:
      - value: 10000
        color: '#0010FF'
      - value: 13000
        color: '#0024FF'
      - value: 16000
        color: '#0048FF'
      - value: 19000
        color: '#166DFF'
      - value: 22000
        color: '#3882FF'
      - value: 25000
        color: '#5A97FF'
      - value: 28000
        color: '#7DACFF'
      - value: 31000
        color: '#9FC6FF'
      - value: 34000
        color: '#C1DBFF'
      - value: 37000
        color: '#E3DFFF'
      - value: 38000
        color: '#FFB0B0'
      - value: 38500
        color: '#FFC1B0'
      - value: 39000
        color: '#FFD2B0'
      - value: 39500
        color: '#FFE3B0'
      - value: 40000
        color: '#FFEFB0'
      - value: 40500
        color: '#FFF5B0'
      - value: 41000
        color: '#FFFCB0'
      - value: 41500
        color: '#F5FFB0'
      - value: 42000
        color: '#E6FFB0'
      - value: 42500
        color: '#D8FFB0'
      - value: 43000
        color: '#C9FFB0'
      - value: 43500
        color: '#BAFFB0'
      - value: 44000
        color: '#ABFFB0'
      - value: 44500
        color: '#9CFFB0'
      - value: 45000
        color: '#8DFFB0'
      - value: 45500
        color: '#7EFFB0'
      - value: 46000
        color: '#6FFFAD'
      - value: 46500
        color: '#60FFA9'
      - value: 47000
        color: '#51FFA5'
      - value: 47500
        color: '#42FFA1'
      - value: 48000
        color: '#33FF9D'
      - value: 48500
        color: '#24FF99'
      - value: 49000
        color: '#15FF95'
      - value: 49500
        color: '#06FF91'
      - value: 50000
        color: '#00FF8D'
      - value: 55000
        color: '#00EB7E'
      - value: 60000
        color: '#00D76F'
      - value: 65000
        color: '#00C260'
      - value: 70000
        color: '#00AE51'
      - value: 75000
        color: '#009A42'
      - value: 80000
        color: '#008633'
      - value: 85000
        color: '#007224'
      - value: 90000
        color: '#006C1E'
      - value: 95000
        color: '#00661E'
      - value: 100000
        color: '#00601E'
    card_mod:
      style: |
        ha-card {
        opacity: 1;
        height: 250px;
        width: 100%;
        position: absolute !important;
          top: 0;
          left: 0;
         }
card_mod:
  style: |
    ha-card {
      background: transparent;
      height: 250px;
      width: 100%;
    }
1 Like