Cannot make HA to perform multiple actions for alexa

Hi, when my automation is triggered via alexa routine, I make a test to perform 2 actions, both is asking alexa to say something, but Alexa will only say something from first action, not the subsequent action. If I disable the first action, then the second action is triggered, both actions should be triggered, but only 1 seems to happened. Why ?

EDIT :
Let’s make my actions simpler, without the IF conditions, still only 1 action is triggered.

Don’t know without spending time looking at the automation trace tool - sometimes actions can execute faster than the receiving device can cope with, meaning later actions are lost.

Note this is not the same as parallel actions - just timing.

I’d stick a delay in the middle as a test.

What happens if you manually trigger the automation wiithout the Alexa routine?

If that doesn’t work, a workaround might help decouple an Alexa routine issue, but not a timing issue:

  • Create a Helper input_boolean.goodnight
  • Create automations triggered by the input_boolean turning ON
    (include a step to turn it back OFF at the end)
  • Expose the input_boolean to Alexa and “Alexa, turn GoodNight ON”.
  • ON triggers automations from a single action
  • Test independently from Alexa

If this helps, :heart: this post!

Hi

Thanks for the reply, indeed it’s the timing issue, at first I added a 5 seconds delay but that wasn’t enough, I have to increase to 10 seconds then only it’s enough.

Indeed that automation is using input boolean that was exposed to Alexa and triggered from Alexa.

So adding relay is the best solution ? There’s no more elegant way of solving this ?

The ideal would be to wait for a state change from Alexa to un-pause a wait action - trouble is, don’t know if there is one. Certainly with TTS on Mycroft.ai devices, WAIT was easier.

1 Like