Automations - Response error 500

No matter what I do, I cannot get automations to work. Any help would be appreciated.

This is the error I receive. " Response error 500"

I have “automation: !include automations.yaml” added to my config file.

Logger: aiohttp.server
Source: components/config/automation.py:70
First occurred: 11:37:04 AM (1 occurrences)
Last logged: 11:37:04 AM

Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
    resp = await request_handler(request)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 82, in ban_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 136, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/config/__init__.py", line 145, in post
    self._write_value(hass, current, config_key, data)
  File "/usr/src/homeassistant/homeassistant/components/config/automation.py", line 70, in _write_value
    cur_value[CONF_ID] = uuid.uuid4().hex
TypeError: 'str' object does not support item assignment

1 Like

Hi, you have to add unique IDs to your existing automations in the automation.yml in order to use the blueprints.
check this: Response error 500 - #9 by RichardU
and this at migration topic: Automation YAML - Home Assistant

It didn’t help personnally