MQTT sensor. Help extracting the value

I have setup an MQTT sensor that is getting information from a Blynk app. The information receive should be an integer. The request is getting [“1”], I have try different value_template on my configuration file but none are good.

Can someone point me in the right direction to get the value from the response?



This is an array with one value. To access the array try

In the template editor, this works

{% set myx=["2"] %}

value is {{ myx[0] }}

so try

value_template: value_json[0]

or possibly

value_template: value[0]
1 Like


This worked value_json[0]

Thank you so much!

1 Like