Problems with shell commands

hello everyone, in my configuration.yaml I have this:

shell_command:
  barttest: touch /config/gelukt.txt

after restarting I don’t see any shell_commands in actions why is this? can someone help me I’ve been searching for hours now. thanks for your reply.

Is there anything in your logs? I would try wrapping the string in quotes, barttest: "touch /config/gelukt.txt"

Thank you for your answer. Shell_someone isn’t even listed anywhere in the logs. That is precisely the strange thing.

I just added

shell_command:
  foo: touch foo.txt

and restarted HA and it showed up in Dev Tools → Actions and ran fine.

action: shell_command.foo
data: {}

Sure you restarted? Any chance you have a place to run HA in Docker? I just spun up a new Docker image to test this – might be a good way to copy-n-paste your config just to verify.