mirror of
https://github.com/smkrv/ha-text-ai.git
synced 2026-07-30 01:33:57 +08:00
fix: Remove target requirements from services to fix mandatory device/area/entity selection issue
- Removed target blocks from all services in services.yaml - Services now work as global services without requiring device/area/entity selection - Users can call services directly with only required parameters - Fixes issue #2 where services incorrectly required target selection after v2.1.8 update
This commit is contained in:
@@ -4,10 +4,6 @@ ask_question:
|
|||||||
Send a question to the AI model and receive a detailed response.
|
Send a question to the AI model and receive a detailed response.
|
||||||
The response will be stored in the conversation history and can be retrieved later.
|
The response will be stored in the conversation history and can be retrieved later.
|
||||||
This service now returns response data directly, eliminating the need to read from sensors.
|
This service now returns response data directly, eliminating the need to read from sensors.
|
||||||
target:
|
|
||||||
entity:
|
|
||||||
integration: ha_text_ai
|
|
||||||
domain: sensor
|
|
||||||
fields:
|
fields:
|
||||||
instance:
|
instance:
|
||||||
name: Instance
|
name: Instance
|
||||||
@@ -82,10 +78,6 @@ clear_history:
|
|||||||
name: Clear History
|
name: Clear History
|
||||||
description: >-
|
description: >-
|
||||||
Delete all stored questions and responses from the conversation history
|
Delete all stored questions and responses from the conversation history
|
||||||
target:
|
|
||||||
entity:
|
|
||||||
integration: ha_text_ai
|
|
||||||
domain: sensor
|
|
||||||
fields:
|
fields:
|
||||||
instance:
|
instance:
|
||||||
name: Instance
|
name: Instance
|
||||||
@@ -99,10 +91,6 @@ clear_history:
|
|||||||
get_history:
|
get_history:
|
||||||
name: Get History
|
name: Get History
|
||||||
description: Retrieve conversation history with optional filtering and sorting
|
description: Retrieve conversation history with optional filtering and sorting
|
||||||
target:
|
|
||||||
entity:
|
|
||||||
integration: ha_text_ai
|
|
||||||
domain: sensor
|
|
||||||
fields:
|
fields:
|
||||||
instance:
|
instance:
|
||||||
name: Instance
|
name: Instance
|
||||||
@@ -163,10 +151,6 @@ get_history:
|
|||||||
set_system_prompt:
|
set_system_prompt:
|
||||||
name: Set System Prompt
|
name: Set System Prompt
|
||||||
description: Set default system behavior instructions for all future conversations
|
description: Set default system behavior instructions for all future conversations
|
||||||
target:
|
|
||||||
entity:
|
|
||||||
integration: ha_text_ai
|
|
||||||
domain: sensor
|
|
||||||
fields:
|
fields:
|
||||||
instance:
|
instance:
|
||||||
name: Instance
|
name: Instance
|
||||||
|
|||||||
Reference in New Issue
Block a user