Custom paper-row-buttons with variable name fields?

I am trying to setup a custom paper-buttons row for my SleepNumber bed.

I have a button for the footwarmer. However, instead of the button simply showing the state of the foot warmer being “ON” or “OFF”, I want to instead it to show the state of a different entity.

The foot warmer is turned on using a switch:
switch.sleep_number_master_suite_foot_warmer

The other entity is a number, showing the time remaining before the foot warmer automatically turns off:
number.sleep_number_master_suite_foot_warming_timer

I have tried to accomplish this with the following code:

type: entities
entities:
  - type: custom:paper-buttons-row
    buttons:
      - entity: switch.sleep_number_master_suite_foot_warmer
	    layout: icon_name
        name: {{ states('number.sleep_number_master_suite_foot_warming_timer') }}

Unfortunately, this does not work. The name just gets set to the state of the foot warmer, instead of having the number of the warming timer.