Hey everyone,
I am trying to put together a rest sensor to pull in data for my area’s train system, but I cant even seem to get the example code working. When I type (straight from the HA website):
sensor:
- platform: rest
resource: http://ip.jsontest.com
name: External IP
value_template: '{{ value_json.ip }}'
into the template editor, I get the error “Error rendering template: UndefinedError: ‘value_json’ is Undefined”. This is the same error I would get when trying out my custom code, so I am wondering if there is a problem with the way my HA is handling these requests.
Any thoughts on what I am doing wrong, or how I could troubleshoot through this? For reference I am on hass.io on a Rpi 3 B, running HA 0.97.2.