@@ -14,7 +14,9 @@ A Home Assistant custom integration that facilitates AI tasks using Azure AI ser
1414- Easy configuration through Home Assistant UI
1515- Secure API key management
1616- ** User-configurable AI models for chat responses** (GPT-3.5, GPT-4, GPT-4o, etc.) - type in any model name
17+ - ** 🎨 Image generation with DALL-E support** - generate images from text prompts using DALL-E 2/3
1718- ** Image and video analysis with attachment support** - analyze camera streams and uploaded images
19+ - ** Flexible entity configuration** - create chat-only, image-only, or combined entities
1820- ** Reconfiguration support** - change models without re-entering credentials
1921- ** Multiple entry support** - use different API endpoints and keys for different purposes
2022- Compatible with Azure OpenAI and other Azure AI services
@@ -52,9 +54,10 @@ Or replace steps 1-6 with this:
52542 . Search for "Azure AI Tasks"
53553 . Enter your Azure AI endpoint URL (make sure you use the Azure OpenAI URL - i.e. https://USE-YOUR-RESOURCE-URL.openai.azure.com )
54564 . Enter your API key
55- 5 . ** Enter your preferred chat model** (gpt-35-turbo, gpt-4, gpt-4o, etc.)
56- 6 . Give your integration a name
57- 7 . Click Submit
57+ 5 . ** Enter your preferred chat model** (gpt-35-turbo, gpt-4, gpt-4o, etc.) - leave empty for image-only entities
58+ 6 . ** Enter your preferred image model** (dall-e-2, dall-e-3, etc.) - leave empty for chat-only entities
59+ 7 . Give your integration a name
60+ 8 . Click Submit
5861
5962<img width =" 383 " height =" 478 " alt =" image " src =" https://github.com/user-attachments/assets/8932c51a-8fcb-42bc-9e22-ead143c610d7 " />
6063
@@ -68,9 +71,14 @@ Or replace steps 1-6 with this:
6871To change AI models without re-entering credentials:
69721 . Go to your Azure AI Tasks integration
70732 . Click "Configure"
71- 3 . Enter a different model as needed
74+ 3 . Enter different chat/image models as needed (use placeholder text ` [None - leave empty to disable chat] ` or ` [None - leave empty to disable images] ` to clear fields)
72754 . Save changes
7376
77+ ** Note** : You can create specialized entities by leaving one model type empty:
78+ - ** Chat-only entities** : Configure chat model, leave image model empty
79+ - ** Image-only entities** : Configure image model, leave chat model empty
80+ - ** Combined entities** : Configure both models
81+
7482<img width =" 1072 " height =" 700 " alt =" image " src =" https://github.com/user-attachments/assets/598b8c28-7663-4507-be63-22413cac4b9d " />
7583
7684
@@ -92,6 +100,34 @@ data:
92100` ` `
93101
94102
103+ ### 🎨 Image Generation
104+ Example service calls for generating images with DALL-E:
105+
106+ **Basic Image Generation:**
107+ ` ` ` yaml
108+ action : ai_image.generate_image
109+ data :
110+ prompt : " A futuristic smart home with holographic displays and AI assistants"
111+ entity_id : ai_image.azure_ai_tasks_dall_e_3
112+ ` ` `
113+
114+ **Advanced Image Generation with Parameters:**
115+ ` ` ` yaml
116+ action : ai_image.generate_image
117+ data :
118+ prompt : " A cozy living room during sunset with warm lighting"
119+ entity_id : ai_image.azure_ai_tasks_dall_e_3
120+ size : " 1024x1024"
121+ quality : " hd"
122+ style : " vivid"
123+ ` ` `
124+
125+ **Supported DALL-E Parameters:**
126+ - **size**: Image dimensions (DALL-E 2: 256x256, 512x512, 1024x1024; DALL-E 3: 1024x1024, 1024x1792, 1792x1024)
127+ - **quality**: Image quality for DALL-E 3 (standard, hd)
128+ - **style**: Image style for DALL-E 3 (natural, vivid)
129+ - **n**: Number of images to generate (1-10 for DALL-E 2, 1 for DALL-E 3)
130+
95131
96132
97133### Image/Video Analysis with Attachments
@@ -135,11 +171,16 @@ data:
135171
136172### Available Models
137173
138- You can enter any model name that your Azure AI deployment supports.
174+ **Chat Models**: You can enter any chat model name that your Azure AI deployment supports:
175+ - gpt-35-turbo, gpt-4, gpt-4o, gpt-4-turbo, etc.
176+
177+ **Image Models**: Supported image generation models:
178+ - **dall-e-2**: Classic DALL-E model with multiple size options
179+ - **dall-e-3**: Latest DALL-E model with enhanced quality and style controls
139180
140181## Requirements
141182
142- - Home Assistant 2024.1 or later
183+ - ** Home Assistant 2025.10.0 or later** (required for AI Task and AI Image services)
143184- Azure AI service with API access
144185- Valid Azure AI endpoint and API key
145186
0 commit comments