BigNocciolino / CryptoTracker

Integration for Home Assistant to implement a crypto tracking system
23 stars 4 forks source link

Make CryptoTracker compatible with HomeAssistant Long Term Statistics #4

Closed itkama closed 3 years ago

itkama commented 3 years ago

Hi, I tried adding a statistics card for a currency-pair but HA told me there were none available and directed me to this site: https://developers.home-assistant.io/docs/core/entity/sensor/#long-term-statistics It looks like there needs to a few small adjustments to make CryptoTracker compatible. If you need any more info, please let me know :)

BigNocciolino commented 3 years ago

Ok, I have to implement this kind of function in the component, give me time to work on it

BigNocciolino commented 3 years ago

Ok, for my test it works, you can select the sensors in the drop-down menu, but it takes more data to populate the graph completely. I leave the trhead open, to get your news on the correct functioning. These are my settings for now:

LOVELACE: image

CONFIG:

sensor:
- platform: cryptostate
  resources:
  - compare: "doge-eur"
    name: "dogecoin"
  - compare: "btc-eur"
    name: "bitcoin"
  - compare: "eth-eur"
    name: "ethereum"
  - compare: "cake-eur"
    name: "cake"
  - compare: "usd-eur"
    name: "dollar"
itkama commented 3 years ago

image It works, thank you :)