Hi,
I Googled for an answer and did not found one, therefore i ask it here…
On my Lovelace Dashboard i have a button “Dinner’s ready” which lets a Shelly 1 relay turn on a buzzer to inform my son that the Dinner is ready.
The icon in the card is turning yellow (just changing the state) so i can see the Shelly 1 has switches on the buzzer.
My son has a Shelly Button, and when he short-press this button, the Shelly 1 switches off and the icon in the card is turning green again.
In his room there is also a Google Nest Mini, so i created a script in HA which sets the volume and play a local buzzer MP3 on that Google Nest Mini.
This works but i want the Icon in the Button Card to turn Yellow (all my buttons/switches on the dashboard are turning yellow when a switch is turned on), so i can see if the MP3 is playing.
Then if my son wants to stop/pause the MP3 he just need to short-press the Shelly Button to stop playing the MP3.
After the MP3 is stopped, the Button-Card Icon on the Lovelace-dashboard should turn green again.
How can i do this all
Thanks in advanced,
Jerry