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:
stephanerosi 2018-05-08 19:24:27 +02:00 committed by Paulus Schoutsen
parent 6199e50e80
commit ff01aa40c9
2 changed files with 11 additions and 0 deletions

View File

@ -96,6 +96,7 @@ async def async_setup(hass, config):
async def process(service):
"""Parse text into commands."""
text = service.data[ATTR_TEXT]
_LOGGER.debug('Processing: <%s>', text)
try:
await _process(hass, text)
except intent.IntentHandleError as err:

View 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