Automation Error: Response error: 500

I would linke to save an automation, but I get the error “Response error: 500”
This is the automation Code:

description: ""
mode: single
trigger:
  - platform: state
    entity_id:
      - light.flur_spot_1
    from: "off"
    to: "on"
condition:
  - condition: numeric_state
    entity_id: sensor.ical_adler_gameday_event_0
    attribute: eta
    below: 2
  - condition: state
    entity_id: input_boolean.stromsparmodus
    state: "off"
action:
  - service: light.turn_on
    data:
      rgb_color:
        - 17
        - 255
        - 0
      brightness_pct: 50
    target:
      entity_id: light.kuche_bar
alias: Licht Küche Bar einschalten Adler Gameday

What I make wrong?

doesn’t look like anythings wrong, post the error that’s appearing in your logs

I get this error in the log, If i try to save the automation:

Logger: homeassistant.util.file
Source: util/file.py:37
First occurred: 15:52:15 (1 occurrences)
Last logged: 15:52:15

Saving file failed: /config/automations.yaml
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/util/file.py", line 37, in write_utf8_file_atomic
    with AtomicWriter(filename, overwrite=True).open() as fdesc:
  File "/usr/local/lib/python3.10/contextlib.py", line 135, in __enter__
    return next(self.gen)
  File "/usr/local/lib/python3.10/site-packages/atomicwrites/__init__.py", line 169, in _open
    with get_fileobject(**self._open_kwargs) as f:
  File "/usr/local/lib/python3.10/site-packages/atomicwrites/__init__.py", line 186, in get_fileobject
    descriptor, name = tempfile.mkstemp(suffix=suffix, prefix=prefix,
  File "/usr/local/lib/python3.10/tempfile.py", line 341, in mkstemp
    return _mkstemp_inner(dir, prefix, suffix, flags, output_type)
  File "/usr/local/lib/python3.10/tempfile.py", line 256, in _mkstemp_inner
    fd = _os.open(file, flags, 0o600)
OSError: [Errno 30] Read-only file system: '/config/tmpi8balgek'

Logger: aiohttp.server
Source: util/file.py:43
First occurred: 15:52:15 (1 occurrences)
Last logged: 15:52:15

Error handling request
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/util/file.py", line 37, in write_utf8_file_atomic
    with AtomicWriter(filename, overwrite=True).open() as fdesc:
  File "/usr/local/lib/python3.10/contextlib.py", line 135, in __enter__
    return next(self.gen)
  File "/usr/local/lib/python3.10/site-packages/atomicwrites/__init__.py", line 169, in _open
    with get_fileobject(**self._open_kwargs) as f:
  File "/usr/local/lib/python3.10/site-packages/atomicwrites/__init__.py", line 186, in get_fileobject
    descriptor, name = tempfile.mkstemp(suffix=suffix, prefix=prefix,
  File "/usr/local/lib/python3.10/tempfile.py", line 341, in mkstemp
    return _mkstemp_inner(dir, prefix, suffix, flags, output_type)
  File "/usr/local/lib/python3.10/tempfile.py", line 256, in _mkstemp_inner
    fd = _os.open(file, flags, 0o600)
OSError: [Errno 30] Read-only file system: '/config/tmpi8balgek'

The above exception was the direct cause of the following exception:

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 147, in post
    await hass.async_add_executor_job(_write, path, current)
  File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/config/__init__.py", line 243, in _write
    write_utf8_file_atomic(path, contents)
  File "/usr/src/homeassistant/homeassistant/util/file.py", line 43, in write_utf8_file_atomic
    raise WriteError(error) from error
homeassistant.util.file.WriteError: [Errno 30] Read-only file system: '/config/tmpi8balgek'

Now I have see, that I can´t save any automation :disappointed:

How did you install HA? It’s not letting you save because the files are marked as read only. Not sure how you got into that state.

I have install with balenaEtcher on an SD card on raspberry Pi, But in the last few days I had big problems with my home assistant. I have updated to 2022.12.0. After that I could no longer access the home assistant. After several hours, I disconnected the power from my Raspberry Pi and reconnected it. After that, the Home Assistant ran again, but with a much older level of automations and frontend