Hello Guys,
I wonder If someone could help me.
Im trying to export a list of all items stored in my Grocy products table into a sensor.
The API call seems to work and it is returning correct data however it is limiting it to the first record, how can I go about getting it to loop through all records and populate these attributes?
- platform: rest
name: Grocy - Stock - Min Amount
resource: http://xxx.xxx.xxx.xxx:9192/api/objects/products
headers:
GROCY-API-KEY: !secret grocy_api
value_template: '{{ value_json.id }}'
json_attributes:
- id
- name
- min_stock_amount
i’m hoping to achieve something like this, taken from one of the official integration sensors:
thanks