Skip to content

Commit

Permalink
[media_player] Document paused and announcing conditions (#4387)
Browse files Browse the repository at this point in the history
  • Loading branch information
kahrendt authored Oct 24, 2024
1 parent 0b486c8 commit e4101c8
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions components/media_player/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,36 @@ This condition checks if the media player is playing media.
condition:
media_player.is_playing:
.. _media_player-is_paused_condition:

``media_player.is_paused`` Condition
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

This condition checks if the media player is paused.

.. code-block:: yaml
# In some trigger:
on_...:
if:
condition:
media_player.is_paused:
.. _media_player-is_announcing_condition:

``media_player.is_announcing`` Condition
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

This condition checks if the media player is playing an announcement.

.. code-block:: yaml
# In some trigger:
on_...:
if:
condition:
media_player.is_announcing:
Play media in order
-------------------

Expand Down

0 comments on commit e4101c8

Please sign in to comment.