Server error response 500

Hi everyone, I have an instance of HA running that I have been using for quite awhile. I finally decided to learn about/try to use blueprints. I am just trying to create an instance of one of the default blueprints just to play around. No matter what I do in there though, I keep getting Response 500 error back from the server.

When I look at the logs it is giving me…

File “/usr/src/homeassistant/homeassistant/util/yaml/”, line 306, in secret_yaml
raise HomeAssistantError(“Secrets not supported in this YAML file”)

Any idea what is going on there? Do I need to configure something to enable the blueprint functionality?

I am running supervised version od DebianHA:

Debian GNU/Linux 10 (buster)
Docker 20.10.2

It is running in an Intel NUC.


Did you ever figure this out? I am trying blueprints now and ran into same issue. Down to the exact line 306.

Are you using secrets in your blueprint?
Or in a derived automation?

I have only 2 blueprints, and they are the default ones. I’ve actually never used them up until now. I deleted all 3rd party ones.

I have also run a config checker, and throws no errors or signs of config issue. Kind of bizarre.

I’m experiencing the same issue. When I try to create an automation from a blueprint, I get error 500. My logging shows the following:

Logger: aiohttp.server
Source: components/config/
First occurred: 1:58:44 PM (1 occurrences)
Last logged: 1:58:44 PM

Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/aiohttp/", line 422, in _handle_request
    resp = await self._request_handler(request)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/", line 499, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/", line 119, in impl
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/", line 60, in security_filter_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/", line 77, in forwarded_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/", line 24, in request_context_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/", line 78, in ban_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/", line 144, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/", line 135, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/config/", line 160, in post
    self._write_value(hass, current, config_key, data)
  File "/usr/src/homeassistant/homeassistant/components/config/", line 60, in _write_value
    cur_value[CONF_ID] = uuid.uuid4().hex
TypeError: 'str' object does not support item assignment

Did anybody find a solution for this?

Besides being an error, it doesn’t seem anywhere related to the OP.
Please open a new thread with the sources of the blueprint and the automation.