hassio-addons icon indicating copy to clipboard operation
hassio-addons copied to clipboard

[Feature Request] Delay HTTP Response until the announcement has finished.

Open CyaOnDaNet opened this issue 5 years ago • 2 comments

I wanted to be able to chain an announcement with an audio clip but the second call occurs without checking if the first announcement ever finished. The only way I have found to make it wait is using the delay node. I tried using the home assistant wait until node but as far as I can tell, there is no attribute of the announcement ever recorded to the entity. This is not ideal as I intended on using it with announcements of varying lengths. If you could maybe make the payload wait to continue until after the announcement finishes then they could be chained.

Edit: I have used this in Node Red for so long (Thanks by the way) I forgot that its just a simple HTTP request and not a node red palette. Ignore everything from above because it's not relevant. I guess what I want is for it to return the HTTP statusCode 200 after the announcement has finished playing and not immediately after receiving... Does that make sense?

CyaOnDaNet avatar Feb 25 '20 17:02 CyaOnDaNet

You want to play it simultaneously? Or sequentially (whatever that means)?

I am working on it.

Letrab avatar May 14 '20 06:05 Letrab

See: https://github.com/Letrab/hassio-addons

Letrab avatar May 14 '20 14:05 Letrab