Hi all, I'm experimenting with the rest integration and I'm a little confused by some of the documentation. Most of the examples in doc docs look like this, with sensor as the top-level key:
sensor:
- platform: rest
resource: http://IP_ADDRESS/ENDPOINT
But then, there's one that looks like this, with rest as the top-level entry:
rest:
- resource: "http://date.jsontest.com/"
sensor:
- name: "Time"
value_template: "{{ value_json.time }}"
- name: "Date"
value_template: "{{ value_json.date }}"
I feel like there's a type hierarchy here that I'm not quite fully understanding.
On the main page for the RESTful integration it also says:
RESTful Sensor and RESTful Binary Sensor can also be set up as platforms if there is only a single sensor per endpoint.
which makes me more confident that I'm missing some important nuance in the type system here.
What exactly is going on here?