You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Shredder5262 can you please share the error message you're getting in HA, and what version of HA you're running? (I didn't see the actual error message here or in Discord)
I'm running 2024.4.3, and using the syntax you're saying gives errors, but I haven't seen any in my logs.
First Check
What is the issue you are experiencing?
in the documentation page https://docs.mealie.io/documentation/community-guide/home-assistant/ for the example rest api calls listed in home assistant, the existing lines...
value_template: "{{ value_json[0].recipe.name }}"
value_template: "{{ value_json[0].recipe.id }}"
work, but produce an error in the home assistant logs. On my own setup, I changed the lines to
value_template: "{{ value_json[0]['recipe']['name']}}"
value_template: "{{ value_json[0]['recipe']['id']}}"
and so far i get the same result, but no error message in the logs.
Steps to Reproduce
`#Mealie API Calls
resource: "https://[mealieinstance]/api/groups/mealplans/today"
method: GET
name: Mealie todays meal
headers:
Authorization: Bearer [token]
value_template: "{{ value_json[0]['recipe']['name']}}"
force_update: true
scan_interval: 30
resource: "https://[mealieinstance]/api/groups/mealplans/today"
method: GET
name: Mealie todays meal ID
headers:
Authorization: Bearer [token]
value_template: "{{ value_json[0]['recipe']['id']}}"
force_update: true
scan_interval: 30
`
Please provide relevant logs
not applicable.
Mealie Version
not applicable.
Deployment
Docker (Windows)
Additional Deployment Details
not applicable.
The text was updated successfully, but these errors were encountered: