Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95919

Value template to extract one attribute

$
0
0

@hajo62 wrote:

I curl a public sensor resulting giving this result:
{ “timestamp”: “2020-02-06T12:15:00+01:00”, “value”: 799.0, “trend”: 1, “stateMnwMhw”: “normal”, “stateNswHsw”: “normal” }
Now I struggle with extracting the value value.
Here my (not working) template:

  - platform: template
    sensors:
      pegel:
        value_template: "{{ states('sensor.rheinpegel.value') }}"

What’s wrong?

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>