Need help with restful sensor showing "unknown"

Hello lovely community (:

i build this:

  - platform: rest
    name: "Single Test"
    value_template: "{{ (( | round(1)) }}"
#    scan_interval: 12:00

but the sensor always shows ‘UNKOWN’ :frowning:
can someone help me / tell my why it does not work?`

the external ip address example from the documentation works:

but mine does not :confused:

pls help and tell me why / how to fix

with kind regards

Try this:

value_template: "{{['11010'].weekIncidence | round(1) }}"

11010 is a string ("11010") not a number (11010) in your resource’s data.

1 Like