Hello together,
I have a restful-resource, with the following raw output:
{
"StatusSNS": {
"Time": "2026-04-15T11:39:57",
"": {
"Power_curr": -201.10,
"Total_in": 15148.92,
"Total_out": 316.55
}
}
}
I wan’t to address Power_curr, Total_in and Total_out with the value_template value_json, but I can’t address the “empty” path after StatusSNS.
I tried…
value_template: "{{value_json.StatusSNS..Power_curr|float}}"
…but that gives me an error message on reload.
Invalid config for 'rest' at configuration.yaml, line 178: invalid template (TemplateSyntaxError: expected name or number) for dictionary value 'rest->2->sensor->0->value_template', got '{{value_json.StatusSNS..Power_curr|float}}', please check the docs at https://www.home-assistant.io/integrations/rest
Would be nice, if someone could help me ![]()
thanks and best regards,
Markus
