Value template JSON key issue

I have created a rest sensor which returns some json that I am trying to pull a specific key from. Unfortunately the key in the json is named “value” so when I try and reference it in the template it doesn’t return a state.

For example, {{ value.value }} where the first value is the full json output and the second value is the key. I’ve tried using quotes like {{ value.‘value’ }} to try and tell HA I’m not referencing the value variable but it doesn’t work.

Does anyone know a workaround for this?

{{ value_json.value}}

Reference: Processing incoming data

1 Like