Firemote pause as an action

Hi all,

I have Android Debug Bridge installed & working, I also have Firemote card working. My tv is a FireTV & all is fine.
I also have Notifications for FireTV & this is working.
I have an IP kettle (Tuya) which works well with HA, I have an automation which announces “Kettle has boiled”, I would also like my FireTV to pause, I always watch streaming TV so I thought it would be relatively easy but I can’t get the pause to work.
My Firemote works for all buttons, pause definitely works.
Can anyone help?
I can edit YAML if needed but I am quite new to HA.
Thanks in advance.
Sandy

If the pause button on the Firemote card works, it sounds as if we need to see your code - presumably an automation triggered by the kettle boiling?

This notification works okay.

Sandy

I believe the Debug Bridge creates a media player entity. Can you send a pause command to that after the notification?

I’ve tried the attached but it doesn’t work.
Where will I find the media player?

Regards
Sandy

If you’re using the UI…

  • Click on “Add Action” (at the bottom of your screenshot)
  • Type “Media” in the search box
  • Select “Media Player: Pause” from the drop-down list

  • In the “Targets” box, select “Choose Entity”
  • Select your TV from the drop-down list

I don’t use the Debug Bridge myself - just going by the docs.

Hi Jack,

I tried the “pause” command in media_player, no success. I persisted & discovered if I use the toggle “pause / play” it works which is fine for what I need. I’m on a learning curve with HA & just by doing this automation I’ve learned quite a lot.
Thanks to everyone for the help.

Sandy.

1 Like

Glad you got it sorted out.

Could I suggest that if you have any more questions, you post yaml rather than screenshots? I know it’s a pain, but if you post code people can copy it and try it out, so you’re more likely to get helpful responses.

You can copy the yaml of an automation by clicking on the three dots top right, then selecting “Edit in YAML”.

To paste it into a forum post you need to use preformatted text (</> in the cogwheel menu when you’re editing). This preserves the spacing, which is quite important.


action:%20media_player.media_play_pause%0Ametadata%3A%20%7B%7D%0Adata%3A%20%7B%7D%0Atarget%3A%0A%20%20device

Whoops, I’ll try & post the yaml file again.
Once again, thanks for the info.

Sandy