Card mod and with "type: tile" and numeric-input - how to template name

Hi

I would like to template a name with card mod, for box standard “tile”. I’m trying to show an input number slider, and unit of the input number is in minutes - however I would love to show hours and minutes. I know how to do this with mushroom number card, but that one is slow to update.

I would like something in shape of that:

features:
  - type: numeric-input
    style: buttons
  - style: slider
    type: numeric-input
type: tile
entity: input_number.garden_hose_short_period
name: >-
  {{
  states('input_number.garden_hose_short_period')|int|multiply(60)|timestamp_custom('Garden
  hose short period %H:%M hours', false) }}
features_position: bottom
vertical: false
hide_state: true
grid_options:
  columns: 12
  rows: 2

(Please note that that doesn’t work)

Well, I’ve found a solution:

type: custom:card-templater
card:
  features:
    - type: numeric-input
      style: buttons
    - style: slider
      type: numeric-input
  type: tile
  entity: input_number.garden_hose_short_period
  name_template: >-
    {{
    states('input_number.garden_hose_short_period')|int|multiply(60)|timestamp_custom('Garden
    hose short period %H:%M hours', false)  }}
  features_position: bottom
  vertical: false
  hide_state: true
  grid_options:
    columns: 12
    rows: 2
entities:
  - input_number.garden_hose_short_period

That works well! I’d go ahead and mark your post as the Solution. This will help others in the future.

Well, I thought that marking my own answer as a solution would be against the etiquette - but hell let’s “damn the torpedoes”.

Still I’ve not found a way to template the time value inside of number selection or in a baloon on top of the slider.

Not against the rules at all and actually preferred

:one::nine: I’ve solved it!

Great. Please respond to your post with details how you solved it, and use the option to mark it as the answer (see 21 below).

Please don’t delete your question, that will make it look like you only care about yourself.

I’ll take a look at this. Can you provide the template code you are trying to incorporate?

UPDATE: Is this what you were trying to achieve?

It applies the value inside of number selection and in a balloon on top of the slider.

type: custom:card-templater
card:
  type: tile
  features:
    - type: numeric-input
      style: buttons
    - style: slider
      type: numeric-input
      features_position: bottom
  vertical: false
  hide_state: true
  entity: input_number.garden_hose_short_period
  name_template: |
    {{ states('input_number.garden_hose_short_period')|int|multiply(60)|timestamp_custom('Garden
    hose short period %H:%M hours', false)  }}
entities:
  - entity: input_number.garden_hose_short_period
    attributes:
      unit_of_measurement_template: "Hours"
       

Thanks for pointing out the rules ! (nope, no sarcasm here)

About your solution: Not really. I would like the value in the +/- region and a ballon when you slide to show value converted from raw minutes to more human readable “2:52 hours” rather than just a “172 minutes”. Only thing I’ve managed to achive was just changing the name, via “value_template”.

Unfortunately from what I see, you can’t change the field type. The features you added to the tile card are integers not strings.