|
# |
|
# You will need mini-graph-card, multiple-entity-row and template-entity-row install it using HACS |
|
# |
|
type: vertical-stack |
|
cards: |
|
- type: conditional |
|
conditions: |
|
- entity: sensor.freqtrade_b1_slot_1 |
|
state_not: unknown |
|
card: |
|
type: entities |
|
entities: |
|
- type: custom:mini-graph-card |
|
name: Slot 1 |
|
hours_to_show: 24 |
|
points_per_hour: 4 |
|
smoothing: false |
|
line_width: 2 |
|
update_interval: 60 |
|
hour24: true |
|
decimals: 3 |
|
show: |
|
icon: false |
|
points: false |
|
entities: |
|
- entity: sensor.freqtrade_b1_slot_1 |
|
unit: € |
|
show_indicator: false |
|
- type: section |
|
- entity: sensor.freqtrade_b1_slot_1 |
|
type: custom:multiple-entity-row |
|
attribute: pair |
|
name: Pair |
|
secondary_info: |
|
entity: sensor.freqtrade_b1_slot_1 |
|
attribute: open_date |
|
name: false |
|
format: relative |
|
icon: mdi:yin-yang |
|
entities: |
|
- icon: mdi:cash-minus |
|
state_color: true |
|
tap_action: |
|
action: call-service |
|
service: rest_command.freqtrade_b1_forcesell |
|
service_data: |
|
slot: '1' |
|
confirmation: |
|
text: Force sell ? |
|
- icon: mdi:cash-remove |
|
state_color: true |
|
tap_action: |
|
action: call-service |
|
service: rest_command.freqtrade_b1_delete |
|
service_data: |
|
slot: '1' |
|
confirmation: |
|
text: Delete ? |
|
- type: custom:template-entity-row |
|
name: Amount |
|
icon: mdi:cash |
|
state: >- |
|
{{ state_attr('sensor.freqtrade_b1_slot_1', 'stake_amount') | |
|
float(0) | round(2) }}€ |
|
secondary: >- |
|
{{ state_attr('sensor.freqtrade_b1_slot_1', 'amount') | float(0)}} |
|
/ {{ state_attr('sensor.freqtrade_b1_slot_1', 'amount_requested') | |
|
float(0)}} |
|
- type: custom:template-entity-row |
|
name: Performance |
|
icon: mdi:poll |
|
state: >- |
|
{{ state_attr('sensor.freqtrade_b1_slot_1', 'profit_fiat') | |
|
float(0) | round(3)}}€ |
|
secondary: >- |
|
{{ state_attr('sensor.freqtrade_b1_slot_1', 'profit_pct') | |
|
float(0)}}% |
|
- type: custom:template-entity-row |
|
name: Current Rate |
|
icon: mdi:update |
|
state: >- |
|
{{ state_attr('sensor.freqtrade_b1_slot_1', 'current_rate') | |
|
float(0)}} |
|
secondary: >- |
|
min: {{ state_attr('sensor.freqtrade_b1_slot_1', 'min_rate') | |
|
float(0) | round(5) }}, max: {{ |
|
state_attr('sensor.freqtrade_b1_slot_1', 'max_rate') | float(0) | |
|
round(5) }}, open: {{ state_attr('sensor.freqtrade_b1_slot_1', |
|
'open_rate') | float(0) | round(5) }} |
|
- type: conditional |
|
conditions: |
|
- entity: sensor.freqtrade_b1_slot_2 |
|
state_not: unknown |
|
card: |
|
type: entities |
|
entities: |
|
- type: custom:mini-graph-card |
|
name: Slot 2 |
|
hours_to_show: 24 |
|
points_per_hour: 4 |
|
smoothing: false |
|
line_width: 2 |
|
update_interval: 60 |
|
hour24: true |
|
decimals: 3 |
|
show: |
|
icon: false |
|
points: false |
|
entities: |
|
- entity: sensor.freqtrade_b1_slot_2 |
|
unit: € |
|
show_indicator: false |
|
- type: section |
|
- entity: sensor.freqtrade_b1_slot_2 |
|
type: custom:multiple-entity-row |
|
attribute: pair |
|
name: Pair |
|
secondary_info: |
|
entity: sensor.freqtrade_b1_slot_2 |
|
attribute: open_date |
|
name: false |
|
format: relative |
|
icon: mdi:yin-yang |
|
entities: |
|
- icon: mdi:cash-minus |
|
state_color: true |
|
tap_action: |
|
action: call-service |
|
service: rest_command.freqtrade_b1_forcesell |
|
service_data: |
|
slot: '2' |
|
confirmation: |
|
text: Force sell ? |
|
- icon: mdi:cash-remove |
|
state_color: true |
|
tap_action: |
|
action: call-service |
|
service: rest_command.freqtrade_b1_delete |
|
service_data: |
|
slot: '2' |
|
confirmation: |
|
text: Delete ? |
|
- type: custom:template-entity-row |
|
name: Amount |
|
icon: mdi:cash |
|
state: >- |
|
{{ state_attr('sensor.freqtrade_b1_slot_2', 'stake_amount') | |
|
float(0) | round(2) }}€ |
|
secondary: >- |
|
{{ state_attr('sensor.freqtrade_b1_slot_2', 'amount') | float(0)}} |
|
/ {{ state_attr('sensor.freqtrade_b1_slot_2', 'amount_requested') | |
|
float(0)}} |
|
- type: custom:template-entity-row |
|
name: Performance |
|
icon: mdi:poll |
|
state: >- |
|
{{ state_attr('sensor.freqtrade_b1_slot_2', 'profit_fiat') | |
|
float(0) | round(3)}}€ |
|
secondary: >- |
|
{{ state_attr('sensor.freqtrade_b1_slot_2', 'profit_pct') | |
|
float(0)}}% |
|
- type: custom:template-entity-row |
|
name: Current Rate |
|
icon: mdi:update |
|
state: >- |
|
{{ state_attr('sensor.freqtrade_b1_slot_2', 'current_rate') | |
|
float(0)}} |
|
secondary: >- |
|
min: {{ state_attr('sensor.freqtrade_b1_slot_2', 'min_rate') | |
|
float(0) | round(5) }}, max: {{ |
|
state_attr('sensor.freqtrade_b1_slot_2', 'max_rate') | float(0) | |
|
round(5) }}, open: {{ state_attr('sensor.freqtrade_b1_slot_2', |
|
'open_rate') | float(0) | round(5) }} |
|
- type: conditional |
|
conditions: |
|
- entity: sensor.freqtrade_b1_slot_3 |
|
state_not: unknown |
|
card: |
|
type: entities |
|
entities: |
|
- type: custom:mini-graph-card |
|
name: Slot 3 |
|
hours_to_show: 24 |
|
points_per_hour: 4 |
|
smoothing: false |
|
line_width: 2 |
|
update_interval: 60 |
|
hour24: true |
|
decimals: 3 |
|
show: |
|
icon: false |
|
points: false |
|
entities: |
|
- entity: sensor.freqtrade_b1_slot_3 |
|
unit: € |
|
show_indicator: false |
|
- type: section |
|
- entity: sensor.freqtrade_b1_slot_3 |
|
type: custom:multiple-entity-row |
|
attribute: pair |
|
name: Pair |
|
secondary_info: |
|
entity: sensor.freqtrade_b1_slot_3 |
|
attribute: open_date |
|
name: false |
|
format: relative |
|
icon: mdi:yin-yang |
|
entities: |
|
- icon: mdi:cash-minus |
|
state_color: true |
|
tap_action: |
|
action: call-service |
|
service: rest_command.freqtrade_b1_forcesell |
|
service_data: |
|
slot: '3' |
|
confirmation: |
|
text: Force sell ? |
|
- icon: mdi:cash-remove |
|
state_color: true |
|
tap_action: |
|
action: call-service |
|
service: rest_command.freqtrade_b1_delete |
|
service_data: |
|
slot: '3' |
|
confirmation: |
|
text: Delete ? |
|
- type: custom:template-entity-row |
|
name: Amount |
|
icon: mdi:cash |
|
state: >- |
|
{{ state_attr('sensor.freqtrade_b1_slot_3', 'stake_amount') | |
|
float(0) | round(2) }}€ |
|
secondary: >- |
|
{{ state_attr('sensor.freqtrade_b1_slot_3', 'amount') | float(0)}} |
|
/ {{ state_attr('sensor.freqtrade_b1_slot_3', 'amount_requested') | |
|
float(0)}} |
|
- type: custom:template-entity-row |
|
name: Performance |
|
icon: mdi:poll |
|
state: >- |
|
{{ state_attr('sensor.freqtrade_b1_slot_3', 'profit_fiat') | |
|
float(0) | round(3)}}€ |
|
secondary: >- |
|
{{ state_attr('sensor.freqtrade_b1_slot_3', 'profit_pct') | |
|
float(0)}}% |
|
- type: custom:template-entity-row |
|
name: Current Rate |
|
icon: mdi:update |
|
state: >- |
|
{{ state_attr('sensor.freqtrade_b1_slot_3', 'current_rate') | |
|
float(0)}} |
|
secondary: >- |
|
min: {{ state_attr('sensor.freqtrade_b1_slot_3', 'min_rate') | |
|
float(0) | round(5) }}, max: {{ |
|
state_attr('sensor.freqtrade_b1_slot_3', 'max_rate') | float(0) | |
|
round(5) }}, open: {{ state_attr('sensor.freqtrade_b1_slot_3', |
|
'open_rate') | float(0) | round(5) }} |
|
- type: conditional |
|
conditions: |
|
- entity: sensor.freqtrade_b1_slot_4 |
|
state_not: unknown |
|
card: |
|
type: entities |
|
entities: |
|
- type: custom:mini-graph-card |
|
name: Slot 4 |
|
hours_to_show: 24 |
|
points_per_hour: 4 |
|
smoothing: false |
|
line_width: 2 |
|
update_interval: 60 |
|
hour24: true |
|
decimals: 3 |
|
show: |
|
icon: false |
|
points: false |
|
entities: |
|
- entity: sensor.freqtrade_b1_slot_4 |
|
unit: € |
|
show_indicator: false |
|
- type: section |
|
- entity: sensor.freqtrade_b1_slot_4 |
|
type: custom:multiple-entity-row |
|
attribute: pair |
|
name: Pair |
|
secondary_info: |
|
entity: sensor.freqtrade_b1_slot_4 |
|
attribute: open_date |
|
name: false |
|
format: relative |
|
icon: mdi:yin-yang |
|
entities: |
|
- icon: mdi:cash-minus |
|
state_color: true |
|
tap_action: |
|
action: call-service |
|
service: rest_command.freqtrade_b1_forcesell |
|
service_data: |
|
slot: '4' |
|
confirmation: |
|
text: Force sell ? |
|
- icon: mdi:cash-remove |
|
state_color: true |
|
tap_action: |
|
action: call-service |
|
service: rest_command.freqtrade_b1_delete |
|
service_data: |
|
slot: '4' |
|
confirmation: |
|
text: Delete ? |
|
- type: custom:template-entity-row |
|
name: Amount |
|
icon: mdi:cash |
|
state: >- |
|
{{ state_attr('sensor.freqtrade_b1_slot_4', 'stake_amount') | |
|
float(0) | round(2) }}€ |
|
secondary: >- |
|
{{ state_attr('sensor.freqtrade_b1_slot_4', 'amount') | float(0)}} |
|
/ {{ state_attr('sensor.freqtrade_b1_slot_4', 'amount_requested') | |
|
float(0)}} |
|
- type: custom:template-entity-row |
|
name: Performance |
|
icon: mdi:poll |
|
state: >- |
|
{{ state_attr('sensor.freqtrade_b1_slot_4', 'profit_fiat') | |
|
float(0) | round(3)}}€ |
|
secondary: >- |
|
{{ state_attr('sensor.freqtrade_b1_slot_4', 'profit_pct') | |
|
float(0)}}% |
|
- type: custom:template-entity-row |
|
name: Current Rate |
|
icon: mdi:update |
|
state: >- |
|
{{ state_attr('sensor.freqtrade_b1_slot_4', 'current_rate') | |
|
float(0)}} |
|
secondary: >- |
|
min: {{ state_attr('sensor.freqtrade_b1_slot_4', 'min_rate') | |
|
float(0) | round(5) }}, max: {{ |
|
state_attr('sensor.freqtrade_b1_slot_4', 'max_rate') | float(0) | |
|
round(5) }}, open: {{ state_attr('sensor.freqtrade_b1_slot_4', |
|
'open_rate') | float(0) | round(5) }} |
|
- type: conditional |
|
conditions: |
|
- entity: sensor.freqtrade_b1_slot_5 |
|
state_not: unknown |
|
card: |
|
type: entities |
|
entities: |
|
- type: custom:mini-graph-card |
|
name: Slot 5 |
|
hours_to_show: 24 |
|
points_per_hour: 4 |
|
smoothing: false |
|
line_width: 2 |
|
update_interval: 60 |
|
hour24: true |
|
decimals: 3 |
|
show: |
|
icon: false |
|
points: false |
|
entities: |
|
- entity: sensor.freqtrade_b1_slot_5 |
|
unit: € |
|
show_indicator: false |
|
- type: section |
|
- entity: sensor.freqtrade_b1_slot_5 |
|
type: custom:multiple-entity-row |
|
attribute: pair |
|
name: Pair |
|
secondary_info: |
|
entity: sensor.freqtrade_b1_slot_5 |
|
attribute: open_date |
|
name: false |
|
format: relative |
|
icon: mdi:yin-yang |
|
entities: |
|
- icon: mdi:cash-minus |
|
state_color: true |
|
tap_action: |
|
action: call-service |
|
service: rest_command.freqtrade_b1_forcesell |
|
service_data: |
|
slot: '5' |
|
confirmation: |
|
text: Force sell ? |
|
- icon: mdi:cash-remove |
|
state_color: true |
|
tap_action: |
|
action: call-service |
|
service: rest_command.freqtrade_b1_delete |
|
service_data: |
|
slot: '5' |
|
confirmation: |
|
text: Delete ? |
|
- type: custom:template-entity-row |
|
name: Amount |
|
icon: mdi:cash |
|
state: >- |
|
{{ state_attr('sensor.freqtrade_b1_slot_5', 'stake_amount') | |
|
float(0) | round(2) }}€ |
|
secondary: >- |
|
{{ state_attr('sensor.freqtrade_b1_slot_5', 'amount') | float(0)}} |
|
/ {{ state_attr('sensor.freqtrade_b1_slot_5', 'amount_requested') | |
|
float(0)}} |
|
- type: custom:template-entity-row |
|
name: Performance |
|
icon: mdi:poll |
|
state: >- |
|
{{ state_attr('sensor.freqtrade_b1_slot_5', 'profit_fiat') | |
|
float(0) | round(3)}}€ |
|
secondary: >- |
|
{{ state_attr('sensor.freqtrade_b1_slot_5', 'profit_pct') | |
|
float(0)}}% |
|
- type: custom:template-entity-row |
|
name: Current Rate |
|
icon: mdi:update |
|
state: >- |
|
{{ state_attr('sensor.freqtrade_b1_slot_5', 'current_rate') | |
|
float(0)}} |
|
secondary: >- |
|
min: {{ state_attr('sensor.freqtrade_b1_slot_5', 'min_rate') | |
|
float(0) | round(5) }}, max: {{ |
|
state_attr('sensor.freqtrade_b1_slot_5', 'max_rate') | float(0) | |
|
round(5) }}, open: {{ state_attr('sensor.freqtrade_b1_slot_5', |
|
'open_rate') | float(0) | round(5) }} |