Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
395 B
2
Indexable
Never
# configuration.yaml
rest:
  - resource: https://www.vasyd.se/api/sitecore/MyPagesApi/WastePickupByAddress?query=141157&street=Lovisas%20gata%206%2C%20Klagshamn
    method: POST
    sensor:
      - name: "Kärl 1"
        value_template: "{{ value_json['items'][0]['nextWastePickup'] }}"
      - name: "Kärl 2"
        value_template: "{{ value_json['items'][1]['nextWastePickup'] }}"