If for some reason the extension is started during a time the zone is unavailable, and then the zone is made available after the script is running -it will not process the turn on event. Easy to replicate, simply make the zone unavailable by whatever means necessary (power off, disconnect network) and start the app. Then, while it's running, make the zone available and then play back music. The on event is never processed / sent to the trigger device. I've attempted to study other plugins that don't have this problem but have had issues trying to re-write this code to make it more resilient to these situations.
If for some reason the extension is started during a time the zone is unavailable, and then the zone is made available after the script is running -it will not process the turn on event. Easy to replicate, simply make the zone unavailable by whatever means necessary (power off, disconnect network) and start the app. Then, while it's running, make the zone available and then play back music. The on event is never processed / sent to the trigger device. I've attempted to study other plugins that don't have this problem but have had issues trying to re-write this code to make it more resilient to these situations.