Shell_command entry is ignored?

Hi,

I am trying to make a shell_command entry - it should be pretty basic. But the entry is completely ignored - no error when loading and it does not show up in entities list.

I am at a loss.

This is what i am entering in configuration.yaml:

shell_command:
test_cmd: ‘echo “test” > /tmp/test’

any ideas?

For anyone to help you, you need to surround your code in triple quotes.

Why would it show up in the entities list?

Have you tried using the shell command in a script, or direct from the services tab?

You are correct it works from the service tab.

I was fiddeling with multiple settings and was expecting it to show up in the entities tab - just to show it was loaded.

I had expected all valid entitiy_id’s be in there, guess i was wrong.

But thank you for pointing me in the right direction.

1 Like

Yeah, common misconception.

The ‘entities tab’ as you call it is actually the ‘states page’, so it only lists things that have a state, which a lot of services don’t :+1: