Sum number helper value and specific number

Hi,
May i know pls how to Sum number helper value with fixed number to use it as tamplate in conditions ?

Thanks.

The basic concept is this:

{{ states('input_number.whatever') | float(0) + 12.5 }}

Example of it used in a Template Sensor:

template:
  - sensor:
      - name: Offset Whatever
        state: "{{ states('input_number.whatever') | float(0) + 12.5 }}"

How do you want to use it in a Template Condition? To compare two values?

Thank you so much.

1 Like