forked from heyajohnny/cryptoinfo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configuration.yaml
371 lines (341 loc) · 10.9 KB
/
configuration.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
# Templated sensor calculating the value of a wallet
template:
- sensor:
- name: "Bitcoin Owned"
unit_of_measurement: '$'
availability: >-
{{ is_number(states('sensor.cryptoinfo_btc_price_bitcoin_usd')) }}
state: >-
{% set owned_coin = 0.12345 %}
{{ (states('sensor.cryptoinfo_bitcoin_usd')|float * owned_coin) | round(5) }}
# All Cryptoinfo Advanced Sensor Examples
sensor:
# "Wallet" Sensor - API: CoinGecko
- platform: cryptoinfo_advanced
id: "Main Wallet"
cryptocurrency_name: "bitcoin"
currency_name: "eur"
unit_of_measurement: "€"
multiplier: 0.0005
update_frequency: 1
extra_sensors:
- property: "24h_volume"
unit_of_measurement: "€"
# BTC Price USD - API: CoinGecko
- platform: cryptoinfo_advanced
id: "BTC Price"
cryptocurrency_name: "bitcoin"
currency_name: "usd"
unit_of_measurement: "$"
update_frequency: 1
max_fetch_failures: 3
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"
# BTC Price GBP - API: CoinGecko
- platform: cryptoinfo_advanced
id: "BTC Price GBP"
cryptocurrency_name: "bitcoin"
currency_name: "gbp"
unit_of_measurement: "£"
update_frequency: 1
# BTC Dom - API: CoinGecko
- platform: cryptoinfo_advanced
id: "BTC Dominance"
cryptocurrency_name: "btc"
unit_of_measurement: "%"
update_frequency: 1
api_mode: "dominance"
# ETH Dom - API: CoinGecko
- platform: cryptoinfo_advanced
id: "ETH Dominance"
cryptocurrency_name: "eth"
unit_of_measurement: "%"
update_frequency: 1
api_mode: "dominance"
# BTC Chain Summary - API: CryptoID
- platform: cryptoinfo_advanced
id: "BTC Height"
cryptocurrency_name: "btc"
unit_of_measurement: "Blks"
update_frequency: 2
api_mode: "chain_summary"
# Default difficulty multiplier for BTC
diff_multiplier: 4294967296
# Default block time in minutes for BTC
block_time_minutes: 10
# Default difficulty window size in blocks for BTC
difficulty_window: 2016
extra_sensors:
# This is a special sensor which will automatically convert the value based on the unit_of_measurement e.g. GH, TH, PH, EH
- property: hashrate_calc
id: "BTC Hashrate EH"
unit_of_measurement: EH
# Progress through the current difficulty adjustment window
- property: difficulty_block_progress
id: "BTC Difficulty Block Progress"
unit_of_measurement: "Blks"
state_class: total_increasing
# Next difficulty retarget height
- property: difficulty_retarget_height
id: "BTC Difficulty Retarget Height"
unit_of_measurement: "Blks"
# Current estimated time between blocks in seconds
- property: block_time_in_seconds
id: "BTC Block Time In Seconds"
unit_of_measurement: "seconds"
# Estimated time until next difficulty retarget in seconds
- property: difficulty_retarget_seconds
id: "BTC Difficulty Retarget Seconds"
unit_of_measurement: "seconds"
# Estimated difficulty percent change
- property: difficulty_retarget_percent_change
id: "BTC Difficulty Retarget Percent Change"
unit_of_measurement: "%"
# Estimated new difficulty at retarget
- property: difficulty_retarget_estimated_diff
id: "BTC Difficulty Retarget Estimated Diff"
unit_of_measurement: ""
# BTC Last Difficulty timestamp - API: CryptoID
# Requires chain_summary sensor to be enabled or supplied a height to fetch as below
- platform: cryptoinfo_advanced
id: "BTC Last Diff Timestamp"
cryptocurrency_name: "btc"
unit_of_measurement: "s"
update_frequency: 1
api_mode: "chain_block_time"
# BTC Last Difficulty timestamp sensor with template
- platform: cryptoinfo_advanced
id: "BTC Last Diff Timestamp Templated"
cryptocurrency_name: "btc"
unit_of_measurement: "s"
update_frequency: 1
api_mode: "chain_block_time"
fetch_args_template: "{{ states('sensor.some_sensor_with_a_block_height_to_fetch') }}"
# BTC Orphaned Blocks Today - API: CryptoID
- platform: cryptoinfo_advanced
id: "BTC Orphans Today"
cryptocurrency_name: "btc"
unit_of_measurement: "Blks"
update_frequency: 1
api_mode: "chain_orphans"
# BTC Hashrate Control Sensors
- platform: cryptoinfo_advanced
id: "BTC Foundry USA Hash Control 100 Blocks"
unique_id: "btc_cco_bc1qxh"
cryptocurrency_name: "btc"
unit_of_measurement: "%"
update_frequency: 1
api_mode: "chain_control"
pool_prefix:
- "FoundryUSA"
- "bc1qxh"
- platform: cryptoinfo_advanced
id: "BTC F2Pool Hash Control 100 Blocks"
unique_id: "btc_cco_1KFHE7"
cryptocurrency_name: "btc"
unit_of_measurement: "%"
update_frequency: 1
api_mode: "chain_control"
pool_prefix:
- "F2Pool"
- "1KFHE7"
- platform: cryptoinfo_advanced
id: "BTC Binance Hash Control 100 Blocks"
unique_id: "btc_cco_1Q8QR5"
cryptocurrency_name: "btc"
unit_of_measurement: "%"
update_frequency: 1
api_mode: "chain_control"
pool_prefix:
- "Binance"
- "1Q8QR5"
- "3L8Ck6"
- platform: cryptoinfo_advanced
id: "BTC AntPool Hash Control 100 Blocks"
unique_id: "btc_cco_AntPool38XnPv"
cryptocurrency_name: "btc"
unit_of_measurement: "%"
update_frequency: 1
api_mode: "chain_control"
pool_prefix:
- "AntPool"
- "38XnPv"
- platform: cryptoinfo_advanced
id: "BTC ViaBTC Hash Control 100 Blocks"
unique_id: "btc_cco_ViaBTC"
cryptocurrency_name: "btc"
unit_of_measurement: "%"
update_frequency: 1
api_mode: "chain_control"
pool_prefix:
- "ViaBTC"
- "18cBEM"
- platform: cryptoinfo_advanced
id: "BTC BTC.Com Hash Control 100 Blocks"
unique_id: "btc_cco_36cWgj"
cryptocurrency_name: "btc"
unit_of_measurement: "%"
update_frequency: 1
api_mode: "chain_control"
pool_prefix:
- "BTC.Com"
- "36cWgj"
- platform: cryptoinfo_advanced
id: "BTC MaraPool Hash Control 100 Blocks"
unique_id: "btc_cco_15MdAH"
cryptocurrency_name: "btc"
unit_of_measurement: "%"
update_frequency: 1
api_mode: "chain_control"
pool_prefix:
- "MaraPool"
- "15MdAH"
- platform: cryptoinfo_advanced
id: "BTC Poolin Hash Control 100 Blocks"
unique_id: "btc_cco_poolin"
cryptocurrency_name: "btc"
unit_of_measurement: "%"
update_frequency: 1
api_mode: "chain_control"
pool_prefix:
- "Poolin"
- "33TbzA"
- platform: cryptoinfo_advanced
id: "BTC Pegapool Hash Control 100 Blocks"
unique_id: "btc_cco_pegapool"
cryptocurrency_name: "btc"
unit_of_measurement: "%"
update_frequency: 1
api_mode: "chain_control"
pool_prefix:
- "3GRKUV"
- platform: cryptoinfo_advanced
id: "BTC Luxor Hash Control 100 Blocks"
unique_id: "btc_cco_luxor"
cryptocurrency_name: "btc"
unit_of_measurement: "%"
update_frequency: 1
api_mode: "chain_control"
pool_prefix:
- "39bitU"
- platform: cryptoinfo_advanced
id: "BTC EMCD.io Hash Control 100 Blocks"
unique_id: "btc_cco_emcdio"
cryptocurrency_name: "btc"
unit_of_measurement: "%"
update_frequency: 1
api_mode: "chain_control"
pool_prefix:
- "3LwoXD"
- platform: cryptoinfo_advanced
id: "BTC Slushpool Hash Control 100 Blocks"
unique_id: "btc_cco_slush"
cryptocurrency_name: "btc"
unit_of_measurement: "%"
update_frequency: 1
api_mode: "chain_control"
pool_prefix:
- "1CK6KH"
- platform: cryptoinfo_advanced
id: "BTC CarbonNegative Hash Control 100 Blocks"
unique_id: "btc_cco_carbonnegative"
cryptocurrency_name: "btc"
unit_of_measurement: "%"
update_frequency: 1
api_mode: "chain_control"
pool_prefix:
- "3KZDwm"
- platform: cryptoinfo_advanced
id: "BTC SBICrypto Hash Control 100 Blocks"
unique_id: "btc_cco_sbicrypto"
cryptocurrency_name: "btc"
unit_of_measurement: "%"
update_frequency: 1
api_mode: "chain_control"
pool_prefix:
- "bc1qte"
- platform: cryptoinfo_advanced
id: "BTC Ultimus Hash Control 100 Blocks"
unique_id: "btc_cco_ultimus"
cryptocurrency_name: "btc"
unit_of_measurement: "%"
update_frequency: 1
api_mode: "chain_control"
pool_prefix:
- "3C9sAK"
# BTC Mempool - API: Mempool.space
- platform: cryptoinfo_advanced
id: "BTC Mempool Size"
cryptocurrency_name: "btc"
unit_of_measurement: "vB"
update_frequency: 1
api_mode: "mempool_stats"
extra_sensors:
- property: mempool_tx_count
id: "BTC Mempool TX Count"
unit_of_measurement: "tx"
- property: mempool_total_fee
id: "BTC Mempool Total Fees"
unit_of_measurement: "satoshis"
- property: mempool_size_calc
id: "BTC Mempool Size MB"
unit_of_measurement: "MB"
- property: mempool_average_fee_per_tx
id: "BTC Mempool Average Fee Per TX"
unit_of_measurement: "satoshis"
- 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"
- 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"
# ROGER NOMP Pool stats - API: NOMP (Any NOMP based pool)
- platform: cryptoinfo_advanced
id: "ROGER Pool Hashrate"
cryptocurrency_name: "roger"
unit_of_measurement: "H"
update_frequency: 3
api_mode: "nomp_pool_stats"
api_domain_name: mining.theholyroger.com
pool_name: theholyrogercoin
extra_sensors:
- property: hashrate_calc
id: "ROGER Pool Hashrate GH"
unit_of_measurement: GH