You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Cryptocurrency names One or more of the 'id' values (seperated by a , character) that you can find on this <ahref='https://api.coingecko.com/api/v3/coins/list'target='_blank'>page</a>
44
-
- Multipliers The number of coins/tokens (seperated by a , character). The number of Multipliers must match the number of Cryptocurrency names
44
+
- Cryptocurrency id's One or more of the 'id' values (seperated by a , character) that you can find on this <a href='https://api.coingecko.com/api/v3/coins/list' target='_blank'>page</a>
45
+
- Multipliers The number of coins/tokens (seperated by a , character). The number of Multipliers must match the number of Cryptocurrency id's
45
46
- Currency name One of the currency names that you can find on this <a href='https://api.coingecko.com/api/v3/simple/supported_vs_currencies' target='_blank'>page</a>
46
47
- Unit of measurement You can use a currency symbol or you can make it empty. You can find some symbols on this <a href='https://en.wikipedia.org/wiki/Currency_symbol#List_of_currency_symbols_currently_in_use' target='_blank'>page</a>
47
48
- Update frequency (minutes) How often should the value be refreshed? Beware of the <a href='https://support.coingecko.com/hc/en-us/articles/4538771776153-What-is-the-rate-limit-for-CoinGecko-API-public-plan' target='_blank'>CoinGecko rate limit</a> when using multiple sensors
48
49
- Minimum time between requests (minutes) The minimum time between the other sensors and this sensor to make a data request to the API. (This property is shared and the same for every sensor). You can set this value to 0 if you only use 1 sensor
50
+
```
49
51
50
52
### Attributes
51
53
The entities have some important attributes:
52
-
- last_update This will return the date and time of the last update
53
-
- base_price This will return the price of 1 coin / token in 'currency_name'(default = "usd") of the 'cryptocurrency_name'
54
-
- multiplier This will return the number of coins / tokens
55
-
- 24h_volume This will return the 24 hour volume in 'currency_name'(default = "usd") of the 'cryptocurrency_name'(default = "bitcoin")
56
-
- 1h_change This will return the 1 hour change in percentage of the 'cryptocurrency_name'(default = "bitcoin")
57
-
- 24h_change This will return the 24 hour change in percentage of the 'cryptocurrency_name'(default = "bitcoin")
58
-
- 7d_change This will return the 7 day change in percentage of the 'cryptocurrency_name'(default = "bitcoin")
59
-
- 30d_change This will return the 30 day change in percentage of the 'cryptocurrency_name'(default = "bitcoin")
60
-
- market_cap This will return the total market cap of the 'cryptocurrency_name'(default = "bitcoin") displayed in 'currency_name'(default = "usd")
61
-
- circulating_supply This will return the circulating supply of the 'cryptocurrency_name'(default = "bitcoin")
62
-
- total_supply This will return the total supply of the 'cryptocurrency_name'(default = "bitcoin")
54
+
```
55
+
- last_update This will return the date and time of the last update
56
+
- cryptocurrency_id This will return the cryptocurrency id
57
+
- cryptocurrency_name This will return the cryptocurrency name
58
+
- cryptocurrency_symbol This will return the cryptocurrency symbol
59
+
- currency_name This will return the currency name
60
+
- base_price This will return the price of 1 coin / token in 'currency_name'(default = "usd") of the 'cryptocurrency_id'
61
+
- multiplier This will return the number of coins / tokens
62
+
- 24h_volume This will return the 24 hour volume in 'currency_name'(default = "usd") of the 'cryptocurrency_id'(default = "bitcoin")
63
+
- 1h_change This will return the 1 hour change in percentage of the 'cryptocurrency_id'(default = "bitcoin")
64
+
- 24h_change This will return the 24 hour change in percentage of the 'cryptocurrency_id'(default = "bitcoin")
65
+
- 7d_change This will return the 7 day change in percentage of the 'cryptocurrency_id'(default = "bitcoin")
66
+
- 30d_change This will return the 30 day change in percentage of the 'cryptocurrency_id'(default = "bitcoin")
67
+
- market_cap This will return the total market cap of the 'cryptocurrency_id'(default = "bitcoin") displayed in 'currency_name'(default = "usd")
68
+
- circulating_supply This will return the circulating supply of the 'cryptocurrency_id'(default = "bitcoin")
69
+
- total_supply This will return the total supply of the 'cryptocurrency_id'(default = "bitcoin")
70
+
```
63
71
64
72
Template example for usage of attributes.
65
73
This example creates a new sensor with the attribute value '24h_volume' of the sensor 'sensor.cryptoinfo_main_wallet_ethereum_eur':
Copy file name to clipboardExpand all lines: custom_components/cryptoinfo/config_flow.py
+12-12Lines changed: 12 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@
15
15
16
16
from .const.constimport (
17
17
_LOGGER,
18
-
CONF_CRYPTOCURRENCY_NAMES,
18
+
CONF_CRYPTOCURRENCY_IDS,
19
19
CONF_CURRENCY_NAME,
20
20
CONF_ID,
21
21
CONF_MIN_TIME_BETWEEN_REQUESTS,
@@ -29,9 +29,9 @@
29
29
"description_help": "For more information, see the <a href='https://github.com/heyajohnny/cryptoinfo' target='_blank'>documentation</a>.",
30
30
"id_help": "Unique name for the sensor",
31
31
"currency_name_help": "One of the currency names in <a href='https://api.coingecko.com/api/v3/simple/supported_vs_currencies' target='_blank'>this list</a>.",
32
-
"cryptocurrency_names_help": "The 'id' values from one or more of the coins/tokens in <a href='https://api.coingecko.com/api/v3/coins/list' target='_blank'>this list</a>. seperated by , characters",
32
+
"cryptocurrency_ids_help": "The 'id' values from one or more of the coins/tokens in <a href='https://api.coingecko.com/api/v3/coins/list' target='_blank'>this list</a>. seperated by , characters",
33
33
"unit_of_measurement_help": "Do you want to use a currency symbol? (<a href='https://en.wikipedia.org/wiki/Currency_symbol#List_of_currency_symbols_currently_in_use' target='_blank'>Symbol list</a>)",
34
-
"multipliers_help": "The number of coins/tokens (seperated by a , character). The number of Multipliers must match the number of Cryptocurrency names",
34
+
"multipliers_help": "The number of coins/tokens (seperated by a , character). The number of Multipliers must match the number of Cryptocurrency id's",
35
35
"update_frequency_help": "How often should the value be refreshed? Beware of the <a href='https://support.coingecko.com/hc/en-us/articles/4538771776153-What-is-the-rate-limit-for-CoinGecko-API-public-plan' target='_blank'>CoinGecko rate limit</a> when tracking multiple cryptocurrencies.",
36
36
"min_time_between_requests_help": "The minimum time between the other entities and this entity to make a data request to the API. (This property is shared and the same for every entity)",
0 commit comments