Streaming music takes a while and she can sometimes click the buttons multiple times causing songs to get randomly sent to her GH. As you might imagine, she gets quite fussy when things don’t work as she expects.
To ameliorate this, I’d like to disable the top row of buttons for ~15 seconds after she clicks one of them. Does anyone have a lead on how to do that? I imagine I can use a conditional card on that first row, but what I don’t know is how to go about setting state for 15 seconds that I could query from my conditional card.
In case it’s helpful, each of the top-row buttons calls a media_player service. Thanks!
You could add that to the automation. Have the button call an automation and build it in to the automaiton to not allow it to run before x amount of time since the last run of the automation:
or you could put an artificial delay of 15 seconds (sleep) at the end of the automation and ensure mode is ‘single’ in the automation. You would need the delay at the end since the HA part could complete and the media player is the delay, so you would need to intentionally put in the sleep function to keep the automation alive so the single mode sees it is still running and won’t execute another instance.