Hello,
I want to create sensor for counting directory with subdirectories size. I made something like this (yes I know I can add h parameter and ommit value templating) but it is not working as expected. I am using HassIO and I get this as a result:
If your command_line template fails check the log.
There should be at least some hint to what went wrong.
I did not need to whitelist (or allowlist) any dirs to do this.
Be warned though that in the scope of the command_line shell execution it seems that only the following folders are mounted: /config, /share, /ssl, /media
NOT mounted by default are: /addons, /backup