NEW- The Play_Audio node only works if the web UI is open

I have a flow that monitors the light level and temperature in my attic. If the light is on, I get a voice announcement that “The attic light is on”.
It reports by MQTT and it has been working fine for a few years, but lately it only works if the Node-Red UI is open.

Any ideas?

OK, read the manual…

Apparently this is the normal operation.

Anyone know of another method to play a wav file?

Run a command like aplay or paplay.

Thanks for the tip, but my Home Assistant server is in the basement and as I read the docs, aplay and paplay play sound through the host speaker.

I am thinking that an ESPHome node with a dfPlayer may be my solution.