Untitled

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

- platform: rest
  name: "Kärl 2"
  resource: https://www.vasyd.se/api/sitecore/MyPagesApi/WastePickupByAddress?query=141157&street=Lovisas%20gata%206%2C%20Klagshamn
  value_template: "{{ value_json['items'][1]['nextWastePickup'] }}"
  method: POST