If you are curious, this is the incomplete card I have so far...
type: custom:entity-progress-card
entity: sensor.contraband_generator_progress
custom_info: |-
{% if is_state('switch.shelly_1pm_gen4_2', 'off') %}
off
{% elif is_state('switch.shelly_1pm_gen4_2', 'on') %}
{% if is_state('sensor.contraband_generator_current_print_state', ['standby', 'complete', 'cancelled', 'paused', 'error']) %}
{{states('sensor.contraband_generator_current_print_state')}}
{% elif is_state('sensor.contraband_generator_current_print_state', 'printing') %}
printing - {{states('sensor.contraband_generator_print_time_left')}} remaining
{% else %}
booting...
{% endif %}
{% endif %}
visibility:
- condition: user
users:
- 7694ac5312e9450a9c03867fe644b34f
icon: mdi:printer-3d
layout: horizontal
name: Contraband Generator
hold_action:
action: perform-action
perform_action: switch.turn_off
target:
device_id: 8cf5d9974d9e3c0f3bcc8329fffe8d1a
data: {}
tap_action:
action: perform-action
perform_action: switch.turn_on
target:
device_id: 8cf5d9974d9e3c0f3bcc8329fffe8d1a
data: {}
double_tap_action:
action: none
icon_tap_action:
action: perform-action
perform_action: switch.turn_on
target:
device_id: 8cf5d9974d9e3c0f3bcc8329fffe8d1a
data: {}
icon_hold_action:
action: perform-action
perform_action: switch.turn_off
target:
device_id: 8cf5d9974d9e3c0f3bcc8329fffe8d1a
data: {}
icon_double_tap_action:
action: none
hide: |-
{% if is_state('switch.shelly_1pm_gen4_2', 'on') %}
{% if is_state('sensor.contraband_generator_current_print_state', ['printing', 'error', 'paused']) %}
['value']
{% else %}
['progress_bar', 'value']
{% endif %}
{% endif %}
disable_unit: true
grid_options:
columns: full