Query a sensor value under attribute

Hello,

i have found restful sensor “tibber_prices” and found a way to use prices under the node “today”/“tomorrow”, but …


with attribut “current”, “today” and “tommorow”. How can i query the value under node “total:” from attribute “current:”, so does i can use the Value in a chart or a new templatesensor/helper?

{{state_attr('sensor.tibber_prices','current') }}

… give me only “True” back. :man_shrugging:

Thx, and i hope you can help a Noop

The way it’s being displayed makes it hard to tell, but I think you need

{{state_attr('sensor.tibber_prices','current')['total']}}

If that doesn’t work paste the following template in the Template tool and share the output:

{{ state.sensor.tibber_prices.attributes }}

1 Like

Thank you,
i didn’t have the square brackets on my radar.