Changing a decimal value into a hex value (jinja)

When you’re experimenting on this, remember that you can use the template dev tool to test your formatting.

{% set value = "VAL RETURNED BY SENSOR" %}
{{ "%+0x" | format( value | int }}
1 Like