Service Python script callable with button but not with automation

Hi everyone,
I have a python script to start my vacuum cleaner. I can start this script with a button which calls the service “python script: name of the script”.

If I want to integrate the service call in an automation I get the following error:

Does any one have an idea what I am missing?

Thanks
Manuel

Change the python_script’s name so that it doesn’t use a hyphen. An entity’s entity_id should not contain hyphens (or spaces and many other characters; use lowercase alphanumeric characters and underscores).

Thanks a lot for your very quick solution! Also works in an automation after renaming it.

I wish you a very nice weekend!

1 Like