Hi,
sorry to bump an old post, but i can’t figure this out - i keep getting the error 500.
When i try to create (my first) automation, it keeps giving me that error every time.
Logger: aiohttp.server
Source: /usr/local/lib/python3.11/site-packages/aiohttp/web_protocol.py:403
First occurred: 21:18:05 (2 occurrences)
Last logged: 21:18:55
‘’’
Error handling request
Traceback (most recent call last):
File “/usr/local/lib/python3.11/site-packages/aiohttp/web_protocol.py”, line 433, in _handle_request
resp = await request_handler(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/aiohttp/web_app.py”, line 504, in _handle
resp = await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/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 85, 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 80, 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/headers.py”, line 31, in headers_middleware
response = await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/http/view.py”, line 148, in handle
result = await handler(request, **request.match_info)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/http/decorators.py”, line 63, in with_admin
return await func(self, request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/config/init.py”, line 112, in get
value = self._get_value(hass, current, config_key)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/config/init.py”, line 218, in _get_value
return next((val for val in data if val.get(CONF_ID) == config_key), None)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/config/init.py”, line 218, in
return next((val for val in data if val.get(CONF_ID) == config_key), None)
^^^^^^^
AttributeError: ‘str’ object has no attribute ‘get’
‘’’
I suspect it has something to do with having Dropback add-on.
My automations.yaml file:
id: belekas
alias: System Backup To Dropbox
description: "a"
trigger:
- platform: time
at: "03:00:00"
action:
- service: hassio.backup_full
data:
name: "{{ now().strftime('%Y-%m-%d') }}"
- delay: "00:15:00"
- service: hassio.addon_stdin
data:
addon: 719b45ef_dropback
input: sync
mode: single
I added that “id: belekas” later. Yet it keeps saying “this automation cannot be edited from UI, because it is not stored in automations.yaml or it doesn’t have and ID.” in Configuration >Automations.
Home assistant OS version 2023.10 on a dedicated x64 PC.
Thanks