There may be - if you do your automations using Node-RED. This post from @erktrek outlines his method for doing so: