Value from binary_sensor state attribute to Template number sensor

In Developer Tools I get value 63 if I use this code:

{{ state_attr('binary_sensor.uptimekuma_home_assistant', 'monitor_cert_days_remaining') | int }}

What I would like to achieve is that Trough the GUI I can add this value to a number variable. But this either isn’t possible, or I am doing something wrong.

I tried: create helperTemplateTemplate a number and then a lot of variation on the line above in the State template field. However, this is never showing the actual value.

Question: Is it possible what I am trying to achieve through the GUI? I would like to get rid of a lot of YML legacy :slight_smile:

helperTemplateTemplate a sensor

1 Like

Thank you very much!

1 Like