mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-10-31 02:03:35 -04:00 
			
		
		
		
	docs: Update rest call for home assistant (#4341)
This commit is contained in:
		| @@ -23,27 +23,21 @@ We will create sensors to get the name and ID of the first meal in today's meal | |||||||
| Make sure the url and port (`http://mealie:9000` ) matches your installation's address and _API_ port. | Make sure the url and port (`http://mealie:9000` ) matches your installation's address and _API_ port. | ||||||
|  |  | ||||||
| ```yaml | ```yaml | ||||||
| - platform: rest | rest: | ||||||
|   resource: "http://mealie:9000/api/households/mealplans/today" |   - resource: "http://mealie:9000/api/groups/mealplans/today" | ||||||
|     method: GET |     method: GET | ||||||
|   name: Mealie todays meal |  | ||||||
|     headers: |     headers: | ||||||
|       Authorization: Bearer <<API_TOKEN>> |       Authorization: Bearer <<API_TOKEN>> | ||||||
|   value_template: "{{ value_json[0].recipe.name }}" |     scan_interval: 3600 | ||||||
|  |     sensor: | ||||||
|  |       - name: Mealie todays meal | ||||||
|  |         value_template: "{{ value_json[0]['recipe']['name'] }}" | ||||||
|         force_update: true |         force_update: true | ||||||
|   scan_interval: 30 |         unique_id: mealie_todays_meal | ||||||
| ``` |       - name: Mealie todays meal ID | ||||||
|  |         value_template: "{{ value_json[0]['recipe']['id'] }}" | ||||||
| ```yaml |  | ||||||
| - platform: rest |  | ||||||
|   resource: "http://mealie:9000/api/households/mealplans/today" |  | ||||||
|   method: GET |  | ||||||
|   name: Mealie todays meal ID |  | ||||||
|   headers: |  | ||||||
|     Authorization: Bearer <<API_TOKEN>> |  | ||||||
|   value_template: "{{ value_json[0].recipe.id }}" |  | ||||||
|         force_update: true |         force_update: true | ||||||
|   scan_interval: 30 |         unique_id: mealie_todays_meal_id | ||||||
| ``` | ``` | ||||||
|  |  | ||||||
| #### 3. Create a Camera Entity | #### 3. Create a Camera Entity | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user