mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-16 22:06:50 +00:00
Added steps to get config_entry for OpenAI Conversation example (#28673)
* Added steps to get config_entry for OpenAI Conversation example. Fix syntax for state of weather.home. Add quotes to size parameter. * tiny tweak --------- Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>
This commit is contained in:
parent
5f294fc28b
commit
ed87d6c7a7
@ -87,6 +87,15 @@ to generate a new image of New York in the current weather state.
|
||||
|
||||
The resulting image entity can be used in, for example, a card on your dashboard.
|
||||
|
||||
The *config_entry* is installation specific. To get the value, make sure the integration has been installed.
|
||||
Then, go to {% my developer_services title="**Developer Tools** > **Services**" %}. Ensure you are in UI mode and enter the following below:
|
||||
|
||||

|
||||
|
||||
Select **YAML Mode** to reveal the *config_entry* value to be used in the below example automation.
|
||||
|
||||

|
||||
|
||||
{% raw %}
|
||||
```yaml
|
||||
automation:
|
||||
@ -99,10 +108,10 @@ automation:
|
||||
service: openai_conversation.generate_image
|
||||
response_variable: generated_image
|
||||
data:
|
||||
config_entry: f29e6b8696a15e107b4bd843de722249
|
||||
size: 512
|
||||
config_entry: abce6b8696a15e107b4bd843de722249
|
||||
size: "512"
|
||||
prompt: >-
|
||||
New York when the weather is {{ state("weather.home") }}"
|
||||
New York when the weather is {{ states("weather.home") }}"
|
||||
|
||||
- alias: "Send out a manual event to update the image entity"
|
||||
event: new_weather_image
|
||||
|
Binary file not shown.
After Width: | Height: | Size: 44 KiB |
Binary file not shown.
After Width: | Height: | Size: 49 KiB |
Loading…
x
Reference in New Issue
Block a user