mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 02:07:09 +00:00
Add help for conversation/process service (#14323)
* Add help for conversation/process service * Add logging to debug text received when service is called * Move conversation to specific folder
This commit is contained in:
parent
6199e50e80
commit
ff01aa40c9
@ -96,6 +96,7 @@ async def async_setup(hass, config):
|
|||||||
async def process(service):
|
async def process(service):
|
||||||
"""Parse text into commands."""
|
"""Parse text into commands."""
|
||||||
text = service.data[ATTR_TEXT]
|
text = service.data[ATTR_TEXT]
|
||||||
|
_LOGGER.debug('Processing: <%s>', text)
|
||||||
try:
|
try:
|
||||||
await _process(hass, text)
|
await _process(hass, text)
|
||||||
except intent.IntentHandleError as err:
|
except intent.IntentHandleError as err:
|
10
homeassistant/components/conversation/services.yaml
Normal file
10
homeassistant/components/conversation/services.yaml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
# Describes the format for available component services
|
||||||
|
|
||||||
|
process:
|
||||||
|
description: Launch a conversation from a transcribed text.
|
||||||
|
fields:
|
||||||
|
text:
|
||||||
|
description: Transcribed text
|
||||||
|
example: Turn all lights on
|
||||||
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user