Skip to content

Commit ed87d6c

Browse files
Added steps to get config_entry for OpenAI Conversation example (home-assistant#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>
1 parent 5f294fc commit ed87d6c

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

source/_integrations/openai_conversation.markdown

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,15 @@ to generate a new image of New York in the current weather state.
8787

8888
The resulting image entity can be used in, for example, a card on your dashboard.
8989

90+
The *config_entry* is installation specific. To get the value, make sure the integration has been installed.
91+
Then, go to {% my developer_services title="**Developer Tools** > **Services**" %}. Ensure you are in UI mode and enter the following below:
92+
93+
![Open AI Conversation UI Mode](/images/integrations/openai_conversation/openai_developer_tools_ui.png)
94+
95+
Select **YAML Mode** to reveal the *config_entry* value to be used in the below example automation.
96+
97+
![Open AI Conversation YAML Mode](/images/integrations/openai_conversation/openai_developer_tools_yaml.png)
98+
9099
{% raw %}
91100
```yaml
92101
automation:
@@ -99,10 +108,10 @@ automation:
99108
service: openai_conversation.generate_image
100109
response_variable: generated_image
101110
data:
102-
config_entry: f29e6b8696a15e107b4bd843de722249
103-
size: 512
111+
config_entry: abce6b8696a15e107b4bd843de722249
112+
size: "512"
104113
prompt: >-
105-
New York when the weather is {{ state("weather.home") }}"
114+
New York when the weather is {{ states("weather.home") }}"
106115
107116
- alias: "Send out a manual event to update the image entity"
108117
event: new_weather_image

0 commit comments

Comments
 (0)