Getting Response 500 Error With Every Automation

Hello. I cannot get automations to work AT ALL! Every one that I try gives me the same error in my log, and I know I’m doing the automation codes themselves correctly. Even the automations that Home Assistant provides won’t work and give this error. It gives me a response 500 error.

TypeError: 'NodeStrClass' object does not support item assignment

If someone could help I’d greatly appreciate it!

Can you share the full log and your automations.yaml file. Direct message me if you think either contains sensitive information.

Can you explain the steps you are taking to “try” an automation?

Here’s the automations.yaml file:

  - id: this_is_the_automation_id
    alias: "The optional automation alias"
      - platform: event
        event_type: ifttt_webhook_received
          action: call_service  # the same action 'name' you used in the Body section of the IFTTT recipe
    condition: []
      - service: "{{ }}"  # replace with the service you want to call
          entity_id: "{{ }}"

Here’s the error log:

Logger: aiohttp.server
Source: /usr/local/lib/python3.12/site-packages/aiohttp/
Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/aiohttp/", line 452, in _handle_request
    resp = await request_handler(request)
  File "/usr/local/lib/python3.12/site-packages/aiohttp/", line 543, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.12/site-packages/aiohttp/", line 114, in impl
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/", line 92, in security_filter_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/", line 83, in forwarded_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/", line 26, in request_context_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/", line 85, in ban_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/", line 242, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/", line 32, in headers_middleware
    response = await handler(request)
  File "/usr/src/homeassistant/homeassistant/helpers/", line 73, in handle
    result = await handler(request, **request.match_info)
  File "/usr/src/homeassistant/homeassistant/components/http/", line 81, in with_admin
    return await func(self, request, *args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/components/config/", line 125, in post
    self._write_value(hass, current, config_key, data)
  File "/usr/src/homeassistant/homeassistant/components/config/", line 84, in _write_value
    cur_value[CONF_ID] = uuid.uuid4().hex
TypeError: 'NodeStrClass' object does not support item assignment


I’m going into home assistant, going to automations, pressing new automation, and using the drop downs to select what the triggers and actions should be. Then I get this response 500 error.

1 Like

Nevermind, I figured it out. Thanks everyone!

Any hints for future users with the same problem?

1 Like

I just cleared the automations.yaml file of all text and went into home assistant and pressed new automation and it worked.

1 Like