My MQTT switch sends the following Json.
{ "datas": [
{
"name": "i",
"types": [0,0,0,0,0,0,0,0],
"values":[0,0,0,0,0,0,0,0]
},
{
"name": "o",
"types": [1,1,1,1,1,1,1,1],
"values":[1,0,0,0,0,0,0,0]
}
]
}
I’m not able to get data from the “values” field
In the tests in the templante editor, using
{{my_test_json.datas [1] .types [1]}}
I get the correct value, but this is not the information I need.
But when I search for the information I need
{{my_test_json.datas [1] .values [1]}}
I have no answer.
I believe the name of the field that is generating the problem, how can I solve this problem.