cm86
(cm86)
1
Hello Guys,
it took me a long time to take a look again in your lines. ![:wink: :wink:](https://community.home-assistant.io/images/emoji/twitter/wink.png?v=9)
So now i will look if i can setup a small home assistant instance.
Here is my first problem:
i have a Restful Sensor.
i want to extract the temperature from this json
{
"variable":{
"name":"Aussentemperatur.temperature",
"readonly":true,
"type":"attribute",
"value":5.1,
"unit":"°C"
},
"success":true
}
i have already tried a bit.
But nothing worked…
thanks
fabaff
(Fabian Affolter)
2
How does your value_template:
look like?
cm86
(cm86)
3
Hello,
Don’t laugh about me.
value_template: '{"variable":{"name":"Aussentemperatur.temperature","readonly":true,"type":"attribute","value":{value_json.state}"unit":"°C"},"success":true}'
fabaff
(Fabian Affolter)
4
Try: {{ value_json.variable.value }}
cm86
(cm86)
5
Hello @fabaff thanks.
It’s working.
I will come back by implementing a RESTful Switch.
Mit freundlichen Grüßen
Chris