Is it possible that my automation, calling this service, selects a random mp3 from the chime path? There are some MP3 files there and I want an MP3 to be randomly selected and played.
The sensor will have a file_list attribute containing a list of all files it found (as per how you configured the Folder Sensor).
Assuming the Folder Sensor is sensor.my_music, your template will look something like this:
chime_path: "{{ state_attr('sensor.my_music', 'file_list') | random }}"
NOTE
Ensure you follow the integrationβs instructions. The usual problem is that the Folder Sensor doesnβt have permission to access the desired folder.