How do i make a sensors vaule_template display as an integral number

sensors:
      media_volume:
        friendly_name: "media_volume"
        value_template: "{{ state_attr('media_player.tv_speakers', 'volume_level') * 100}}"

how do i make this an integral number

try:

value_template: "{{ (state_attr('media_player.tv_speakers', 'volume_level') * 100 ) | int }}"

1 Like

Do you mean integer?

Win win chicken dinner, that worked a treat, your sir are a legend!!

haha I did, well spotted.