Open novitibo opened 5 years ago
I have a "next" card that I use, should work in a very similar way.
My card in magic-cards is Action: "Home Assistant" and the URI is just "next" (without quotes).
In Home Assistant, I have an Automation with a trigger type of Event. Event type is "magic_card_scanned". The event data is:
{ "card_type": "event", "card_uri": "next" }
The Action for this automation is pretty straight forward, but this is where yours would start to differ. My action type is "Call service", Service is "media_player.media_next_track. Service data is:
{ "entity_id": "media_player.spotify" }
I think you want "media_player.media_stop" for your Service. I hope this helps!
Hi, Is there a way to refer one card to send to home assistant command to stop playing: action:
What should be the trigger? tnx