mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-09 03:04:54 -04:00
Added info on how the Sensor in HA is created (#584)
This commit is contained in:
parent
7a041759fa
commit
c463ef279a
@ -29,6 +29,19 @@ style:
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
The sensor that gets the name of the meal can be achieved using the following REST sensor in Home Assistant
|
||||||
|
```yaml
|
||||||
|
sensor:
|
||||||
|
- platform: rest
|
||||||
|
resource: 'http://localhost:9000/api/meal-plans/today'
|
||||||
|
method: GET
|
||||||
|
name: Mealie todays meal
|
||||||
|
headers:
|
||||||
|
Authorization: Bearer MySuperSecretBearerCode
|
||||||
|
value_template: "{{ value_json.name }}"
|
||||||
|
```
|
||||||
|
The Bearer token can be created from the User Settings page (https://hay-kot.github.io/mealie/documentation/users-groups/user-settings/#api-key-generation)
|
||||||
|
|
||||||
|
|
||||||
!!! tip
|
!!! tip
|
||||||
Due to how Home Assistant works with images, I had to include the additional styling to get the images to not appear distorted. This includes and [additional installation](https://github.com/thomasloven/lovelace-card-mod) from HACS.
|
Due to how Home Assistant works with images, I had to include the additional styling to get the images to not appear distorted. This includes and [additional installation](https://github.com/thomasloven/lovelace-card-mod) from HACS.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user