Hi all,
First of all thanks @Craig_McGowan for sharing this, I was going to use another solution using coingecko but found this one to be more easy to implement but I must say that I had a bad surprise when after my first month I got a bill for $420 so I must clearly be doing something wrong.
I followed up the details provided by @Craig_McGowan but must have definitively missed something.
Did I get this wrong that this would be free if under a certain data consomption?
Hereās my rest sensor setup, can anyone help me spot what the issue is please, I love this integration but +$400/month is not coing to cut it.
Thanks in advance
rest:
resource: !secret nomics_crypto_api
scan_interval: 10
sensor:
### ETH
- name: "Crypto - ETH"
json_attributes_path: "$.[0]"
value_template: '{{ value_json[0].price | round(4) }}'
unit_of_measurement: "USD"
json_attributes:
- name
- symbol
- price
- logo_url
- rank
- high
- high_timestamp
- market_cap
- first_trade
- name: "Crypto - ETH- 1 Hr"
json_attributes_path: "$.[0].1h"
unit_of_measurement: "USD"
value_template: '{{ value_json[0]["1h"]["price_change"] | round(4) }}'
json_attributes:
- price_change_pct
- name: "Crypto - ETH - 1 D"
json_attributes_path: "$.[0].1d"
unit_of_measurement: "USD"
value_template: '{{ value_json[0]["1d"]["price_change"] | round(4) }}'
json_attributes:
- price_change_pct
- name: "Crypto - ETH - 7 D"
json_attributes_path: "$.[0].7d"
unit_of_measurement: "USD"
value_template: '{{ value_json[0]["7d"]["price_change"] | round(4) }}'
json_attributes:
- price_change_pct
- name: "Crypto - ETH - 30 D"
json_attributes_path: "$.[0].30d"
unit_of_measurement: "USD"
value_template: '{{ value_json[0]["30d"]["price_change"] | round(4) }}'
json_attributes:
- price_change_pct
### ADA
- name: "Crypto - ADA"
json_attributes_path: "$.[1]"
value_template: '{{ value_json[1].price | round(4) }}'
unit_of_measurement: "USD"
json_attributes:
- name
- symbol
- price
- logo_url
- rank
- high
- high_timestamp
- market_cap
- first_trade
- name: "Crypto - ADA - 1 Hr"
json_attributes_path: "$.[1].1h"
unit_of_measurement: "USD"
value_template: '{{ value_json[1]["1h"]["price_change"] | round(4) }}'
json_attributes:
- price_change_pct
- name: "Crypto - ADA - 1 D"
json_attributes_path: "$.[1].1d"
unit_of_measurement: "USD"
value_template: '{{ value_json[1]["1d"]["price_change"] | round(4) }}'
json_attributes:
- price_change_pct
- name: "Crypto - ADA - 7 D"
json_attributes_path: "$.[1].7d"
unit_of_measurement: "USD"
value_template: '{{ value_json[1]["7d"]["price_change"] | round(4) }}'
json_attributes:
- price_change_pct
- name: "Crypto - ADA - 30 D"
json_attributes_path: "$.[1].30d"
unit_of_measurement: "USD"
value_template: '{{ value_json[1]["30d"]["price_change"] | round(4) }}'
json_attributes:
- price_change_pct
### BAT
- name: "Crypto - BAT"
json_attributes_path: "$.[2]"
value_template: '{{ value_json[2].price | round(4) }}'
unit_of_measurement: "USD"
json_attributes:
- name
- symbol
- price
- logo_url
- rank
- high
- high_timestamp
- market_cap
- first_trade
- name: "Crypto - BAT - 1 Hr"
json_attributes_path: "$.[2].1h"
unit_of_measurement: "USD"
value_template: '{{ value_json[2]["1h"]["price_change"] | round(4) }}'
json_attributes:
- price_change_pct
- name: "Crypto - BAT - 1 D"
json_attributes_path: "$.[2].1d"
unit_of_measurement: "USD"
value_template: '{{ value_json[2]["1d"]["price_change"] | round(4) }}'
json_attributes:
- price_change_pct
- name: "Crypto - BAT - 7 D"
json_attributes_path: "$.[2].7d"
unit_of_measurement: "USD"
value_template: '{{ value_json[2]["7d"]["price_change"] | round(4) }}'
json_attributes:
- price_change_pct
- name: "Crypto - BAT - 30 D"
json_attributes_path: "$.[2].30d"
unit_of_measurement: "USD"
value_template: '{{ value_json[2]["30d"]["price_change"] | round(4) }}'
json_attributes:
- price_change_pct
### RUNE
- name: "Crypto - RUNE"
json_attributes_path: "$.[3]"
value_template: '{{ value_json[3].price | round(4) }}'
unit_of_measurement: "USD"
json_attributes:
- name
- symbol
- price
- logo_url
- rank
- high
- high_timestamp
- market_cap
- first_trade
- name: "Crypto - RUNE - 1 Hr"
json_attributes_path: "$.[3].1h"
unit_of_measurement: "USD"
value_template: '{{ value_json[3]["1h"]["price_change"] | round(4) }}'
json_attributes:
- price_change_pct
- name: "Crypto - RUNE - 1 D"
json_attributes_path: "$.[3].1d"
unit_of_measurement: "USD"
value_template: '{{ value_json[3]["1d"]["price_change"] | round(4) }}'
json_attributes:
- price_change_pct
- name: "Crypto - RUNE - 7 D"
json_attributes_path: "$.[3].7d"
unit_of_measurement: "USD"
value_template: '{{ value_json[3]["7d"]["price_change"] | round(4) }}'
json_attributes:
- price_change_pct
- name: "Crypto - RUNE - 30 D"
json_attributes_path: "$.[3].30d"
unit_of_measurement: "USD"
value_template: '{{ value_json[3]["30d"]["price_change"] | round(4) }}'
json_attributes:
- price_change_pct
### MATIC
- name: "Crypto - MATIC"
json_attributes_path: "$.[4]"
value_template: '{{ value_json[4].price | round(4) }}'
unit_of_measurement: "USD"
json_attributes:
- name
- symbol
- price
- logo_url
- rank
- high
- high_timestamp
- market_cap
- first_trade
- name: "Crypto - MATIC - 1 Hr"
json_attributes_path: "$.[4].1h"
unit_of_measurement: "USD"
value_template: '{{ value_json[4]["1h"]["price_change"] | round(4) }}'
json_attributes:
- price_change_pct
- name: "Crypto - MATIC - 1 D"
json_attributes_path: "$.[4].1d"
unit_of_measurement: "USD"
value_template: '{{ value_json[4]["1d"]["price_change"] | round(4) }}'
json_attributes:
- price_change_pct
- name: "Crypto - MATIC - 7 D"
json_attributes_path: "$.[4].7d"
unit_of_measurement: "USD"
value_template: '{{ value_json[4]["7d"]["price_change"] | round(4) }}'
json_attributes:
- price_change_pct
- name: "Crypto - MATIC - 30 D"
json_attributes_path: "$.[4].30d"
unit_of_measurement: "USD"
value_template: '{{ value_json[4]["30d"]["price_change"] | round(4) }}'
json_attributes:
- price_change_pct
### DOT
- name: "Crypto - DOT"
json_attributes_path: "$.[5]"
value_template: '{{ value_json[5].price | round(4) }}'
unit_of_measurement: "USD"
json_attributes:
- name
- symbol
- price
- logo_url
- rank
- high
- high_timestamp
- market_cap
- first_trade
- name: "Crypto - DOT - 1 Hr"
json_attributes_path: "$.[5].1h"
unit_of_measurement: "USD"
value_template: '{{ value_json[5]["1h"]["price_change"] | round(4) }}'
json_attributes:
- price_change_pct
- name: "Crypto - DOT - 1 D"
json_attributes_path: "$.[5].1d"
unit_of_measurement: "USD"
value_template: '{{ value_json[5]["1d"]["price_change"] | round(4) }}'
json_attributes:
- price_change_pct
- name: "Crypto - DOT - 7 D"
json_attributes_path: "$.[5].7d"
unit_of_measurement: "USD"
value_template: '{{ value_json[5]["7d"]["price_change"] | round(4) }}'
json_attributes:
- price_change_pct
- name: "Crypto - DOT - 30 D"
json_attributes_path: "$.[5].30d"
unit_of_measurement: "USD"
value_template: '{{ value_json[5]["30d"]["price_change"] | round(4) }}'
json_attributes:
- price_change_pct
### FTM
- name: "Crypto - FTM"
json_attributes_path: "$.[6]"
value_template: '{{ value_json[6].price | round(4) }}'
unit_of_measurement: "USD"
json_attributes:
- name
- symbol
- price
- logo_url
- rank
- high
- high_timestamp
- market_cap
- first_trade
- name: "Crypto - FTM - 1 Hr"
json_attributes_path: "$.[6].1h"
unit_of_measurement: "USD"
value_template: '{{ value_json[6]["1h"]["price_change"] | round(4) }}'
json_attributes:
- price_change_pct
- name: "Crypto - FTM - 1 D"
json_attributes_path: "$.[6].1d"
unit_of_measurement: "USD"
value_template: '{{ value_json[6]["1d"]["price_change"] | round(4) }}'
json_attributes:
- price_change_pct
- name: "Crypto - FTM - 7 D"
json_attributes_path: "$.[6].7d"
unit_of_measurement: "USD"
value_template: '{{ value_json[6]["7d"]["price_change"] | round(4) }}'
json_attributes:
- price_change_pct
- name: "Crypto - FTM - 30 D"
json_attributes_path: "$.[6].30d"
unit_of_measurement: "USD"
value_template: '{{ value_json[6]["30d"]["price_change"] | round(4) }}'
json_attributes:
- price_change_pct
### ATOM
- name: "Crypto - ATOM"
json_attributes_path: "$.[7]"
value_template: '{{ value_json[7].price | round(4) }}'
unit_of_measurement: "USD"
json_attributes:
- name
- symbol
- price
- logo_url
- rank
- high
- high_timestamp
- market_cap
- first_trade
- name: "Crypto - ATOM - 1 Hr"
json_attributes_path: "$.[7].1h"
unit_of_measurement: "USD"
value_template: '{{ value_json[7]["1h"]["price_change"] | round(4) }}'
json_attributes:
- price_change_pct
- name: "Crypto - ATOM - 1 D"
json_attributes_path: "$.[7].1d"
unit_of_measurement: "USD"
value_template: '{{ value_json[7]["1d"]["price_change"] | round(4) }}'
json_attributes:
- price_change_pct
- name: "Crypto - ATOM - 7 D"
json_attributes_path: "$.[7].7d"
unit_of_measurement: "USD"
value_template: '{{ value_json[7]["7d"]["price_change"] | round(4) }}'
json_attributes:
- price_change_pct
- name: "Crypto - ATOM - 30 D"
json_attributes_path: "$.[7].30d"
unit_of_measurement: "USD"
value_template: '{{ value_json[7]["30d"]["price_change"] | round(4) }}'
json_attributes:
- price_change_pct
### UST
- name: "Crypto - UST"
json_attributes_path: "$.[8]"
value_template: '{{ value_json[8].price | round(4) }}'
unit_of_measurement: "USD"
json_attributes:
- name
- symbol
- price
- logo_url
- rank
- high
- high_timestamp
- market_cap
- first_trade
- name: "Crypto - UST - 1 Hr"
json_attributes_path: "$.[8].1h"
unit_of_measurement: "USD"
value_template: '{{ value_json[8]["1h"]["price_change"] | round(4) }}'
json_attributes:
- price_change_pct
- name: "Crypto - UST - 1 D"
json_attributes_path: "$.[8].1d"
unit_of_measurement: "USD"
value_template: '{{ value_json[8]["1d"]["price_change"] | round(4) }}'
json_attributes:
- price_change_pct
- name: "Crypto - UST - 7 D"
json_attributes_path: "$.[8].7d"
unit_of_measurement: "USD"
value_template: '{{ value_json[8]["7d"]["price_change"] | round(4) }}'
json_attributes:
- price_change_pct
- name: "Crypto - UST - 30 D"
json_attributes_path: "$.[8].30d"
unit_of_measurement: "USD"
value_template: '{{ value_json[8]["30d"]["price_change"] | round(4) }}'
json_attributes:
- price_change_pct