File copying automation from an addon folder

Dear folks!

I have a stupid question.
I made a file in an appdaemon folder and I can move to the local www folder manually, but I want to automate this. I didn’t find the way to do that day to day. What is the solution.

1 Like

I have the same problem - I copy using the command via the terminal, but any attempts to create automation end with errors.
Here is the command that copies from the addon’s www folder to the config/www folder -
cp /addon_configs/a0d7b954_appdaemon/www/image.jpg /config/www/image.jpg

And the same command written in configuration.yaml and any of its variations give an error

shell_command:
 copy_image: >-
  cp /addon_configs/a0d7b954_appdaemon/www/image.jpg /config/www/image.jpg

Help!

p.s.
SOLVED
Change
/config/www/****
to
/homeassistant/www/****

shell_command:
 copy_image: >-
  cp /addon_configs/a0d7b954_appdaemon/www/image.jpg /homeassistant/www/image.jpg