Problem configuring shopping_list and conversation

Hi

I’ve added this from the examples:

conversation:
intents:
ShoppingListAddItem:
- Add {item} to my shopping list

shopping_list:

And a base_url. Tested with both

The voice commands from chromium seems to work, but nothing actually appears on my list, and error log says this:

Feb 28 17:46:20 home-assistant hass[8196]: 2018-02-28 17:46:20 ERROR (MainThread) [aiohttp.server] Error handling request

Feb 28 17:46:20 home-assistant hass[8196]: Traceback (most recent call last):
Feb 28 17:46:20 home-assistant hass[8196]: File “/usr/local/lib/python3.5/dist-packages/aiohttp/web_protocol.py”, line 416, in start
Feb 28 17:46:20 home-assistant hass[8196]: resp = yield from self._request_handler(request)
Feb 28 17:46:20 home-assistant hass[8196]: File “/usr/local/lib/python3.5/dist-packages/aiohttp/web.py”, line 325, in _handle
Feb 28 17:46:20 home-assistant hass[8196]: resp = yield from handler(request)
Feb 28 17:46:20 home-assistant hass[8196]: File “/usr/local/lib/python3.5/dist-packages/aiohttp/web_middlewares.py”, line 93, in impl
Feb 28 17:46:20 home-assistant hass[8196]: return (yield from handler(request))
Feb 28 17:46:20 home-assistant hass[8196]: File “/usr/local/lib/python3.5/dist-packages/homeassistant/components/http/static.py”, line 70, in staticresource_middleware
Feb 28 17:46:20 home-assistant hass[8196]: return (yield from handler(request))
Feb 28 17:46:20 home-assistant hass[8196]: File “/usr/local/lib/python3.5/dist-packages/homeassistant/components/http/real_ip.py”, line 28, in real_ip_middleware
Feb 28 17:46:20 home-assistant hass[8196]: return (yield from handler(request))
Feb 28 17:46:20 home-assistant hass[8196]: File “/usr/local/lib/python3.5/dist-packages/homeassistant/components/http/ban.py”, line 70, in ban_middleware
Feb 28 17:46:20 home-assistant hass[8196]: return (yield from handler(request))
Feb 28 17:46:20 home-assistant hass[8196]: File “/usr/local/lib/python3.5/dist-packages/homeassistant/components/http/auth.py”, line 53, in auth_middleware
Feb 28 17:46:20 home-assistant hass[8196]: return (yield from handler(request))
Feb 28 17:46:20 home-assistant hass[8196]: File “/usr/local/lib/python3.5/dist-packages/homeassistant/components/http/init.py”, line 409, in handle
Feb 28 17:46:20 home-assistant hass[8196]: result = yield from result
Feb 28 17:46:20 home-assistant hass[8196]: File “/usr/local/lib/python3.5/dist-packages/homeassistant/components/http/data_validator.py”, line 48, in wrapper
Feb 28 17:46:20 home-assistant hass[8196]: result = yield from method(view, request, *args, **kwargs)
Feb 28 17:46:20 home-assistant hass[8196]: File “/usr/local/lib/python3.5/dist-packages/homeassistant/components/conversation.py”, line 161, in post
Feb 28 17:46:20 home-assistant hass[8196]: intent_result = yield from _process(hass, data[‘text’])
Feb 28 17:46:20 home-assistant hass[8196]: File “/usr/local/lib/python3.5/dist-packages/homeassistant/components/conversation.py”, line 143, in _process
Feb 28 17:46:20 home-assistant hass[8196]: in match.groupdict().items()}, text)
Feb 28 17:46:20 home-assistant hass[8196]: File “/usr/local/lib/python3.5/dist-packages/homeassistant/helpers/intent.py”, line 51, in async_handle
Feb 28 17:46:20 home-assistant hass[8196]: raise UnknownIntent(‘Unknown intent {}’.format(intent_type))
Feb 28 17:46:20 home-assistant hass[8196]: homeassistant.helpers.intent.UnknownIntent: Unknown intent ShoppingListAddItem

I have apache with ssl in front of hass.

to get the shopping list work with conversation, just put these 2 in your configuration.yaml

conversation:
shopping_list:

If you use google chrome from your pc (not support google chrome in ios) and microphone attached to your pc, from google chrome>setting>advanced>content settings>microphone>there will be drop down list for you to choose the microphone>allow> once you allow it, back to homeassistant page>shopping list>click the microphone icon> say “add [whatever you want] to my shopping list” > then item will automatically add to your shopping list.

2 Likes

Thanks. That worked. So the example in the documentation is wrong.