+ sign in yaml code for sensor value_template gives an error

Hi,

I have a sensor in my configuration file but the sensor value_template payload ends with a + sign. This gives an error.

This is the code:

day_power_max_w:
        unit_of_measurement: "w"
        device_class: energy
        friendly_name: Dag stroom max
        value_template: '{{ (states.sensor.homewizard.attributes.response.energylinks[0].used.po+) }}'

Has anyone an idea how to avoid this error?

Thanks a lot :slight_smile:

        value_template: '{{ state_attr("sensor.homewizard", "response").energylinks[0].used["po+"] }}'

see above…

Thnx! this works! :slight_smile: